From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Otte Subject: Re: org-preview-latex-fragment ignores \includes in the LATEX_HEADER Date: Thu, 28 May 2015 11:21:13 +0200 Message-ID: References: <20150527153722.5ed5e2db@pckr150.mpip-mainz.mpg.de> Reply-To: stefan.otte@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxu0N-0005gH-DK for emacs-orgmode@gnu.org; Thu, 28 May 2015 05:21:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxu0M-0007Ut-H1 for emacs-orgmode@gnu.org; Thu, 28 May 2015 05:21:35 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:36606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxu0M-0007Ui-A6 for emacs-orgmode@gnu.org; Thu, 28 May 2015 05:21:34 -0400 Received: by wizk4 with SMTP id k4so139555250wiz.1 for ; Thu, 28 May 2015 02:21:33 -0700 (PDT) In-Reply-To: <20150527153722.5ed5e2db@pckr150.mpip-mainz.mpg.de> 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: Robert Klein Cc: emacs-orgmode@gnu.org Hey, "\input" does not solve the problem. Still no preview images. (The pdf export still works as expected.) Best, Stefan On Wed, May 27, 2015 at 3:37 PM, Robert Klein wrote: > Hi, > > On Wed, 27 May 2015 15:02:02 +0200 > Stefan Otte wrote: > >> Hey, >> >> I'm using orgmode with lots of LaTeX for equations. A typical document >> start with >> >> #+TITLE: Some Title >> #+LaTeX_HEADER: \include{commands} >> >> commands.tex contains commands like: >> \newcommand{\RRR}{{\mathbb{R}}} >> >> The pdf export works flawlessly, however `org-preview-latex-fragment` >> seems to ignore "\include{commands}", i.e., equations that use >> commands that are defined in commands.tex are rendered as blank/empty >> image. >> >> Is it the intended behavior that `org-preview-latex-fragment` ignores >> "\include", is it a bug, or is there a better way to do it? >> > > afaik \include doesn't work in LaTeX headers; you'll have to use \input > there. > > Could you try to use \input? > > Best regards > Robert