From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWFyaW8gUm9tw6Fu?= Subject: Bug: Does HEADER_LATEX_EXTRA work in org 9.0? [9.0.9 (9.0.9-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20170622/)] Date: Sun, 25 Jun 2017 00:05:11 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f4030435b4a4a0c66a0552bbea5f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOtBP-00027Q-TE for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 18:05:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOtBP-0000ao-1E for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 18:05:35 -0400 Received: from mail-yb0-x229.google.com ([2607:f8b0:4002:c09::229]:34033) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOtBO-0000aA-Sn for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 18:05:34 -0400 Received: by mail-yb0-x229.google.com with SMTP id e201so20969672ybb.1 for ; Sat, 24 Jun 2017 15:05:33 -0700 (PDT) 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 --f4030435b4a4a0c66a0552bbea5f Content-Type: text/plain; charset="UTF-8" I have tried to use #+latex_header_extra on org 9.0.9, using an empty Emacs configuration file. The following fragment #+LATEX_HEADER_EXTRA: \newcommand{\test}{testing} $\test$ creates an image with the text "testing". It seems that it is using the command inside the preview; but I would expect it to give me an error (a blank image), as \test should not be defined in latex preview. I don't know if this is a bug or if I am missing something. Expected behaviour: error on the latex preview. Actual behaviour: the latex preview works using the command defined on the extra header, that should not be used in latex preview. Emacs : GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.12) of 2017-04-28 Package: Org mode version 9.0.9 (9.0.9-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20170622/) --f4030435b4a4a0c66a0552bbea5f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have tried to use #+latex_header_extra on org 9.0.9, usi= ng an empty Emacs configuration file. The following fragment
  =
  #+LATEX_HEADER_EXTRA: \newcommand{\test}{testing}
    $\test$
creates an image with the text "testing&q= uot;. It seems that it is using the command inside the preview; but I would= expect it to give me an error (a blank image), as \test should not be defi= ned in latex preview. I don't know if this is a bug or if I am missing = something.

Expected behaviour: error on the latex preview= .
Actual behaviour: the latex preview works using the command= defined on the extra header, that should not be used in latex preview.
=

Emacs=C2=A0 : GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gn= u, GTK+ Version 3.22.12)
=C2=A0of 2017-04-28
Package: Org mode versio= n 9.0.9 (9.0.9-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20170622/)
=
--f4030435b4a4a0c66a0552bbea5f--