[O] overruling subscripts in latex export
I'm documenting some code including lists of parameters. These have underscores in them which I don't want to interpret as subscripts. According to the manual I can overrule this behaviour with an option but it looks like I'm doing something wrong. Here is the test file #+OPTIONS: ^:{} #+TITLE: test file - p_c_in :: this is the first parameter - g_c_in :: and this is the second And here is the exported latex % Created 2012-01-25 Wed 12:04 \documentclass[11pt]{article} % package includes deleted \title{test file} \author{Peter Rayner} \date{25 January 2012} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \begin{description} \item[p$_c$$_{\mathrm{in}}$] this is the first parameter \item[g$_c$$_{\mathrm{in}}$] and this is the second \end{description} \end{document} Note those $ signs in the \item brackets. I would rather see p\_c\_in or \verb|p_c_in| I am probably misunderstanding how to set the option, could someone please explain? This is with Org-mode version 7.5 (release_7.8.03.74.gd6e40f) Thanks in advance Peter -- Peter Rayner room 343 School of Earth Sciences, University of Melbourne, 3010, Vic, Australia tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 mobile +61 402 752 379, skype: petermorag mail-to: pray...@unimelb.edu.au and CLIMMOD ENGINEERING http://www.climmod.com mail-to: peter.ray...@climmod.com
Re: [O] overruling subscripts in latex export
Peter Rayner pray...@unimelb.edu.au wrote: I'm documenting some code including lists of parameters. These have underscores in them which I don't want to interpret as subscripts. According to the manual I can overrule this behaviour with an option but it looks like I'm doing something wrong. Here is the test file #+OPTIONS: ^:{} #+TITLE: test file - p_c_in :: this is the first parameter - g_c_in :: and this is the second ... \begin{description} \item[p$_c$$_{\mathrm{in}}$] this is the first parameter \item[g$_c$$_{\mathrm{in}}$] and this is the second \end{description} I get , | \begin{description} | \item[p\_{}c\_{}in] this is the first parameter | \item[g\_{}c\_{}in] and this is the second | \end{description} ` which is what's expected. It might be that you didn't update the setup of the buffer after you added the #+OPTIONS line (just press C-c C-c on it). Equivalently, kill the buffer and find-file again: the option should be active. Assuming of course that you have a reasonably modern version of org. Mine is Org-mode version 7.8.03 (release_7.8.03.230.g67cb2.dirty) (which includes a few local patches) Nick
Re: [O] overruling subscripts in latex export
Yes, the problem was, indeed, that I had forgotten I needed to activate the option with C-c C-c. Many thanks Peter -- Peter Rayner room 343 School of Earth Sciences, University of Melbourne, 3010, Vic, Australia tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 mobile +61 402 752 379, skype: petermorag mail-to: pray...@unimelb.edu.au and CLIMMOD ENGINEERING http://www.climmod.com mail-to: peter.ray...@climmod.com