From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: [bug] latex export ignores org-export-latex-default-packages-alist?
Date: Wed, 26 Jan 2011 15:33:38 +0000 [thread overview]
Message-ID: <87sjwfd6i5.fsf@ucl.ac.uk> (raw)
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:
--8<---------------cut here---------------start------------->8---
org-export-latex-default-packages-alist is a variable defined in `org.el'.
Its value is shown below.
Documentation:
Alist of default packages to be inserted in the header.
Change this only if one of the packages here causes an incompatibility
with another package you are using.
The packages in this list are needed by one part or another of Org-mode
to function properly.
- inputenc, fontenc: for basic font and character selection
- textcomp, marvosymb, wasysym, latexsym, amssym: for various symbols used
for interpreting the entities in `org-entities'. You can skip some of these
packages if you don't use any of the symbols in it.
- graphicx: for including images
- float, wrapfig: for figure placement
- longtable: for long tables
- hyperref: for cross references
Therefore you should not modify this variable unless you know what you
are doing. The one reason to change it anyway is that you might be loading
some other package that conflicts with one of the default packages.
Each cell is of the format ( "options" "package" snippet-flag).
If SNIPPET-FLAG is t, the package also needs to be included when
compiling LaTeX snippets into images for inclusion into HTML.
You can customize this variable.
Value: (("AUTO" "inputenc" t)
("T1" "fontenc" t)
("" "fixltx2e" nil)
("" "graphicx" t)
("" "longtable" nil)
("" "float" nil)
("" "wrapfig" nil)
("" "soul" t)
("" "textcomp" t)
("" "marvosym" t)
("" "wasysym" nil)
("" "latexsym" t)
("" "amssymb" t)
("" "hyperref" nil)
"\\tolerance=1000")
Original value was
(("AUTO" "inputenc" t)
("T1" "fontenc" t)
("" "fixltx2e" nil)
("" "graphicx" t)
("" "longtable" nil)
("" "float" nil)
("" "wrapfig" nil)
("" "soul" t)
("" "textcomp" t)
("" "marvosym" t)
("" "wasysym" t)
("" "latexsym" t)
("" "amssymb" t)
("" "hyperref" nil)
"\\tolerance=1000")
--8<---------------cut here---------------end--------------->8---
Note that wasysym is turned off in the setting I have. However, when I
export my org file, I find.
,----
| ...
| \usepackage{marvosym}
| \usepackage{wasysym}
| \usepackage{latexsym}
| ...
`----
I am confused. I was trying to avoid setting the full export
information manually but I may have to.
Any suggestions? Am I doing something incredibly silly?
Thanks,
Eric
--
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)
next reply other threads:[~2011-01-26 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 15:33 Eric S Fraga [this message]
2011-01-26 16:01 ` [bug] latex export ignores org-export-latex-default-packages-alist? Lawrence Mitchell
2011-01-26 16:34 ` Eric S Fraga
2011-01-26 16:06 ` Sébastien Vauban
2011-01-26 17:28 ` Eric S Fraga
2011-01-26 16:27 ` Eric S Fraga
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjwfd6i5.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.