emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug(?) in org-preview-latex-fragment
@ 2010-11-28 18:38 Sebastian Hofer
  2011-02-12 19:32 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Hofer @ 2010-11-28 18:38 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

it seems that org-preview-latex-fragment does not process \include{} commands in the LATEX_HEADER (while it does process \newcommand). It this supposed to be like that? If not, can it be changed or worked around somehow?

TIA
Sebastian

Minimal example:

test.org:
===================================
#+LATEX_CLASS: article
#+LATEX_HEADER: \include{commands}
#+LATEX_HEADER: \newcommand{\x}{X}
* This works
$\x$
* This doesn't
$\y$
===================================

commands.tex:
===================================
\newcommand{\y}{Y}
===================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug(?) in org-preview-latex-fragment
  2010-11-28 18:38 bug(?) in org-preview-latex-fragment Sebastian Hofer
@ 2011-02-12 19:32 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2011-02-12 19:32 UTC (permalink / raw)
  To: Sebastian Hofer; +Cc: emacs-orgmode

Hi Sebastian,

Sebastian Hofer <sebhofer@gmail.com> writes:

> it seems that org-preview-latex-fragment does not process \include{}
> commands in the LATEX_HEADER (while it does process \newcommand). It this
> supposed to be like that? If not, can it be changed or worked around
> somehow?

dvipng creates images in the temporary folder (/tmp/).

Put command.tex in /tmp/ and it will work.

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-12 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-28 18:38 bug(?) in org-preview-latex-fragment Sebastian Hofer
2011-02-12 19:32 ` Bastien

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