Hello, I have a problem exporting code chunks to LaTeX (beamer, in fact -- but that does not change anything to the problem) that contain underscores.
For example, the following: --8<---------------cut here---------------start------------->8--- * Rule language *** E.g. #+BEGIN_lstlisting months_employed(?applicant, ?months) AND lessThan(?months, 3) AND assets(?applicant, ?assets) AND lessThan(?assets, 10000.0) -> RejectedApplicant(?applicant) #+END_lstlisting --8<---------------cut here---------------end--------------->8--- generates: --8<---------------cut here---------------start------------->8--- \begin{frame}[fragile] \frametitle{Rule language} \begin{itemize} \label{sec-1} \item{E.g.} \label{sec-1.1} \begin{lstlisting} months$_{\mathrm{employed}}$(?applicant, ?months) AND lessThan(?months, 3) AND assets(?applicant, ?assets) AND lessThan(?assets, 10000.0) -> RejectedApplicant(?applicant) \end{lstlisting} \end{itemize} \end{frame} --8<---------------cut here---------------end--------------->8--- and, if I escape the underscore, such as: --8<---------------cut here---------------start------------->8--- * Rule language *** E.g. #+BEGIN_lstlisting months\_employed(?applicant, ?months) AND lessThan(?months, 3) AND assets(?applicant, ?assets) AND lessThan(?assets, 10000.0) -> RejectedApplicant(?applicant) #+END_lstlisting --8<---------------cut here---------------end--------------->8--- the exporter generates: --8<---------------cut here---------------start------------->8--- \begin{frame}[fragile] \frametitle{Rule language} \begin{itemize} \label{sec-1} \item{E.g.} \label{sec-1.1} \begin{lstlisting} months\_employed(?applicant, ?months) AND lessThan(?months, 3) AND assets(?applicant, ?assets) AND lessThan(?assets, 10000.0) -> RejectedApplicant(?applicant) \end{lstlisting} \end{itemize} \end{frame} --8<---------------cut here---------------end--------------->8--- So, I can't get a properly outputted underscore in my slide. Any idea or workaround? Best regards, Seb -- Sébastien Vauban _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode