From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: Differences in headline exports [was: Umlauts in LaTeX export] Date: Wed, 03 Nov 2010 21:19:24 -0700 Message-ID: <87d3qlbu0j.fsf_-_@berkeley.edu> References: <87sjzibe53.fsf@berkeley.edu> <26AC1DD2-BF5D-4D61-930D-50B2D9DF7A5C@nf.mpg.de> <21363.1288842714@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40831 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDrHD-0008Sd-Kt for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 00:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDrHC-0006gs-Bj for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 00:18:15 -0400 Received: from lo.gmane.org ([80.91.229.12]:50777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDrHC-0006gX-2H for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 00:18:14 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PDrHA-0004Cx-Do for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 05:18:12 +0100 Received: from c-67-164-33-170.hsd1.ca.comcast.net ([67.164.33.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Nov 2010 05:18:12 +0100 Received: from richard.lawrence by c-67-164-33-170.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Nov 2010 05:18:12 +0100 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 Nick Dokos writes: > Nevertheless that does not absolve org from dealing with \" properly. In > fact, it deals with it correctly in a heading but not in the text: > > * G\"odel > > G\"odel > > gives: > > ... > \section{G\"odel} > \label{sec-1} > > > G\''odel > > > However, surrounding the o with braces breaks things in both places. > > I think part of the problem is that headings and text go through > different processing: e.g. text goes through org-export-latex-content, > whereas headings don't. So fixing a problem like this in one place is > not enough. I was recently crawling through the LaTeX export code, because I was getting different results for how a heading was exported depending on whether it was simply a section title or whether it was the title for the whole document. (See: [1]) It was quite a chore for me to understand the different code paths that a headline can go through. I still don't fully understand why things are this way; shouldn't all text that's exported to LaTeX be processed in the same way, regardless of where it appears (with the exception, of course, of text between delimiters that mark it as literal LaTeX input)? I sent a patch [2] that basically dealt with my problem by sending headlines that become document titles down the same code path that headlines and content are sent through (namely, org-export-preprocess-string), but I haven't received any response. Is that because there's some important reason to treat these contexts differently? Am I missing something? Best, Richard [1] http://article.gmane.org/gmane.emacs.orgmode/32281/ [2] http://article.gmane.org/gmane.emacs.orgmode/32540/