From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Latex export: Differing behavior for symbols in headlines Date: Thu, 21 Oct 2010 12:36:22 -0400 Message-ID: <19863.1287678982@gamaville.dokosmarshall.org> References: <87lj5rplxv.fsf@berkeley.edu> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=34543 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8y85-0004it-3x for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 12:36:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8y83-0007vP-DW for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 12:36:36 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:32931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8y83-0007vH-5W for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 12:36:35 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LAN00LBBFGMUY10@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 11:36:23 -0500 (CDT) In-reply-to: Message from Richard Lawrence of "Thu, 21 Oct 2010 09:09:16 PDT." <87lj5rplxv.fsf@berkeley.edu> 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Lawrence Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Richard Lawrence wrote: > Dear Orgsters, > > I am seeing differing behavior for how special symbols that appear in a > headline are exported to LaTeX, depending on whether I export an entire > Org document or just the current subtree. > > I have, for example, a file that looks like this: > > * Headline 1 > ** Headline 2, concerning $\alpha$ and $\beta$ > > If I export the whole document, the $'s around \alpha and \beta are > properly interpreted as math-mode delimiters, and Headline 2 becomes a > section title that looks exactly as I would expect. > > If I export just Headline 2, however, the $'s are escaped, and show up > as literal '$' characters in the title of the exported document. > > (I can't remove the $'s, because I am actually using some custom LaTeX > commands, not special symbols like \alpha and \beta that Org would > recognize as needing to be put in math mode.) > > So, two questions: > > 1) Is this difference between whole-document vs. current-subtree export > the expected behavior? > Looks like a bug to me. I can reproduce it too. > 2) If so, what's the right way to work around it? If not, where should > I look to try and fix it? > I tried using \( and \) as the inline math delimiters but that did not work either: I got $ signs *inserted* and then latex complains about that: foo.org: --8<---------------cut here---------------start------------->8--- * Headline 1 ** Headline 2, concerning \(\alpha\) and \(\beta\) --8<---------------cut here---------------end--------------->8--- foo.tex (elided): --8<---------------cut here---------------start------------->8--- ... \title{Headline 2, concerning \($\alpha$\) and \($\beta$\)} ... --8<---------------cut here---------------end--------------->8--- Nick