[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Org-special-blocks for code chunks
From: |
Sébastien Vauban |
Subject: |
[Orgmode] Org-special-blocks for code chunks |
Date: |
Tue, 11 Aug 2009 17:41:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
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
- [Orgmode] Org-special-blocks for code chunks,
Sébastien Vauban <=