When writing maths equations and I want to write words within the dollar signs, or between when I've written \begin{equation} and \end{equation} it comes out in italics. I have tried \emph{...} but it still come out in italics. Any suggestions? I am using \usepackage{amsmath} and I'm writing my document on Overleaf. Thank you.
Lets say I have something like:   \[ Let x = number of cats \]   (This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to be written like normal text, while x= needs to be math type text.  I've seen this:  \[ \mbox{Let } x = \mbox{ number of cats} \]   and this:  \[ \textrm{Let } x = \textrm{ number of cats} \]   They seem to produce equivalent output, but I'm not sure which is the "correct" one. Also, they are not ideal in that the extra space needs to be placed inside the text mode block, otherwise it is ignored as math mode and butts the text right up against the math.  Ideally there would be some command which allowed embedding text into an equation, which correctly inserted leading and trailing space around the block as required without adding space inside the text block.  How does one do that "correctly"?
What determines which frames are inertial frames? Using GParted to remove windows partition How to search questions with only one specific tag? I can search question with target using [target] but the result questions also include question tagged with other tags.   How to get the question with only one specific tag? I have a 10 stock portfolio and considering market conditions that are on the rise when this question in being asked, a few of them did hit their 52-week high price.  I would like to call myself a long term investor and I do not like to trade so much. If I take "Buy low sell high" as gospel then this is in my opinion a good selling position.  On one hand, I think I should lock my profit because stocks don't hit a 52-week high every day, but on the other hand, there is nothing wrong with the company and it is very well positioned to go up even further.  Any suggestions? Reproducible LaTeX builds - compile to a file which always hashes to the same value Use Cauchy product to find a power series represenitation of   $$1 \over {(1-x)^3}$$ which is valid in the interval $(-1,1)$.   Is it right to use the product of $1 \over {1-x}$ and $1 \over {(1-x)^2}$ if I know thier expantion (HOW).. Is there another way? I added two torus objects, and when I click one of them, it also selects the other. They both share the same node thing. I want to delete one of them, but it keeps on deleting the other with it. I can't even undo placing the second torus without removing the other. What is the www-data user? Using JQuery and Prototype in the same page Several of my pages use both JQuery and Protoype. Since I upgraded to version 1.3 of JQuery this appears to be causing problems, because both libraries define a function named '$'.  JQuery provides a function noConflict() which relinquishes control of $ to other libraries that may be using it. So it seems like I need to go through all my pages that look like this:  &lt;head&gt;           &lt;script type="text/javascript" src="/obp/js/prototype.js"&gt;&lt;/script&gt;     &lt;script type="text/javascript" src="/obp/js/jquery.js"&gt;&lt;/script&gt; &lt;/head&gt;   and change them to look like this:  &lt;head&gt;           &lt;script type="text/javascript" src="/obp/js/prototype.js"&gt;&lt;/script&gt;     &lt;script type="text/javascript" src="/obp/js/jquery.js"&gt;&lt;/script&gt;     &lt;script type="text/javascript"&gt;         jQuery.noConflict();         var $j = jQuery;     &lt;/script&gt; &lt;/head&gt;   I should then be able to use '$' for Prototype and '$j' (or 'jQuery') for JQuery. I'm not entirely happy about duplicating these 2 lines of code in every relevant page, and expect that at some point somebody is likely to forget to add them to a new page. I'd prefer to be able to do the following    Create a file jquery-noconflict.js which "includes" jquery.js and the 2 lines of code shown above Import jquery-noconflict.js (instead of jquery.js) in all my JSP/HTML pages   However, I'm not sure if it's possible to include one JS file in another, in the manner I've described? Of course an alternate solution is simply to add the 2 lines of code above to jquery.js directly, but if I do that I'll need to remember to do it every time I upgrade JQuery. After upgrading to Firefox 57 Quantum many website have rendering issues, such as empty frames, missing text or fonts, etc. I use Kubuntu 16.04 64 bit.  So far, I've tried:   Restarting Firefox in safe mode Disabling "hardware acceleration"   Wiping out my profile Purging Firefox and reinstalling Running Firefox from a clean user account   But nothing helped so far.  Any tips on how to solve this are much appreciated Prevent iMac from sleeping, for VPN login? We have an iMac in the office, and I have been getting inconsistent access when trying to log in to it. The firewall isn't going down, since I can connect to the VPN. After discussing it with the people at the office, we suspect that the iMac is going to sleep.   Is it possible to keep the iMac "awake" 24 hours a day? How do I instruct the people at the office to configure the iMac? What settings should be changed? The iMac is running OS X Lion 10.7.3. Difference between Groovy Binary and Source release? Joined pipelines Considering a routine such as this one:  alpha() { echo a b c |tr ' ' '\n'; }   which outputs a stream, I would like to take the output stream, transform it, and paste it with the original output stream.  If I take use upcasing as a sample transformation, I can achieve what I want with:  $ mkfifo p1 p2 $ alpha | tee p1 &gt;( tr a-z A-Z &gt; p2) &gt;/dev/null &amp; $ paste p1 p2 a       A b       B c       C   My question is, is there a better way to do this, preferably one not involving named pipes? Is it possible to train a neural network without backpropagation? Many neural network books and tutorials spend a lot of time on the backpropagation algorithm, which is essentially a tool to compute the gradient.  Let's assume we are building a model with ~10K parameters / weights. Is it possible to run the optimization using some gradient free optimization algorithms?   I think computing the numerical gradient would be too slow, but how about other methods such as Nelder-Mead, Simulated Annealing or a Genetic Algorithm?  All the algorithms would suffer from local minima, why obsessed with gradient? Cyclic Group Generators of Order $n$ How many generators does a cyclic group of order $n$ have? I know that a cyclic group can be generated by just one element while using the operation of the group.  I am having trouble coming up with the generators of a group of order $n$.  Any help would be great!  Thanks! Entire one-to-one functions are linear Can we prove that every entire one-to-one function is linear? Around 3 months ago, I submitted a paper to a Math journal for peer-review through an online submission system. The same day I received in my e-mail an acknowledgement saying that the paper had been received.  The problem is that the status of the paper on the online submission system is still "Manuscript submitted".  I think this means that the paper has not even been assigned to an editor yet (once this happens, the editor will probably start looking for reviewers), but as far as I know submissions are assigned to editors within a few weeks (I once submitted a paper to another journal and when an editor had been assigned, the status on the online system changed to "Editor handles" or something like that).  I know that publishing is a long and complicated process and I'm not trying to rush anybody, but sometimes manuscripts are lost in the system. In fact, this has once happened to me, so I just want to make sure that the paper was not lost in the system.  Should I send an e-mail asking for the status of the paper?  PS: I think that, at the time of submitting the paper, I didn't choose any specific editor to submit the paper to. Security of GCM if Implemented with Stream Cipher instead of Block Cipher ''More than one row returned by a subquery used as an expression'' postgres error Count the items from a IEnumerable without iterating? private IEnumerable&lt;string&gt; Tables {     get     {         yield return "Foo";         yield return "Bar";     } }   Let's say I want iterate on those and write something like processing #n of #m.   Is there a way I can find out the value of m without iterating before my main iteration?  I hope I made myself clear.