emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-special-blocks for code chunks
@ 2009-08-11 15:41 Sébastien Vauban
  2009-08-11 16:51 ` Chris Gray
  0 siblings, 1 reply; 6+ messages in thread
From: Sébastien Vauban @ 2009-08-11 15:41 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-13 13:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 15:41 Org-special-blocks for code chunks Sébastien Vauban
2009-08-11 16:51 ` Chris Gray
2009-08-13 10:31   ` Sébastien Vauban
2009-08-13 11:56     ` Chris Gray
2009-08-13 12:23       ` Sébastien Vauban
2009-08-13 13:13     ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).