From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: Re: [bug] latex export ignores org-export-latex-default-packages-alist? Date: Wed, 26 Jan 2011 16:01:52 +0000 Message-ID: References: <87sjwfd6i5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53526 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pi7pF-0000ia-Qd for emacs-orgmode@gnu.org; Wed, 26 Jan 2011 11:02:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pi7ov-0002hq-9Z for emacs-orgmode@gnu.org; Wed, 26 Jan 2011 11:02:29 -0500 Received: from lo.gmane.org ([80.91.229.12]:58244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pi7ov-0002gN-1y for emacs-orgmode@gnu.org; Wed, 26 Jan 2011 11:02:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pi7or-0004n6-4q for emacs-orgmode@gnu.org; Wed, 26 Jan 2011 17:02:05 +0100 Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Jan 2011 17:02:05 +0100 Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Jan 2011 17:02:05 +0100 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 Eric S Fraga wrote: > I need to use the amsmath package for a paper I am writing. This > conflicts, unfortunately, with the wasysym package which is loaded by > default in the org-latex exporter. > Checking the documentation for org-export-latex-classes, I find: > ,---- > | - Calls to \usepackage for all packages mentioned in the variables > | `org-export-latex-default-packages-alist' and > | `org-export-latex-packages-alist'. Thus, your header definitions should > | avoid to also request these packages. > `---- > I then checked out the first of these lists and customised it (first, by > hand, then by emacs's own customisation method) to turn off the > inclusion of wasysym. The value of the variable, upon restarting emacs > just to make sure, is: [...] > If SNIPPET-FLAG is t, the package also needs to be included when > compiling LaTeX snippets into images for inclusion into HTML. You've set SNIPPET-FLAG to nil for wasysym, but this means that wasysym will not be included for compiling latex snippets. When producing the whole document it will still be included. To use wasysym along with amsmath, you need to pass the "integrals" option to wasysym. To do this, customize the options list of the wasysym entry to be ("integrals" "wasysym" t) rather than ("" "wasysym" t) This is what I do to use amsmath in Org exports: | (add-to-list 'org-export-latex-packages-alist '("" "amsmath" t)) | (setcar (rassoc '("wasysym" t) org-export-latex-default-packages-alist) | "integrals") The latter has to be done after loading org-latex. [...] Cheers, Lawrence