emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Bach <phaebz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-preview-latex-fragment does not include #+LaTeX_CLASS definition
Date: Tue, 10 Jan 2012 14:58:48 +0100	[thread overview]
Message-ID: <4f0c4307.c9330e0a.78cb.48a7@mx.google.com> (raw)

Hello everyone,

org-mode version 7.8.02

When doing `org-preview-latex-fragment' on a buffer with custom set
#+LaTeX_CLASS and some #+LATEX_HEADER lines, the pdflatex process to
create the ltxpng/*.png images fails e.g. with:

Failed to create dvi file from /tmp/orgtex1650tNa.tex

Now when I check the temporary .tex file under
e.g. /tmp/orgtex1650tNa.tex, I see that the #+LATEX_HEADER: parts of my
file got put in, but the preamble does not include the #+LaTeX_CLASS
\usepackage definitions.

The #+LATEX_HEADER lines depend on the packages loaded in my
#+LaTeX_CLASS definition, so there is no wonder pdflatex fails.

My actual question: Why is the tmp tex file generated without the custom
#+LaTeX_CLASS preamble?

Best Regards,
Michael

                 reply	other threads:[~2012-01-10 13:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4f0c4307.c9330e0a.78cb.48a7@mx.google.com \
    --to=phaebz@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).