Dropping "then" in "If" statements
Can I use an "if" clause without "then"?
Using subcaption package but subfigures end up stacked rather than side by side I'm trying to put two jpegs side by side using the subcaption package, but the images are consistently stacking on top of each other rather than side by side. All the solutions I've found simply state that the pictures have to be small enough to actually be side by side but I've tried making them smaller, too small even and they stay stacked. My code looks like this:  \begin{figure}[H] \centering \begin{subfigure}{0.5\textwidth} \centering     \includegraphics[width=0.3\linewidth]{inclusion.jpg}     \caption{inclusions}     \label{fig:inclu} \end{subfigure}  \begin{subfigure}{0.5\textwidth} \centering     \includegraphics[width=0.3\linewidth]{deform}     \caption{grain deformation}     \label{fig:deform} \end{subfigure} \caption{filler text} \label{fig:manmade} \end{figure}   Help would be greatly appreciated. How to share variable between two c# projects $P(x) = 0$ is a polynomial equation having at least one integer root, where $P(x)$ is a polynomial of degree five and having integer coefficients.  If $P(2) = 3$ and $P(10)= 11$, then prove that the equation $P(x) = 0$ has exactly one integer root.  I tried by assuming a fifth degree polynomial but got stuck after that.  The question was asked by my friend. Summability vs Unconditional Convergence I'm reading that summability and unconditional convergence are the same. (At least if the index set is countable, so unconditional convergence makes sense.)  Then unconditional convergence is nothing else than convergence of the net of all rearranged partial sums. Thus uniqueness of the limit becomes fairly easy as the limit of every net in a Hausdorff space is unique.  But the usual proof deals with separating functionals on Banach spaces, which is a much more serious technique. So I think there must be a hook in my reasoning. Can somebody resolve this issue? Thanks a lot!  Best Regards, Freeze_S Windows 7 Taskbar Icon Highlight Sticks After running Win 7 for some unknown period of time, the taskbar icon highlight starts to stick (video demo here: ). If I restart or kill explorer.exe and relaunch, it goes away.  Any idea what might be causing this? I've deleted a system file from my Mac and need to get it back.  System files can include:   hidden files in the root of / - especially unix files in /private  /System files /Library files /Applications files that ship with the core OS   System files are not any app, user files or files that can be regenerated by a known sequence such as cache files, Spotlight index files, etc…    Canonical question and answer for . Sort order issue I'm having an issue sorting data in ascending order.   Right now the sort order is: 1.0.0  10.0.0 10.0.1 11.0.0 2.0.0 2.0.1 3.0.0 3.0.1 3.1.0  What I want is: 1.0.0 2.0.0 2.0.1 3.0.0 3.0.1 3.1.0 10.0.0 10.0.1 11.0.0  How can I achieve this? The datatype can't be number or currency because of the 2 decimals, so I used text-field. Find all $x$ such that $x^6 = (x+1)^6$. I'm looking for a way to insert a &lt;style&gt; tag into an HTML page with JavaScript.  The best way I found so far:  var divNode = document.createElement("div"); divNode.innerHTML = "&lt;br&gt;&lt;style&gt;h1 { background: red; }&lt;/style&gt;"; document.body.appendChild(divNode);   This works in Firefox, Opera and Internet Explorer but not in Google Chrome. Also it's a bit ugly with the &lt;br&gt; in front for IE.  Does anyone know of a way to create a &lt;style&gt; tag that   Is nicer Works with Chrome?   Or maybe   This is a non-standard thing I should avoid Three working browsers are great and who uses Chrome anyway? Mail App keeps popping up in the background in Mac OS Mojave When I am doing some work on my macbook pro, Mail app's main window keeps popping up in the background, it even pops up when I watch movies by interrupting full screen. This is so frustrating, I can't find out solution to this, googled and went to many discussion forums, no luck, suggestions that I found are very old and outdated. Has anyone faced similar issues or does anyone knows solution to this? English idiom for 'bad consequences stemming from too much ambition' I'm looking for an idiom that is equivalent to the Portuguese:  Quem tudo quer, tudo perde. Who wants everything, loses everything.  It basically points out that being too ambitious will have bad consequences: not only does one not get what one's striving for, but one also ends up losing what one already had (and probably took for granted). This idiom should be usable in everyday speech. Is it possible to find all classes or interfaces in a given package? (Quickly looking at e.g. , it would seem like no.) How do I know when to use "the" versus "a" versus "∅" as an article on a noun? With proper nouns, we don't use the except for river names, newspaper names, etc.  I want to know why we use the with White House. I mean, under which rule can we categorize it? What could other similar examples for that rule be? Searching through ODT documents without opening them? Let's say I have 2000 .ODT files. Their names are random numbers. How do I go about searching for, let's say, "pricing list"? How do I find the document I need without opening all of them one by one and checking to see if it's the right one?  Is there some program to search through the words in the documents without opening them? In the following setup, does method B run in a (new) transaction?  An EJB, having two methods, method A and method B  public class MyEJB implements SessionBean     public void methodA() {        doImportantStuff();        methodB();        doMoreImportantStuff();     }      public void methodB() {        doDatabaseThing();     } }   The EJB is container managed, with methodB in requires_new transaction, and method A in required transaction. thus:  &lt;container-transaction id="MethodTransaction_1178709616940"&gt;   &lt;method id="MethodElement_1178709616955"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;*&lt;/method-name&gt;   &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;   &lt;/method&gt;   &lt;method id="MethodElement_1178709616971"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;methodB&lt;/method-name&gt;   &lt;/method&gt;   &lt;trans-attribute&gt;RequiresNew&lt;/trans-attribute&gt; &lt;/container-transaction&gt;   Now let another EJB call methodA with an EJB method call. methodA now runs in an transaction. Will the subsequent call to methodB from methodA run in the same transaction, or does it run in a new transaction? (mind, it's the actual code here. There is no explicit ejb-call to method B) Graphical interface for generating presentation slides Is there a good graphical interface, similar to PowerPoint or LibreOffice Impress, for generating presentation slides?  When writing documents I prefer to write my text and LaTeX-markups using a text-editor and not using a graphical tool like LyX. However, in the case of presentation slides I want to see the layout and to have the ability to immediately see what you get e.g. by moving a picture with arrow keys.  ADDITION: The background to my question is as follows. I have used PowerPoint for more than a decade and like to use a WYSIWYG tool when making presentation slides. However, I can not use PowerPoint on my current computer and I think the output from LibreOffice Impress is inferior. As a long-time user of LaTeX, I have considered using SliTeX or Beamer but unfortunately I do not like the way of working. The end result is of course superior, but I found it very time-consuming and tiresome to e.g. adjust the position and size of pictures. How to Fix Broken Packages? Substitute fresh garlic instead of garlic powder? I have a recipe that calls for garlic powder, but I only have fresh garlic on hand.   What ratio should I use to substitute? How does quantum trapping with diamagnets work? I just saw  demonstration by someone from a Tel Aviv University lab.  What they achieved there is mind blowing. I myself own a levitron that uses the Hall effect to levitate a magnet, the problem with that is the magnet must always be flat facing the Hall effect base, any unbalance will wreck the levitation. But in the case of the video you can see that he isn't constrained by such things, the disk can levitate and stay still at whatever angle and orientation. Instead of being levitated, the disk is simply being held still.   How does this happen? He referred to this as quantum trapping, but I've little idea about what that is....  Also, what material is the base in these demos? Is the circular track in the demonstration magnetic? I assume this is so. Is there any conceivable way for this technology to make objects levitate on any surface? Difference between alphabet $a$ and "a" I have a very simple problem. I want to write "a" in an equation, however output is .... Please see output. How i can overcome this problem?