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?

Thanks,



-- 
Henri-Paul Indiogine
Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://www.coe.tamu.edu/~enrico


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to