From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Error with \usepackage{amsmath} due to \iint already being defined Date: Fri, 24 May 2013 21:39:08 +0200 Message-ID: <87a9nk6ucj.fsf@gmail.com> References: <87ppwgusst.fsf@pierrot.dokosmarshall.org> <20130524210106.29cc01b7@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfxpY-0000j9-Jt for emacs-orgmode@gnu.org; Fri, 24 May 2013 15:39:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfxpR-00068s-To for emacs-orgmode@gnu.org; Fri, 24 May 2013 15:39:12 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:45048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfxpR-00068Q-LK for emacs-orgmode@gnu.org; Fri, 24 May 2013 15:39:05 -0400 Received: by mail-wi0-f177.google.com with SMTP id hr14so96202wib.10 for ; Fri, 24 May 2013 12:39:04 -0700 (PDT) In-Reply-To: <20130524210106.29cc01b7@aga-netbook> (Marcin Borkowski's message of "Fri, 24 May 2013 21:01:06 +0200") 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: Marcin Borkowski Cc: emacs-orgmode@gnu.org Hello, Marcin Borkowski writes: > Also, taking into account the number of problems with wasysym's > conflicts, I'd suggest dropping it (and maybe several other packages) > from it. That would break, among other things, previewing of LaTeX snippets. On the other hand, it's probably safe to remove "longtable" package since we don't provide other table packages supported by the latex export back-end. Also, we may pass the "nointegrals" option by default to wasysym. > Further, this seems to be a bit of work - I can't promise > anything /now/ - but I'll try to look into it and check which package > is needed for which entity; loading a big package for a few commands > might be an overkill. IIRC it has been done already. The document is somewhere in Worg. > Would it be possible for the LaTeX exporter to include some packages > only if they are really needed, i.e., if some entity is actually used > in the document? This would both speed up compilation time and (maybe > more importantly) reduce the risk of such conflicts. (Not to mention > the inelegance of a large preamble consisting of loading unnecessary > packages - as a person responsible for converting LaTeX files sent to > a journal by people into something usable/compilable/good-looking, > I can say that one of the first things I usually do is to delete /all > \usepackage's/ from the preamble, and see if it compiles correctly. In > more than 50% cases, it does... It has been suggested on this list already. Aaron Ecay even provided a patch. I think this is calling for problems as it cannot be totally reliable (and the time necessary to do this would probably defeat the compilation gain). On the other hand, you can define your own optimized preamble with `org-latex-classes' while the default setup still provides a (somewhat) smooth experience for the casual LaTeX user. Regards, -- Nicolas Goaziou