From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Elston Subject: Re: Re: IMPORTANT: (possibly) incompatible Change Date: Sun, 04 Apr 2010 12:44:09 -0700 Message-ID: <4BB8EC09.5090608@comcast.net> 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> <87mxxki20n.fsf@belvoir.org> <9F13688A-A587-42C2-9897-7EFD8C6AD1E2@gmail.com> <87pr2gezp9.fsf@belvoir.org> <87k4sn15n6.fsf@belvoir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyVkK-0007wG-4P for emacs-orgmode@gnu.org; Sun, 04 Apr 2010 15:44:36 -0400 Received: from [140.186.70.92] (port=33185 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyVkG-0007w1-JX for emacs-orgmode@gnu.org; Sun, 04 Apr 2010 15:44:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyVkD-0004Gh-CS for emacs-orgmode@gnu.org; Sun, 04 Apr 2010 15:44:30 -0400 Received: from qmta06.emeryville.ca.mail.comcast.net ([76.96.30.56]:35932) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyVkC-0004GV-TT for emacs-orgmode@gnu.org; Sun, 04 Apr 2010 15:44:29 -0400 In-Reply-To: <87k4sn15n6.fsf@belvoir.org> 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@gnu.org Henri, On 4/4/2010 10:36 AM, Henri-Paul Indiogine wrote: > Carsten Dominik writes: >> >> OK, you can now specify the position where the usepackage definitions >> should appear in your header by putting the string >> >> [PACKAGES] >> >> into the header definition in org-export-latex-classes. Default (if >> you do >> not include this placeholder) is at the end. > > Sorry, but I am totally confused now. I want my packages defined in > org-export-latex-classes at the end of the LaTeX file preamble. So, > according to your instructions, if I understand them correctly, I > should not use this [PACKAGES] string. But, when I generate the tex > file the packages from org-export-latex-classes are at the top of my > preamble not at the end. > > Basically, I would like to have the packages in the following order: > > 1. org-export-latex-default-packages-alist > 2. org-export-latex-packages-alist > 3. org-export-latex-classes > > Sorry for being so dense, but I am really trying to understand. > I didn't see Carsten's notice on this but I think what he is getting at is that the [PACKAGES] directive will put the items from org-export-latex-default-packages-alist and org-export-latex-packages-alist in the output *in place of* the [PACKAGES] string. All the things in your org-export-latex-classes will appear as you have them. So, say your class looks like this: "\\documentclass[letter,twoside,openright]{memoir} \\usepackage{varioref} \\usepackage{shorttoc} \\usepackage{color} ... [PACKAGES]" What I expect to see is all the stuff from org-export-latex-default-packages-alist and org-export-latex-packages-alist at the end of your preamble. If, OTOH, you put the [PACKAGES] before any of your other usepackage commands, then you would get the stuff from org-export-latex-default-packages-alist and org-export-latex-packages-alist just after the documentclass line. Does that sound right? Mark