emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: emacs-orgmode@gnu.org
Subject: Re: Error with \usepackage{amsmath} due to \iint already being defined
Date: Fri, 24 May 2013 21:01:06 +0200	[thread overview]
Message-ID: <20130524210106.29cc01b7@aga-netbook> (raw)
In-Reply-To: <87ppwgusst.fsf@pierrot.dokosmarshall.org>

Dnia 2013-05-24, o godz. 14:38:42
Nick Dokos <ndokos@gmail.com> napisał(a):

> John Hendy <jw.hendy@gmail.com> writes:
> 
> > On Fri, May 24, 2013 at 12:22 PM, Vincent Beffara
> > <vbeffara@ens-lyon.fr> wrote:
> >>
> >> Hi,
> >>
> >>> I tracked down an error about \iint already being defined to a
> >>> clash between wasysym and amsmath. I brought in amsmath, but it
> >>> appears that wasysym is an Org LaTeX export default package.
> >>
> >> Just put this in the LaTeX header before you load amsmath:
> >>
> >> \usepackage{savesym}
> >> \savesymbol{iint}
> >> \savesymbol{iiint}
> >>
> >
> > Does this savewasysym's definition if iint instead of amsmath's? In
> > the case that I actually use \iint (super unlikely, but not
> > impossible), which package's is preferred?
> >
> 
> The wasysym docs say that there should be no conflict, but that seems
> to be wrong: ISTR multiple instances of this conflict.
> 
> If you prefer the amsmath integral signs over the wasysym ones, then
> probably the best thing to do is to load wasysym with the
> ``nointegrals'' option:
> 
>    \usepackage[nointegrals]{wasysym}
> 
> This can be done permanently by customizing
> org-latex-default-packages-alist and adding the option to the wasysym
> entry.

Nick: good to know about org-latex-default-packages-alist!

Carsten/Bastien (I forward to both of you, since I don't know who is
to gitblame for that:P): looking at its docstring, I guess there are
two minor bugs here: first, it is not technically an alist, but a
"normal" list, second, apparently the docstring doesn't mention that an
element of this list might be a string (inserted then verbatim into
preamble) and not a list.

Also, taking into account the number of problems with wasysym's
conflicts, I'd suggest dropping it (and maybe several other packages)
from it.

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.  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...

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

  reply	other threads:[~2013-05-24 19:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 17:04 Error with \usepackage{amsmath} due to \iint already being defined John Hendy
2013-05-24 17:22 ` Vincent Beffara
2013-05-24 17:35   ` John Hendy
2013-05-24 18:26     ` Marcin Borkowski
2013-05-24 18:38     ` Nick Dokos
2013-05-24 19:01       ` Marcin Borkowski [this message]
2013-05-24 19:39         ` Nicolas Goaziou
2013-05-25 12:59       ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130524210106.29cc01b7@aga-netbook \
    --to=mbork@wmi.amu.edu.pl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).