[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug?][patch] Org LaTeX Fragments

From: Nicolas Goaziou
Subject: Re: [O] [bug?][patch] Org LaTeX Fragments
Date: Wed, 11 Sep 2013 15:18:08 +0200


Rasmus <address@hidden> writes:

> I don't know if this is a bug or a feature, but consider the following
> test file:
> #+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}

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.


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]