Hi!
This is what I have in my .emacs
(setq org-export-latex-packages-alist
'(("" "apacite")
("" "color")
("" "tikz")))
(setq org-export-latex-classes
'(("book"
"\\documentclass[11pt]{book}
\\definecolor{darkblue}{rgb}{0.0,0.0,0.3}
\\hypersetup{colorlinks,breaklinks,
linkcolor=darkblue,urlcolor=darkblue,
anchorcolor=darkblue,citecolor=darkblue}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
))
When I export to LaTeX the line \definecolor..... comes before
\usepackage{color} then it throws an error during compilation. If I
move the \definecolor... _after_ \usepackage{color} it compiles.
Is are a way to setup my LaTeX export so that this happens
automagically?