emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [new exporter] feature request: BEGIN_LATEX_HEADER


From: Rasmus
Subject: Re: [O] [new exporter] feature request: BEGIN_LATEX_HEADER
Date: Fri, 08 Mar 2013 00:40:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

>> Prompted by Nicolas's recent addition of the LATEX_HEADER_EXTRA
>> directive, I would like to request another related feature.  Just as we
>> have the related LATEX and BEGIN_LATEX directives, I would like to see a
>> BEGIN_LATEX_HEADER directive for multi-line LATEX_HEADER lines:
>>
>> #+begin_src org
>> #+BEGIN_LATEX_HEADER
>> \usepackage{tikz}
>> \usepackage[british]{babel}
>> \newcommand{\esf}[1]{\footnote{#1}\marginpar{\fbox{\thefootnote}}
>> #+END_LATEX_HEADER
>> #+end_src
>>
>> (example taken from a recent org file).
>>
>> Not urgent, of course, but it would make it easier to write this type of
>> content, especially if it were fontified as well... ;-)
>
> There are already many ways to handle latex header. `org-latex-classes',
> setupfile keywords, include keywords, latex_header,
> latex_header_extra...
>
> Adding one more is not without consequences. For example, where should
> it go? After latex_header values? Before? Would the location be
> configurable in `org-latex-classes'? What placeholder to use?
>
> I admit I'm not very keen on this idea. Not because of the coding work,
> it would be around 10 loc, but because of syntax fester.

You could have a LaTeX block and tangle it to preamble.tex and input
preamble.tex in a LATEX_HEADER.

–Rasmus

-- 
Enough with the bla bla!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]