Richard Stanton <stan...@haas.berkeley.edu> writes: > When I export an org file to LaTeX using the class rhs-article, defined as > follows: > > ‘("rhs-article" > "\\documentclass{article} > \\usepackage[top=1in, bottom=1.in, left=1in, right=1in]{geometry} > [PACKAGES] > [EXTRA]" ;;header-string > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*a{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > > I see that my headers defined using #+LATEX_HEADER appear in the resulting > LaTeX file before the default packages defined in > org-latex-default-packages-alist. How can I get the default packages to > appear BEFORE the LATEX_HEADER items? Or better yet, how can I control things > so that I can choose whether a LATEX_HEADER item appears before or after the > default packages in the LaTeX file? >
See the doc for org-latex-classes, in particular the section entitled "The header string". Nick