emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug?][patch] Org LaTeX Fragments
Date: Wed, 11 Sep 2013 15:18:08 +0200	[thread overview]
Message-ID: <878uz38pxm.fsf@gmail.com> (raw)
In-Reply-To: <87d2ofu0dm.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 11 Sep 2013 12:19:01 +0200")

Hello,

Rasmus <rasmus@gmx.us> writes:

> I don't know if this is a bug or a feature, but consider the following
> test file:
>
> #+BEGIN_SRC Org
> #+TITLE: Fails when exporting
> #+TITLE: Fails when exporting
>
> * Instructions							   :noexport:
>
>   1. Start =emacs -q=
>   2. <<p2>> Run \src_emacs-lisp{(org-preview-latex-fragment)}
>      - WORKS
>   3. <<p3>> Run \src_emacs-lisp{(org-latex-export-to-pdf)} =./test.pdf=
>      - FAILS
>
>   [[p2]] works when [[p3]] fails because `org-format-latex-header`
>   loads =amsmath=, but Org LaTeX export doesn't.  Why I don't know.
>
>   *Proposal: Replace amstext with amsmath.*
>
> * test
> \begin{align}
> x \mathcal{ABC}
> \end{align}
> #+END_SRC

I think `org-format-latex-header' shouldn't load amsmath at all.

> The first patch adds amsmath as a dependency which fixes the above
> bug.  According to my TeXLive it seems amstext is distributed with
> amsmath, so I don't think that's an issue.  Increased load time?
> Well, maybe.  I didn't test.

It's not about load time, but about compatibility with other packages.
I think some of them don't coexist well with amsmath. "amssymb" and
"amstext" are less demanding in that area.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-09-11 13:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11 10:19 [bug?][patch] Org LaTeX Fragments Rasmus
2013-09-11 13:18 ` Nicolas Goaziou [this message]
2013-09-11 15:22   ` Rasmus
2013-09-12 15:07     ` Nicolas Goaziou

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=878uz38pxm.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).