From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henri-Paul Indiogine Subject: Re: Re: IMPORTANT: (possibly) incompatible Change Date: Sat, 03 Apr 2010 17:50:48 -0500 Message-ID: <87mxxki20n.fsf@belvoir.org> References: <86sk7gooh2.fsf@portan.ibr.cs.tu-bs.de> <3E3E058D-6BBD-4D9B-845D-3E13235EF0DC@gmail.com> <4BB3973D.3090305@comcast.net> <9667B267-935B-4DFB-800B-FC76DBCCBF28@gmail.com> <4BB54594.5070803@comcast.net> <4BB78D9C.4040000@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyCB6-00026k-1Q for emacs-orgmode@gnu.org; Sat, 03 Apr 2010 18:50:56 -0400 Received: from [140.186.70.92] (port=38332 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyCB4-00026V-JZ for emacs-orgmode@gnu.org; Sat, 03 Apr 2010 18:50:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyCB2-00044v-VV for emacs-orgmode@gnu.org; Sat, 03 Apr 2010 18:50:54 -0400 Received: from mail-qy0-f184.google.com ([209.85.221.184]:49639) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyCB2-00044r-RM for emacs-orgmode@gnu.org; Sat, 03 Apr 2010 18:50:52 -0400 Received: by qyk14 with SMTP id 14so3810150qyk.14 for ; Sat, 03 Apr 2010 15:50:51 -0700 (PDT) In-Reply-To: <4BB78D9C.4040000@comcast.net> (Mark Elston's message of "Sat, 03 Apr 2010 11:49:00 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 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: hindiogine@gmail.com Skype: hindiogine Website: http://www.coe.tamu.edu/~enrico