From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: org-preview-latex-fragment ignores \includes in the LATEX_HEADER Date: Wed, 27 May 2015 15:37:22 +0200 Message-ID: <20150527153722.5ed5e2db@pckr150.mpip-mainz.mpg.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxbWV-000612-EF for emacs-orgmode@gnu.org; Wed, 27 May 2015 09:37:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxbWQ-0007Zm-KT for emacs-orgmode@gnu.org; Wed, 27 May 2015 09:37:31 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:34061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxbWQ-0007Yr-Bi for emacs-orgmode@gnu.org; Wed, 27 May 2015 09:37:26 -0400 In-Reply-To: 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: Stefan Otte Cc: emacs-orgmode@gnu.org 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