From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: FR: Define Latex macros from export header Date: Sat, 21 Feb 2009 14:03:54 +0100 Message-ID: References: <20090215065910.GG7810@thinkpad.adamsinfoserv.com> <693E9A38-E1AA-49BC-BB05-5ADFE2199A57@uva.nl> <20090219200249.GI17284@thinkpad.adamsinfoserv.com> <597A6150-6F0C-46A4-A70B-906FC68D0B09@uva.nl> <20090220163330.GL17284@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LarWS-0002xY-1P for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 08:04:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LarWQ-0002xM-59 for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 08:03:58 -0500 Received: from [199.232.76.173] (port=45144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LarWP-0002xJ-AM for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 08:03:57 -0500 Received: from nf-out-0910.google.com ([64.233.182.190]:13937) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LarWO-0005jJ-Iy for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 08:03:56 -0500 Received: by nf-out-0910.google.com with SMTP id d3so255032nfc.26 for ; Sat, 21 Feb 2009 05:03:55 -0800 (PST) In-Reply-To: <20090220163330.GL17284@thinkpad.adamsinfoserv.com> 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: Russell Adams Cc: emacs org-mode mailing list On Feb 20, 2009, at 5:33 PM, Russell Adams wrote: > On Fri, Feb 20, 2009 at 11:05:03AM +0100, Carsten Dominik wrote: >> >> On Feb 19, 2009, at 9:02 PM, Russell Adams wrote: >> >>> Carsten, >>> >>> I was thinking of just exporting all key/value pairs in the header >>> with >>> an org prefix (no - or _ or /, ie: "orgAUTHOR"). >> >> OK, try >> >> (setq org-export-latex-import-inbuffer-stuff t) > > That worked, the only point I may make would be to exclude > LATEX_HEADER and TEXT from that list. OK, done. I think it would even make sense to remove OPTIONS, I cannot see how you would use this, would you? > I'm also trying to resolve an ordering issue. I want to have a > header/footer line declared in the header, but I want to use these > orgTITLE macros in that. Currently LATEX_HEADER and the class go first > before the definitions, and TEXT occurs inside the document. If the > macro isn't defined before the header/footer, you get an error. > > I may have to manually code those, which defeats the purpose of using > the org options. I have switched this around, these definitions now com right after the \usepackage macros, before the custom header stuff. - Carsten