emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Mario Román" <mromang08@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <CAF0Rnhty0vB3mtU1pgcWZJf3WYEKAKaHACkcYx7XrgToX=btWQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

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/)

[-- Attachment #2: Type: text/html, Size: 951 bytes --]

             reply	other threads:[~2017-06-24 22:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-24 22:05 Mario Román [this message]
2017-06-25  7:41 ` Bug: Does HEADER_LATEX_EXTRA work in org 9.0? [9.0.9 (9.0.9-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20170622/)] Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF0Rnhty0vB3mtU1pgcWZJf3WYEKAKaHACkcYx7XrgToX=btWQ@mail.gmail.com' \
    --to=mromang08@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).