From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: emacs org mode publish to latex failed with strings like "__aaa_cc__" Date: Fri, 18 May 2012 07:56:28 -0400 Message-ID: <7082.1337342188@alphaville> References: <20120516.191620.425167680073843190.jingtaozf@gmail.com> <7520.1337225934@alphaville> <20120518.194101.2178280850066988257.jingtaozf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVLnZ-0000gm-Jt for emacs-orgmode@gnu.org; Fri, 18 May 2012 07:56:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVLnX-0005fS-Uj for emacs-orgmode@gnu.org; Fri, 18 May 2012 07:56:45 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:22164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVLnX-0005ew-PY for emacs-orgmode@gnu.org; Fri, 18 May 2012 07:56:43 -0400 In-Reply-To: Message from Xu Jingtao of "Fri, 18 May 2012 19:41:01 +0800." <20120518.194101.2178280850066988257.jingtaozf@gmail.com> 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: Xu Jingtao Cc: emacs-orgmode@gnu.org Xu Jingtao wrote: > Hi Nick: > > I had added the option to my org file. > > What I want to ensure is that this is maybe a bug of emacs org mode. > > I know "_a string_" will try to convert to underline string in latex, > by emacs variable org-export-latex-emphasis-alist. > Maybe this is why it is translated into wrong latex codes. > > Ah, OK - the problem is that no matter how the option is set, the output still leads to latex errors and no PDF is produced (at least with the old exporter - I haven't tried with ngz's new one, but that woule be a good experiment to try). Now that I've tried it, I think you are right: it is a bug in the old exporter, in that it should produce legal latex either way. Nick > > Xu Jingtao wrote: > > > > > Hi all: > > > > > > If I write some string like "__aaa_cc__" in org file,then publish it to pdf using latex, > > > it will failed and the output is wrong. > > > > > > even I can use ~__aaa_cc__~, it's not a good way do it. > > > > > > Can you fix it or I am wrong? > > > > By default, underscores indicate subscripts (a tradition that comes from > > LaTeX syntax - similarly, carets indicate superscripts). If you don't > > want that, you can add > > > > #+OPTIONS: ^:nil > > > > at the top of the file: this option disables superscripts and subscripts. > > > > See > > > > (info "(org) Export options") > > > > Nick > > > > > > ___________________________________ > With Best Regards. > jingtao. >