From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Latex export: Differing behavior for symbols in headlines Date: Thu, 21 Oct 2010 09:09:16 -0700 Message-ID: <87lj5rplxv.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=59790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8xgj-0003pB-8n for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 12:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8xgZ-0000Z2-7b for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 12:08:12 -0400 Received: from cm03fe.ist.berkeley.edu ([169.229.218.144]:44631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8xgY-0000Yo-Uz for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 12:08:11 -0400 Received: from c-67-164-33-170.hsd1.ca.comcast.net ([67.164.33.170] helo=ludwig) by cm03fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (auth plain:richard.lawrence@berkeley.edu) (envelope-from ) id 1P8xgV-0003qo-BM for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 09:08:09 -0700 Received: from rwl by ludwig with local (Exim 4.69) (envelope-from ) id 1P8xhc-0003Vj-P6 for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 09:09:16 -0700 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: emacs-orgmode@gnu.org 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? 2) If so, what's the right way to work around it? If not, where should I look to try and fix it? (I am running the latest development version of Org.) Thanks! Best, Richard