From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: org-preview-latex-fragment does not include #+LaTeX_CLASS definition Date: Tue, 10 Jan 2012 14:58:48 +0100 Message-ID: <4f0c4307.c9330e0a.78cb.48a7@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkc9f-0005CM-4V for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 08:54:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkc9Z-0007yY-DB for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 08:54:23 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:56457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkc9Z-0007yL-8H for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 08:54:17 -0500 Received: by eeke53 with SMTP id e53so264182eek.0 for ; Tue, 10 Jan 2012 05:54:16 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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