From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Latex fragments: snippet-flag in packages alist ignored in 9.0.4 Date: Sat, 11 Feb 2017 02:36:37 +0100 Message-ID: <87inohqziy.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccMcG-0004zE-PJ for emacs-orgmode@gnu.org; Fri, 10 Feb 2017 20:36:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccMcB-0003wg-Sc for emacs-orgmode@gnu.org; Fri, 10 Feb 2017 20:36:44 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53383) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccMcB-0003wa-Lp for emacs-orgmode@gnu.org; Fri, 10 Feb 2017 20:36:39 -0500 In-Reply-To: (plus's message of "Thu, 09 Feb 2017 21:38:26 +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" To: plus Cc: emacs-orgmode@gnu.org Hello, plus writes: > Steps to reproduce: > 1. emacs -Q > 2. load org 9.0.4 > 3. (add-to-list 'org-latex-packages-alist '("" "polyglossia" nil)) > 4. switch to org-mode and attempt to render any fragment, e.g. $test$ > 5. error > > If you look at the tex file produced, polyglossia has been included in > the preamble even though snippet-flag is nil. Additionally longtable, > wrapfig, rotating, capt-of, hyperref are all included in the preamble > despite the fact their snippet-flag is nil. (These are packages in > org-latex-default-packages-alist). > > The relevant function that has been changed in 9.0.4 is > `org-create-formula-image'. It looks like the function used to generate > latex-header, `org-create-formula--latex-header', has been replaced with > `org-latex-make-preamble' (defined in ox-latex.el). > > Restoring org-create-formula--latex-header from 9.0.3 and redefining > org-create-formula-image again restores the old behaviour for me. Of > course I don=E2=80=99t know what the problem actually is with the new > function. Fixed. Thank you. Regards, --=20 Nicolas Goaziou