I want to write text not in English but some other font and language  in same manner as \LaTeX writes. i.e. some characters are raised some low, with kerning and all that. I am using XeTeX since I have to work with other language.
Which book (free or otherwise) was the most useful to you when you started learning LaTeX?  I am frequently asked this question by friends who want to learn LaTeX, and I recommend the book which got me started, , but I feel that there might be better options around.  Also see .
So, according to Einstein's theory of general relativity, gravity is not a force instead it is a consequence of objects with mass deforming spacetime, right? And so, according to him, there is no difference between standing on a platform accelerating upwards at 9.81 m/s^2 and standing on Earth, right? But, there is a difference. At least, I think it's a valid difference. If you drop two apples from a high altitude on Earth, not only will they accelerate downwards at 9.81m/s^2 but they will also slightly move towards each other because the Earth is a sphere and gravity acts radially inwards pulling the two apples closer to each other. But if you drop the apples from the same height above the accelerating platform, the apples will only appear to accelerate downwards at 9.81 m/s^2 but will not move towards each other like they would on Earth. Why is this true? Is this even a valid difference? If it isn't, why isn't it? Correct interpretation of a "double-negative" in American Pop Culture (i.e. "I ain't afraid of no ghost!") Normal text is invisible when using beamer with notes and XeLaTeX I'm using beamer with xelatex to prepare a talk.  If I switch on notes on right I'm experiencing strange behaviour:  When using csqoutes in the title, all normal text afterwards becomes invisible (or white). The text selectable in the output pdf. Note that the text is also visible in the small preview on the note page.  This does not happen when using pdflatex or lualatex.  MWE:  \documentclass{beamer} \usepackage[autostyle=true,german=quotes]{csquotes}  \usepackage{pgfpages} \setbeameroption{show notes} \setbeameroption{show notes on second screen=right}  \begin{document}    \begin{frame}         \frametitle{\enquote{Enqouted Title}}     \end{frame}      \begin{frame}         \frametitle{This is the second slide}         Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     \end{frame} \end{document}   Update:  csqoutes is not the culprit. Seems to be a general problem when using xelatex and beamer with notes enabled.  New MWE:  \documentclass{beamer}  \usepackage{pgfpages} \setbeameroption{show notes} \setbeameroption{show notes on second screen=right}  \begin{document}     \begin{frame}         \frametitle{First Slide Title}         Here be text     \end{frame}      \begin{frame}         \frametitle{This is the second slide}         Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     \end{frame} \end{document} How to fix Terminal error DYLD_ environment variables being ignored because main executable (/usr/bin/login) is setuid or setgid? sort but keep header line at the top I am getting output from a program that first produces one line that is a bunch of column headers, and then a bunch of lines of data. I want to cut various columns of this output and view it sorted according to various columns. Without the headers, the cutting and sorting is easily accomplished via the -k option to sort along with cut or awk to view a subset of the columns. However, this method of sorting mixes the column headers in with the rest of the lines of output. Is there an easy way to keep the headers at the top? I was wondering in C++ if I have an enum can I access the value at the second index?  For example I have  enum Test{hi, bye};   if I want 'hi', can I do something like Test[0], thanks. So a couple of weeks ago my network manager icon stopped appearing; I still get automatically connected to my saved networks and the internet works fine, etc. If I go into System Settings and look at the Network settings I can still see all the networks, only the icon that's normal in the top bar is missing.  I have no idea what caused this, I don't remember installing anything. I think it just happened after a regular update.  I tried these commands to make sure I was properly up-to-date, (which I found on another forum post):  sudo apt-get -f install sudo apt-get update sudo apt-get upgrade   That didn't do it so I found this post:  and I followed the instructions in those answers:  sudo apt-get purge network-manager-gnome &amp;&amp; \ sudo apt-get install network-manager-gnome   And, quoted from an answer there:     Add nm-applet to the Startup Applications (which may be found by   entering "Startup Applications" in the Dash).   I restarted and then saw no Unity interface at all! So I tried those 3 commands above to update again and thankfully that fixed Unity but I still don't have my network manager.  If I try the command nm-applet in a terminal it says:  nm-applet-Message: using fallback from indicator to GtkStatusIcon   So.... I'm pretty much stumped. Any help would be appreciated. Notes:  Answers will occasionally be moved to the  when there are too many of them. When using them to report bugs, keep an eye on the post.    This site, Meta Stack Exchange, is usually used as a &quot;test bed&quot; for pending changes happening to the way text is rendered on all network sites. Changes to text rendering that are going to be rolled out to the network are usually deployed here first to test them out and fix any potential glitches. Currently, there are no such changes pending, but if there were, keep in mind that text posted here may render differently from the other sites until the changes roll out to them as well.    As per Jeff's suggestion in : You can use this question as a formatting sandbox. You can:  edit  itself ( questions such as this one require only 100 reputation to edit instead of 2,000) post answers to this question (This question might be , requiring earning 10 reputation on this site to answer) post comments to this question or its answers test suspected bugs with the editor or the rendering post ponies (only when mods are asleep)   Beware that since the  in December 2010, and  added in March 2011, no syntax highlighting is applied unless the question's tags or an inline hint enable it. So, to test highlighting here in the sandbox:  , you can use GitHub-flavor fenced code blocks in your posts, specifying the language after the opening fence: ```html While not hinted otherwise: &lt;html&gt;&lt;/html&gt; source &lt;b&gt;goes&lt;/b&gt; &quot;here&quot;. ```  ```js var a = 3; while (not (a &gt; 0)) {     alert(&quot;JavaScript code &lt;b&gt;goes&lt;/b&gt; here.&quot;); } ```   Or:  Create code blocks in any way (using the fence notation above, the four-space indent form, or using HTML &lt;pre&gt;&lt;code&gt; tags).  Save your post.  Use your browser's developer tools to edit the resulting HTML. To open developer tools, press F12, or ⌥⌘ I on Mac.  Find the &lt;pre&gt; element and add the attribute class=&quot;prettyprint&quot;, or change it into one of the valid syntax hints linked above, like class=&quot;lang-vb prettyprint&quot;.  Run the following in the location bar: javascript:prettyPrint(); or prettyPrint() in the console.     Answers that are considered annoying or obnoxious, or that cause breakage for users, will be deleted. This is . What equipment and settings do I use for panning shots of moving objects? Difference between Ubuntu and Linux Mint Can someone please tell me the differences between Ubuntu and Linux Mint ?   I thought they were almost the same thing until I downloaded Ubuntu 13.10 versions of softwares for my Linux mint 16 system, and half of them didn't work. (I did that as those are the links I got when I searched for Linux mint versions) How do I redirect to another webpage? In a  of Amstat News, the authors (Mark van der Laan and Sherri Rose) stated that "We know that for large enough sample sizes, every study—including ones in which the null hypothesis of no effect is true — will declare a statistically significant effect.".  Well, I for one didn't know that. Is this true? Does it mean that hypothesis testing is worthless for large data sets? How to work around Eclipse Luna/GTK bug 339174 (change to not use oxygen) The bug is described here:  For me it fails with:  java: /build/buildd/oxygen-gtk3-1.0.2/src/animations/oxygencomboboxdata.cpp:87: void Oxygen::ComboBoxData::setButton(GtkWidget*): Assertion `!_button._widget' failed.   Problem is if I go to GTK+ Apperance in Control Module and change to anything other than oxygen Eclipse will look totally awful.  Regardless what theme I use (tried QtCurve and Raleigh) it has the same look with huge padding around all controls etc.  Is it possible to have a sensible look without oxygen GTK?  I have kubuntu-desktop installed over the stock LTS distro.   $dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'     ii  libgtk-3-0                             3.4.2-0ubuntu0.8                          GTK+ graphical user interface library     ii  libgtk-3-bin                           3.4.2-0ubuntu0.8                          programs for the GTK+ graphical user interface library     ii  libgtk-3-common                        3.4.2-0ubuntu0.8                          common files for the GTK+ graphical user interface library     ii  libgtk2.0-0                            2.24.10-0ubuntu6.1                        GTK+ graphical user interface library     ii  libgtk2.0-bin                          2.24.10-0ubuntu6.1                        programs for the GTK+ graphical user interface library     ii  libgtk2.0-common                       2.24.10-0ubuntu6.1                        common files for the GTK+ graphical user interface library I am trying to add a list into an another nested list before adding values of a list to nested list it is getting the correct value but after adding i am getting (already output) in debug log when i checked.    public List&lt;String&gt; fieldName {get;set;}  public List&lt;List&lt;String&gt;&gt; fileValuesXML; // To get the field values of xml  for(Dom.XMLNode child : SalesforceObjecet.getChildElements()) {                        objecetName = child.getText();             system.debug('Object Name in XML field  ' + objecetName );              for(Dom.XMLNode subchild : child.getChildElements())              {                 system.debug('Sub child ' + subchild.getText() );                 for(Dom.XMLNode subchildfield : subchild.getChildElements())                 {                     system.debug('Sub child Field ' + subchildfield );                     fName  = subchildfield.getText();                     fieldName.add(fName);                     //fileValuesXML.add(fieldName);                     //system.debug('Filed Name in XML field  ' + fieldName);                 }                  system.debug('Filed Name before affing to filevalueXML  ' + fieldName);                                     fileValuesXML.add(fieldName);                 fieldName.clear();                 system.debug('Filed Name after affing to filevalueXML  ' + fileValuesXML);             }    }    I am getting values in debug log as:     Filed Name before affing to filevalueXML  (AccountSource, field3)   Filed Name after affing to filevalueXML  ((), (already output),   (already output)) How to schedule a cron job to run a video fill every 5 minute? I think the title says it all. I can't see any reason employers have to incentivize employees to contribute to their 401(k) evenly throughout the year. Instead couldn't they use a relatively simple formula that is based on how much of their income the employee has contributed to their 401(k) thus far for the year? If that or their current contribution is over the threshold, they get the match this pay period, even if they didn't contribute anything.  EDIT: To clarify, my employer matches 100% of the first 3% of my contribution and 50% of the next 2%. The match is added every pay period along with my contribution. I am pretty sure there is no "true-up" feature, so if I were to hit the $17.5K limit early, and not be able to contribute at least 5% of my salary, I would not get the full match. So I have to be careful to make my contributions evenly throughout the year to get the maximum match. Just trying to figure out my employer's motivation for requiring this. A film or TV series about classic monsters getting together What is the width of the standard paragraph indent in LaTeX's article class? If no changes has been made to the settings of indentation of an article class LaTeX document, what is the width of the paragraph indent?  texdoc article in the terminal opens the Standard Document Classes for LaTeX version 2e manual. In section 6.2 Paragraphing I find the following line:  ⟨10pt⟩ \setlength\parindent{15\p@}   The  means 1pt ... so I guess this would mean that the standard indent is 15 pt at a 10 pt text size? Is this correct? Conditionally Rendering Visualforce element based on user profile I have a controller extension and want to use the Tabbed view to get rid of the Chatter caused endless scrolling.      public class UserProfileGetter {     public UserProfileGetter(ApexPages.StandardController controller) {      String userProfileName = [select u.Profile.Name, id, UserType from User u where u.id = :Userinfo.getUserId()].Profile.Name;      system.debug('Profile===================='+userProfileName);      }    }   When I run the debug it shows my Profile as 'System Administrator' correctly.  My VF page code:  &lt;apex:page standardController="Account" extensions="UserProfileGetter" showHeader="true" tabStyle="account" &gt;   &lt;apex:tab label="Opportunities" name="Opportunities" id="tabOpp" rendered="{userProfileName!='Chatter Content'}"&gt;          &lt;apex:relatedList subject="{!account}" list="opportunities" /&gt;       &lt;/apex:tab&gt;        &lt;/apex:tabPanel&gt; &lt;/apex:page&gt;   So the logic for render I want is - if the user profile name isn't Chatter Content, render. But if I have this logic in the page it won't render for anyone, including me. Ideas? Thanks  Amending - to query other variable on the user, a checkbox called "Admin Team" to display the tab for Account Teams related list, I query for both like this:  public class UserProfileGetter {     public String userProfileName {         get {             return [                     select Profile.Name                     from User                     where Id = :Userinfo.getUserId()                     ].Profile.Name;         }     }     public boolean userAdminTeam {         get {             return [                     select Admin_Team__c                     from User                     where Id = :Userinfo.getUserId()                     ].Admin_Team__c;         }     }      public UserProfileGetter(ApexPages.StandardController unused) {     }   }   And then I use like this:   &lt;apex:tab label="Account Team" name="Account Team" id="Act" rendered="{!userAdminTeam}"&gt;   Thanks all. Should postdocs work only on the projects they are hired for, or can they work with other people in the same research group on other projects? Would the latter be an issue with the funding body, when the project proposal and budget only covers the expenses for hiring one postdoc? Note: it is the supervisors who got the grants, not the postdocs themselves.