From mboxrd@z Thu Jan 1 00:00:00 1970 From: plus Subject: Bug: Latex fragments: snippet-flag in packages alist ignored in 9.0.4 Date: Thu, 09 Feb 2017 21:38:26 +0200 Message-ID: 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]:51585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbuY9-0001vV-5U for emacs-orgmode@gnu.org; Thu, 09 Feb 2017 14:38:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbuY4-0008C4-78 for emacs-orgmode@gnu.org; Thu, 09 Feb 2017 14:38:37 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:33701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbuY4-0008Au-1B for emacs-orgmode@gnu.org; Thu, 09 Feb 2017 14:38:32 -0500 Received: by mail-wr0-f193.google.com with SMTP id i10so12983062wrb.0 for ; Thu, 09 Feb 2017 11:38:30 -0800 (PST) Received: from apollo ([77.125.35.89]) by smtp.gmail.com with ESMTPSA id h3sm20107025wrb.31.2017.02.09.11.38.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 11:38:28 -0800 (PST) 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: emacs-orgmode@gnu.org 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 funct= ion. I should say I am not sure if this problem is specific to my environment. Please let me know if you can reproduce it. Emacs : GNU Emacs 25.1.1 (x86_64-unknown-cygwin) of 2016-09-17 Package: Org mode version 9.0.4 (9.0.4-elpa @ /cygdrive/c/home/.emacs.d/elp= a/org-20170124/)