From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: underscore escaping Date: Wed, 23 Oct 2013 14:35:29 +0200 Message-ID: <87zjq0cgha.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYxf9-0002vQ-7S for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:35:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYxf3-0004bw-0j for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:35:47 -0400 Received: from plane.gmane.org ([80.91.229.3]:55546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYxf2-0004ba-Q1 for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:35:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VYxf1-0007Jq-Oh for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 14:35:39 +0200 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Oct 2013 14:35:39 +0200 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Oct 2013 14:35:39 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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