I have a MWE where I use eqnarray for multiline equations. I want to right align those two text, but \hfill is not working here.  I think I may use align, but here just want to know how to do it with eqnarray.  \documentclass[]{beamer}  \begin{document}  \begin{frame} \frametitle{Example} \begin{eqnarray*} A &amp;=&amp; B + C \hfill (\Leftarrow \text{from Theorem 1}) \\   &amp;=&amp; D + E \hfill (\Leftarrow \text{from Corollary 2}) \\   &amp;=&amp; F  \end{eqnarray*} \end{frame}  \end{document}
Suppose I have something like the following:      \begin{eqnarray*} \mathrm{gcd}(x^3 + 6x^2 + 5x + 5, x^3 + 13x^2 + 6x + 3) &amp;=&amp; 102x^2 + 108x + 2 \ \mathrm{with} \ p = 109 \\ \mathrm{gcd}(x^3 + 2x^2 + 9x + 4, x^3 + 3x^2 + 7x + 9) &amp;=&amp; 1 \ \mathrm{with} \ p = 131 \\ \mathrm{gcd}(x^3 + 3x^2 + 9x + 12, x^3 + 6x^2 + 12x + 4) &amp;=&amp; 6x + 122 \ \mathrm{with} \ p = 157 \end{eqnarray*}   How do I align the statements at the end of each line (i.e. the "with p = ..." bit) to the right?
Interpretation of R's lm() output Travelling to Italy without my spouse who is a UK citizen How do I pre-populate a jQuery Datepicker textbox with today's date? For a continuous function $f$ show $\exists c\in (0,1)$ s.t $f(c)=3c^2$ Let $f: [0,1] \to \mathbb{R}$ be a continuous function such that $$\int_0^1 f (t) dt =1 .$$ Show that there exists a point $c \in (0,1)$ such that $ f(c)=3c^2$.  I tried using mean value theorem of integrals on $f (x)$, so $$\int_0^1 f (t) dt = f (c) =1,$$ but it should be $3 c^2$. What is going wrong? How can I install Windows software or games? Can newsletters take into account a user's favorite tags on that site? Is it possible to change the colors in the command prompt for the user@computer, as well as the the current directory and command parts of the prompt display?   I've already seen something like this done by OSX users, but I don't know how to do the same thing in gnome terminal (I can only change foreground and background colors).   It'd be very useful when, for example, trying to compile programs that have errors, since long, unformatted messages make it hard to distinguish which lines are commands and which are output. Can you ready an action for "immediately before my next turn"? What are the pros and cons of engineered hardwood? Are there any downsides to engineered hardwood? I'm looking to install hardwood in dining room and kitchen areas. How does Edo Tensei Madara get back his Rinnegan? Madara gave his Rinnegan to Nagato. But after Kabuto brings him back using Edo Tensei, he still has the Rinnegan. How is this possible? I have a statement,     Either p or q   and I have to write it in terms of logical connectives but I don't get which logical connector should I be using? Here is what I did (I think there could have been a better way to do this)     $(p \lor q ) \land (\neg((p \Rightarrow q) \land (q \Rightarrow p)))$ Distribute objects optimaly So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is any script or plugin that could automaticly arrange the objects within the artboard so they could fit best. Prove that the difference between two rational numbers is rational This is a terribly simple question I'm sure, but I can't find a work-around in my proof. I must prove that the difference between two rational numbers is thus rational. Here is my attempt:     Let $a$ and $b$ be rational numbers. Therefore, \begin{align}  a=\frac{\lambda}{\beta},\:b=\frac{\xi}{\zeta},\:\ni\:\lambda,\beta,\xi,\zeta\in\mathbb{Z},\tag{1} \end{align} which gives us \begin{align}  a-b=\frac{\lambda}{\beta}-\frac{\xi}{\zeta}=\frac{\lambda\zeta-\xi\beta}{\beta\xi}.\tag{2} \end{align}   So I have shown that $a$ and $b$ are rational numbers which, by definition, can be represented by the quotient of two integers. But now how do I tackle the problem of the difference? By definition the difference between two integers is an integer. Does that require that this difference is thus rational?  Thank you for your time, How to solve this equation $x^{2}=2^{x}$? How to solve this equation $$x^{2}=2^{x}$$   where $x \in \mathbb{R}$.  Por tentativa erro consegui descobri que $2$ é uma solução, mas não encontrei um método pra isso. Alguma sugestão?(*)  (Translation: By trying different values I've found that $2$ is a solution, but I couldn't find any method to this though. Any suggestions? ) How do I change the email address associated with my Stack Exchange OpenID? I registered my Stack Overflow account using the Stack Exchange OpenID provider. I later changed my e-mail, but I cannot change the e-mail address associated with my OpenID for some reason. Why is that, and how do I change it? I logged in to Stack Exchange and it lets me change my password, but never my e-mail. Don't revert reputation from suggested edits when reviewer's account is deleted I noticed something strange in the reputation of one of my accounts today:        Never saw "reverted" event before, so went to  and realized what happened: the user who approved my suggested edit has been removed/deleted their account.  The edit is still there. The post is still there. The effort spent in editing is still there, untouched. I really can't see any reason to take the reputation away in such a case.  Can this please be changed so that the reputation won't be lost? Personally I don't care that much, and got lots of reputation from other sources, but many people have low reputation and each point matters to them.  P.S.  This might be a bug introduced when implementing this recent change about "", so tagging as a bug too. I have three displays, a 4K display flanked by two 1080p displays. Physically, these monitors are roughly the same size. Furthermore, Windows 10 handles the DPI scaling of the 4K monitor separately from the 1080p monitors just fine. So while it appears as such to Windows    the real layout is three monitors of equal size side by side.  The problem is that the mouse keeps getting caught on the edges of display 2 and three when dragging from display 1. I would like the mouse to continue onto display 2 or 3 regardless of which part of the left or right edge of display 1 the mouse touches.  This question has been asked before (e.g. ) and a common answer is to suggest that this behaviour is intentional on the basis that mouse movement should reflect different size displays. Such an answer is not appropriate as it doesn't consider DPI and scaling. Conditionals in English are usually formed by using if with normal word order; but for the three past (subjunctive) forms were, should, and had, it is also possible to express the conditional through subject–auxiliary inversion alone, with no if in the conditional clause.  Does forming conditionals in this manner differ semantically from if-conditionals? Is some aspect of the conditional statement or the conditionality emphasised more in one version than in the other? Or are there differences in how and when they are used? Or are they simply completely interchangeable?  For example:     If I were you, I would try it again   Were I you, I would try it again      If I had seen it, I would have told you   Had I seen it, I would have told you      If you should drink, don’t get behind the wheel   Should you drink, don’t get behind the wheel Locking a vehicle bicycle rack We are planning a trip with a bike rack attached to our trailer hitch. What is the best way to lock the bikes while the vehicle is unattended? I see some racks have locks on the knobs but they don't seem very strong.   What do you suggest? Determine whether a number is prime How do I determine if a number is prime?  I'm writing a program where a user inputs any integer and from that the program determines whether the number is prime, but how do I go about that?