From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug?][patch] Org LaTeX Fragments Date: Wed, 11 Sep 2013 15:18:08 +0200 Message-ID: <878uz38pxm.fsf@gmail.com> References: <87d2ofu0dm.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJkIz-0000oT-S6 for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 09:18:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJkIt-000430-M2 for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 09:18:01 -0400 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:46747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJkIt-00042C-Ep for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 09:17:55 -0400 Received: by mail-ee0-f51.google.com with SMTP id c1so4579635eek.38 for ; Wed, 11 Sep 2013 06:17:54 -0700 (PDT) In-Reply-To: <87d2ofu0dm.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 11 Sep 2013 12:19:01 +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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus 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. <> Run \src_emacs-lisp{(org-preview-latex-fragment)} > - WORKS > 3. <> 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