[O] underscore escaping
Hi all, do I miss something wrt underscore escaping? According to the manual [fn:1] I expect to see underscores in the exported (to LaTeX) version of this test file: --8<---cut here---start->8--- * Underscore\_Escaping_Test Underscore\_Escaping_Test #+caption: Underscore\_Escaping_Test #+begin_src latex :exports code \latex #+end_src --8<---cut here---end--->8--- But instead, I get something with $\backslash$$_$: --8<---cut here---start->8--- \section{Underscore$\backslash$$_{\text{Escaping}}$$_{\text{Test}}$} \label{sec-1} Underscore$\backslash$$_{\text{Escaping}}$$_{\text{Test}}$ \lstset{language=TeX,caption={Underscore$\backslash$$_{\text{Escaping}}$$_{\text{Test}}$},numbers=none} \begin{lstlisting} \latex \end{lstlisting} --8<---cut here---end--->8--- Is that intended? And if so, what is the intended way to escape an underscore? Regards, Andreas Footnotes: [fn:1] http://orgmode.org/manual/Subscripts-and-superscripts.html
Re: [O] underscore escaping
Hello, Andreas Leha writes: > According to the manual [fn:1] I expect to see underscores in the > exported (to LaTeX) version of this test file: > > * Underscore\_Escaping_Test > > Underscore\_Escaping_Test At the moment, there is no support for escaped characters in the export framework. Thus, the manual is inaccurate here. You can set `org-export-with-sub-superscripts' to '{} and write: Underscore_Escaping_{Test} Note that implementing it back is in my TODO list, but I'd like to generalize to emphasis markup, too. So, it will have to wait a bit. Regards, -- Nicolas Goaziou
Re: [O] underscore escaping
Hi Nicolas, Nicolas Goaziou writes: > Hello, > > Andreas Leha writes: > >> According to the manual [fn:1] I expect to see underscores in the >> exported (to LaTeX) version of this test file: >> >> * Underscore\_Escaping_Test >> >> Underscore\_Escaping_Test > > At the moment, there is no support for escaped characters in the export > framework. Thus, the manual is inaccurate here. > Thanks for the info. [...] Regards, Andreas