I am using Charter for math (mathdesign package) and Bitstream Vera for body text (through XeLaTeX's fontspec package. However, when using things like \text{} in math mode, the text still appears in the Vera font. It's hard to explain without a visual, so here is one now:   $$\Delta v = v_\text{exhaust} \ln \frac{m_\text{initial}}{m_\text{final}}$$   Which returns the following image:    I would like to know how I can make the words 'exhaust', 'initial', and 'final' use the Charter font like the rest of the equation.
Although many have attempted to explain the difference among \mathrm, \textrm, \textnormal and \text (and others?), I found them misleading.  See for example the LaTeX's Wiki \mathrm explanation   Why is it wrong? Let's try all of them within an article and a beamer and you'll see the difference and, therefore, error.  equation.tex  \begin{eqnarray*}   \int_1^9\! \cos{x} \,\mathrm{d}x &amp; &amp; \textrm{this is textrm}\   \sum_1^9 y                       &amp; &amp; \textsf{this is textsf}\   \prod_1^9 z                      &amp; &amp; \textnormal{this is textnormal}\   \bigcup_1^9 w                    &amp; &amp; \text{and this is just text} \end{eqnarray*}   article.tex  \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}  \begin{document}   \input {equation} \end{document}     And until here everything looks fine...  beamer.tex  \documentclass{beamer} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}  \begin{document}   \begin{frame}     \input{equation}   \end{frame} \end{document}     And here we can clearly see that \mathrm does not behave as expected, i.e. does not provide a function aspect to the d. Does anyone know what am I supposed to use here instead? Just \text?? o.O  Moreover, I cannot see any difference between \textnormal and \text.  Finally, \textrm looks useless..
Impact of hyperref, when varioref and cleveref are used Does "corresponding author" carry an implied meaning? After reading the question , I got the impression that (at least in the writers' field) the "corresponding author" flag could carry an implied meaning, such as "did more work than the other authors", or "is a more senior author". Is it the case?  I am in mathematics, a field where we typically sort the authors alphabetically, and I've never given any importance to that role (apart from "this author is willing to answer a couple of extra e-mails, if needed"). How do I test for an empty JavaScript object? I Cancelled Microsoft 10 Reservation and uninstalled KB3035583 but Window 10 is still trying to install I cancelled the Microsoft Windows 10 Reservation and uninstalled KB3035583, but Windows 10 is still trying to install.   After I uninstalled KB3035583 and restarted my laptop as instructed, I could not find KB3035583 to hide it.   Now Windows 10 is sitting in my Windows Update saying that it will install when I restart my computer. Java: splitting a comma-separated string but ignoring commas in quotes I'm having a difficult time understanding this statement. Can someone please explain with a concrete example? Elected moderators can nominate themselves , and I can nominate myself again, despite having won the first round of election.    I understand this isn't going to be easy to fix, given that SE only knows about community mods, employees and developer roles, and pro-tempore mods need to be able to nominate themselves. How do I select an object in the 3D viewport? Does Blender support any form of collaborative editing? Is there any software or hardware which lets you stop, slow down, speed up or even reverse time? Obviously I'm talking about time in terms of the PC clock rather than real time.  We were testing an application we've developed at work by setting the clock forward and back to simulate different scenarios and I started thinking how useful it would be if you could adjust the rate(?) of the system clock with finer control. So you could make a minute pass in a second or a day pass in 30 seconds and watch how the program you're developing copes with changes in date and time.  Is there any such software available?   I'd be interested to hear if anyone knows of any software or hardware which can let you do some or all of the above. How can you sync Blender configs between multiple machines? Enabling GPU rendering for Cycles? I want to enable GPU rendering, but there is no option in User Preferences > System:    Why is this? How can I get cycles to render using my GPU? This is inspired by some discussions in .  In the Harry Potter universe, how are Dementors born?  Or are they artificially created by some magical means? Cardinality of a totally ordered union I need to find out the modular inverse of 5(mod 11), I know the answer is 9 and got the following so far and don't understand how to than get the answer. I know how to get the answer for a larger one such as 27(mod 392) but am stuck because they are both low numbers.  11=5 (2)+1  5=1 (5) BeanFactory vs ApplicationContext I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together for the purposes of evaluating Spring MVC for use in an upcoming company project. So far I really like what I see in Spring MVC, seems very easy to use and encourages you to write classes that are very unit test-friendly.  Just as an exercise, I'm writing a main method for one of my sample/test projects. One thing I'm unclear about is the exact differences between BeanFactory and ApplicationContext - which is appropriate to use in which conditions?  I understand that ApplicationContext extends BeanFactory, but if I'm just writing a simple main method, do I need the extra functionality that ApplicationContext provides? And just exactly what kind of extra functionality does ApplicationContext provide?  In addition to answering "which should I use in a main() method", are there any standards or guidelines as far as which implementation I should use in such a scenario? Should my main() method be written to depend on the bean/application configuration to be in XML format - is that a safe assumption, or am I locking the user into something specific?  And does this answer change in a web environment - if any of my classes needed to be aware of Spring, are they more likely to need ApplicationContext?  Thanks for any help. I know a lot of these questions are probably answered in the reference manual, but I'm having a hard time finding a clear breakdown of these two interfaces and the pros/cons of each without reading thru the manual with a fine-tooth comb. I just bought a SATA SSD, and wish to install Windows 7 directly on it, but when Windows asks me where do I want to install it, it doesn't recognize any drives.   I have disconnected all my other HDDs My BIOS recognizes the SSD. I went back to my original installation of Windows and my SSD is recognized I have two checkboxes in a lightning component, when we click on the first checkbox it marks true to the other checkbox, it works well only with the UI tags but doesn't work when I convert it to lightning tag  &lt;ui:inputCheckbox aura:id="box3" change="{!c.selectAll}"/&gt;  &lt;ui:inputCheckbox aura:id="boxPack" value=""                                                          change="{!c.checkboxSelect}"/&gt;   below are the lightning tags  &lt;lightning:input type="checkbox" aura:id="box3" onclick="{!c.selectAll}"/&gt;  &lt;lightning:input type="checkbox" aura:id="boxPack" value=""                                                          onclick="{!c.checkboxSelect}"/&gt;   controller  checkboxSelect: function(component, event, helper) {         // get the selected checkbox value           var selectedRec = event.getSource().get("v.value");         // get the selectedCount attrbute value(default is 0) for add/less numbers.          var getSelectedNumber = component.get("v.selectedCount");         // check, if selected checkbox value is true then increment getSelectedNumber with 1          // else Decrement the getSelectedNumber with 1              if (selectedRec == true) {             getSelectedNumber++;         } else {             getSelectedNumber--;         }         // set the actual value on selectedCount attribute to show on header part.          component.set("v.selectedCount", getSelectedNumber);     },      selectAll: function(component, event, helper) {         //get the header checkbox value           var selectedHeaderCheck = event.getSource().get("v.value");         // get all checkbox on table with "boxPack" aura id (all iterate value have same Id)         // return the List of all checkboxs element          var getAllId = component.find("boxPack");         // If the local ID is unique[in single record case], find() returns the component. not array            if(! Array.isArray(getAllId)){             if(selectedHeaderCheck == true){                  console.log('true');                 component.find("boxPack").set("v.value", true);                 component.set("v.selectedCount", 1);             }else{                 component.find("boxPack").set("v.value", false);                 component.set("v.selectedCount", 0);             }         }else{             // check if select all (header checkbox) is true then true all checkboxes on table in a for loop               // and set the all selected checkbox length in selectedCount attribute.             // if value is false then make all checkboxes false in else part with play for loop              // and select count as 0              if (selectedHeaderCheck == true) {                 for (var i = 0; i &lt; getAllId.length; i++) {                     component.find("boxPack")[i].set("v.value", true);                     component.set("v.selectedCount", getAllId.length);                 }             } else {                 for (var i = 0; i &lt; getAllId.length; i++) {                     component.find("boxPack")[i].set("v.value", false);                     component.set("v.selectedCount", 0);                 }             }          }        }, How do idle games handle such large numbers? Just wondering how games such as Tap titans and Cookie Clicker handle such large numbers.  I am trying to implement an idle game however the largest number format supported by C# is decimal.   I am looking to support up to 10^500; that needs to be floating point  How could I handle this?  P.S. it needs to be cross platform i.e. pc, mac, ios, android and compatible with Unity Why is the MacTeX distribution so large? Is there anything smaller for OS X? I would like to know how to install LaTeX on Mac 10.6 or higher.  But the MacTeX is some 1.28 GB file! Is there a smaller distribution I could install?  What exactly is TeX Live?