Re: [Orgmode] FR: Define Latex macros from export header

2009-02-26 Thread Russell Adams
Carsten, Rock on! I'll test this out shortly. Thanks. On Thu, Feb 26, 2009 at 09:19:48PM +0100, Carsten Dominik wrote: > Hi Russel, > > you can now write {{{TITLE}}} and {{{EMAIL}}} etc to get these > interpolated. > More generally, you can write > > #+MACRO: name value of the macro > > and th

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-26 Thread Carsten Dominik
Hi Russel, you can now write {{{TITLE}}} and {{{EMAIL}}} etc to get these interpolated. More generally, you can write #+MACRO: name value of the macro and then write {{{name}}} to get the value interpolated. - Carsten On Feb 23, 2009, at 1:06 AM, Russell Adams wrote: On Sat, Feb 21, 2009

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-22 Thread Russell Adams
On Sat, Feb 21, 2009 at 08:28:13AM -0600, Russell Adams wrote: > >> 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 defi

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-21 Thread Russell Adams
On Sat, Feb 21, 2009 at 02:03:54PM +0100, Carsten Dominik wrote: > >> 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 don't see

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-21 Thread Carsten Dominik
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: "orgAUTHO

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-20 Thread Russell Adams
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-expor

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-20 Thread Carsten Dominik
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) We don't need to pick any specific ones. The only

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-19 Thread Russell Adams
Carsten, I was thinking of just exporting all key/value pairs in the header with an org prefix (no - or _ or /, ie: "orgAUTHOR"). We don't need to pick any specific ones. The only one that we have to worry about is properly quoting the OPTIONS line. FYI I love the LATEX_HEADER line, I've done aw

Re: [Orgmode] FR: Define Latex macros from export header

2009-02-19 Thread Carsten Dominik
Hi Russel, can you come up with a complete list of macros you'd like to have defined? Right now you are leaving the guesswork to me. - Carsten On Feb 15, 2009, at 7:59 AM, Russell Adams wrote: I think this one should be very easy! For each option in the export template at the head of the fi

[Orgmode] FR: Define Latex macros from export header

2009-02-14 Thread Russell Adams
I think this one should be very easy! For each option in the export template at the head of the file, could we export them for use in Latex? For example: #+AUTHOR:Russell Adams becomes \def\ORG_AUTHOR{Russell Adams} in the header of the Latex output? I'm finding myself redefining these ma