From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-preview-latex-fragment ignores \includes in the LATEX_HEADER Date: Thu, 28 May 2015 12:09:50 -0400 Message-ID: <87k2vsznsh.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy0Nd-0002CU-Rk for emacs-orgmode@gnu.org; Thu, 28 May 2015 12:10:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yy0Na-0001YU-M9 for emacs-orgmode@gnu.org; Thu, 28 May 2015 12:10:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:45743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy0Na-0001Xs-Fl for emacs-orgmode@gnu.org; Thu, 28 May 2015 12:09:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Yy0NZ-0005U3-1u for emacs-orgmode@gnu.org; Thu, 28 May 2015 18:09:57 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 May 2015 18:09:57 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 May 2015 18:09:57 +0200 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 Stefan Otte writes: > 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? > > Fragments are islands unto themselves with their own special handling. See the doc for the variable org-format-latex-header. Nick