In the following inline equation I am getting x of two different styles. How can I fix that ?


Following is the image of the generated output

enter image description here

I use org-mode to do pdf latex export. To create a minimal example, I wrote just A_{x}B_{1-x} in an org-mode file and exported it to pdf. Following is the content of the generated .tex file. There was no error.

% Created 2013-04-16 Tue 22:51

  pdfcreator={Emacs Org-mode version 7.9.3f}}




  • 5
    When (or even before) you post the image please show a minimum working example (MWE) - the shortest document you can construct that illustrates the problem. I couldn't reproduce it with just $A_{x}B_{1-x}$ in the document, no packages. – Ethan Bolker Apr 16 '13 at 12:17
  • Do you get errors as well? You probably have syntax errors in your tex file. By the way, submit a minimum working example. – Aydin Apr 16 '13 at 12:44
  • Welcome to TeX.SE. The \mathrm is the cause of the second x being upright. – Peter Grill Apr 16 '13 at 17:30
  • If you want roman A and B you should be doing it this way: $\mathrm{A}_{x}\mathrm{B}_{1-x}$ rather than jump in and out of math mode. – Dan Dec 7 '13 at 22:58

The correct syntax should be


with a single formula and no \mathrm, which is the cause for the upright “x”.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.