From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: bug in latex export tutorial? Date: Fri, 29 Apr 2011 16:05:17 -0500 Message-ID: <4DBB280D.9020000@sift.info> References: <4DBAE6C5.7040405@sift.info> <21EAF539-3471-401B-A503-C07FC1377EE1@tsdye.com> <4DBAEC94.3050902@sift.info> <5267.1304101270@alphaville.americas.hpqcorp.net> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFusL-0005OP-DF for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 17:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFusI-0001l0-OU for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 17:05:21 -0400 Received: from mpls.sift.info ([75.146.46.193]:45065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFusI-0001kq-L3 for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 17:05:18 -0400 In-Reply-To: <5267.1304101270@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: Org Mode On 4/29/11 Apr 29 -1:21 PM, Nick Dokos wrote: > Robert Goldman wrote: > >> On 4/29/11 Apr 29 -11:44 AM, Thomas S. Dye wrote: >>> Aloha Robert, >>> >>> Yep. It should be "One of these, amssymb, requires amsmath, which >>> conflicts with several LaTeX fonts." >> >> I don't /believe/ amssymb requires amsmath. I have been working on a >> document where I wanted to use some of the stuff in amsmath (e.g., >> \text, align environment). That document did /not/ parse, even though >> amssymb *is* in the preamble of the exported file. I looked, and the >> preamble has amssymb, but not amsmath. >> >> It would be *great* if someone could provide tutorial information that >> would tell us: >> >> 1. How do we configure a file so that it *can* use amsmath? > > 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