From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Org-special-blocks for code chunks Date: Tue, 11 Aug 2009 17:41:06 +0200 Message-ID: <87ab26we7h.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 --=20 S=C3=A9bastien 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