views:

765

answers:

3

When I export to PDF via org-mode (C-c C-e d), any words with underscores end up being partially converted to subscript. How can I prevent this from happening?

I found this article on the subject:

Disabling Underscore subscript in Emacs Tex Mode

However, I either wasn't able to figure out the correct elisp or it simply didn't work. Note, I don't want to change any global font options. I only want this fix to apply to tex/latex/org-mode.

I also found this post, though it didn't work either:

disable subscript superscript raise/lower?

+5  A: 

You can disable super/subscripting within an org file by adding the following line:

#+OPTIONS ^:nil

Check the org manual for more options. (C-c C-e t inserts a template containing all the options.)

you can also have '^:{}' this will still allow you to have subscript if you use curly braces, i.e. my_var won't give you subscript but F_{t} will. See also the org-mode manual: http://orgmode.org/manual/Export-options.html#Export-options
danielpoe
A: 

Do you want to prevent subscripts in the onscreen display of the source file or in the text of the output PDF? If the latter, then you want

\usepackage{underscore}

It won't break the use of underscores in maths mode, either.

Will Robertson
+4  A: 

I was able to solve the issue by setting the following variable:

(setq org-export-with-sub-superscripts nil)
zpinter