emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-preview-latex-fragment ignores \includes in the LATEX_HEADER


From: Stefan Otte
Subject: Re: [O] org-preview-latex-fragment ignores \includes in the LATEX_HEADER
Date: Thu, 28 May 2015 11:21:13 +0200

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 <address@hidden> wrote:
> Hi,
>
> On Wed, 27 May 2015 15:02:02 +0200
> Stefan Otte <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]