From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org export outcomes differ from one attempt to the next Date: Mon, 21 Sep 2015 22:25:33 +0200 Message-ID: <87oagvcyf6.fsf@nicolasgoaziou.fr> References: <87mvwfx0qz.fsf@ucl.ac.uk> <87bncvwzkt.fsf@ucl.ac.uk> <20150921202130.5e623008@zotac> <878u7zzgrp.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze7cy-0002QA-Ri for emacs-orgmode@gnu.org; Mon, 21 Sep 2015 16:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze7cx-00035w-12 for emacs-orgmode@gnu.org; Mon, 21 Sep 2015 16:23:55 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:41302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze7cw-00035M-PF for emacs-orgmode@gnu.org; Mon, 21 Sep 2015 16:23:54 -0400 In-Reply-To: <878u7zzgrp.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 21 Sep 2015 20:58:18 +0100") 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: Robert Klein Cc: emacs-orgmode@gnu.org Hello, Eric S Fraga writes: > Actually, my settings are at the end of the whole 4000+ line file so I > am not sure what you are suggesting I try. If I delete the whole > settings subtree, the exports all result in the same LaTeX. However, > that is of no use to me, obviously. I guess I can try to add one line > at a time to see when the export breaks. I may try that tomorrow. Providing a shorter test file would be helpful, no matter how much settings you have. > I guess I would like some insight into how the latex_header lines are > parsed by org, maybe in org-element? They are collected in `org-export--get-inbuffer-options' which is called by `org-export-get-environment'. IIRC, Robert Klein's problem was due to an explicit call to `org-export-get-environment' at Babel evaluation time, before the buffer was correctly prepared for export. If you call `org-export-get-environment' within your settings, it may be related. Regards, -- Nicolas Goaziou