From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: bug in latex export tutorial? Date: Sat, 30 Apr 2011 23:14:07 +0100 Message-ID: <8739kzjsk0.fsf@ucl.ac.uk> References: <4DBAE6C5.7040405@sift.info> <21EAF539-3471-401B-A503-C07FC1377EE1@tsdye.com> <4DBAEC94.3050902@sift.info> <5267.1304101270@alphaville.americas.hpqcorp.net> <4DBB280D.9020000@sift.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGIQa-0006SV-40 for emacs-orgmode@gnu.org; Sat, 30 Apr 2011 18:14:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGIQY-00035N-N5 for emacs-orgmode@gnu.org; Sat, 30 Apr 2011 18:14:15 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:54240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGIQY-00035F-Hn for emacs-orgmode@gnu.org; Sat, 30 Apr 2011 18:14:14 -0400 In-Reply-To: <4DBB280D.9020000@sift.info> (Robert Goldman's message of "Fri, 29 Apr 2011 16:05:17 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: rpgoldman@sift.info Cc: nicholas.dokos@hp.com, Org Mode Robert Goldman writes: > On 4/29/11 Apr 29 -1:21 PM, Nick Dokos wrote: [...] >> amsmath conflicts with wasysym (redefines \iint), so you have to >> redefine your headers to omit wasysym or include amsmath *first*: for >> some reason, if you \usepackage{amsmath} *before* you >> \usepackage{wasysym}, the error does not arise -- presumably, amsmath >> assumes that \iint is not defined beforehand, whereas wasysym does not >> make that assumption. > > The not-very-tasty solution I came up with was to put the following into > the local variables list at the foot of my file: > > # org-export-latex-default-packages-alist: (("AUTO" "inputenc" t) ("T1" > "fontenc" t) ("" "fixltx2e" nil) ("" "graphicx" t) ("" "longtable" nil) > ("" "float" nil) ("" "wrapfig" nil) ("" "soul" t) ("" "t1enc" t) ("" > "textcomp" t) ("" "marvosym" t) ("" "amsmath" t) ("" "wasysym" t) ("" > "latexsym" t) ("" "amssymb" t) > ("colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue" > "hyperref" nil) "\\tolerance=1000") > > I put this in the file, rather than in my configuration, because it is > specific to the formatting of this file, and because I share this > document with others, who need to be able to export from it w/o having > to reconfigure their org-mode installations. > > I figure that someone can probably suggest a solution that is nicer than > that! > > Best, > r >From earlier this year on the mailing list, below is a solution which works if you more often than not want amsmath; i.e. it's not a solution for the use case you specify in which you want to share a single file etc. However, it's worth repeating this solution for other use cases. --8<---------------cut here---------------start------------->8--- ;; to fix problems with amsmath conflicting with wasysym: ;; ;; From: Lawrence Mitchell ;; Subject: [Orgmode] Re: [bug] latex export ignores org-export-latex-default-packages-alist? ;; To: emacs-orgmode@gnu.org ;; Date: Wed, 26 Jan 2011 16:01:52 +0000 (add-to-list 'org-export-latex-packages-alist '("" "amsmath" t)) (setcar (rassoc '("wasysym" t) org-export-latex-default-packages-alist) "integrals") --8<---------------cut here---------------end--------------->8--- HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.226.gc7ed6.dirty)