|
From: | Jacob Gerlach |
Subject: | Re: [O] Include lengthy LaTeX in export preamble |
Date: | Sun, 27 Jul 2014 22:19:23 -0400 |
Hi Jacob,
#+LATEX_HEADER: does work on export (when else would it work?)
2) From Aaron Ecay, put your header in a #+BEGIN_SRC latex section, and
then run a bit of lisp to export that section, and then include the
exported file in a #+LATEX_HEADER: \include{preamble}. This is the
approach I use.
,----
| #+begin_src emacs-lisp
| (org-babel-goto-named-src-block "preamble")
| (org-babel-tangle)
| #+end_src
|
| #+name: preamble
| #+begin_src latex :tangle preamble.tex
| % code goes here
| #+end_src
`----
[Prev in Thread] | Current Thread | [Next in Thread] |