Nicolas Goaziou <n.goaz...@gmail.com> 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!