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: Eric S Fraga
Subject: Re: [O] org-preview-latex-fragment ignores \includes in the LATEX_HEADER
Date: Fri, 29 May 2015 08:44:27 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux)

On Wednesday, 27 May 2015 at 15:02, Stefan Otte wrote:

[...]

> 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?

Maybe create a style file and then use

,----[ C-h v org-latex-packages-alist RET ]
| org-latex-packages-alist is a variable defined in `org.el'.
| 
| Documentation:
| Alist of packages to be inserted in every LaTeX header.
| 
| These will be inserted after `org-latex-default-packages-alist'.
| Each element is either a cell or a string.
| 
| A cell is of the format:
| 
|     ("options" "package" SNIPPET-FLAG)
| 
| SNIPPET-FLAG, when non-nil, indicates that this package is also
| needed when turning LaTeX snippets into images for inclusion into
| non-LaTeX output.
| 
| A string will be inserted as-is in the header of the document.
| 
| Make sure that you only list packages here which:
| 
|   - you want in every file;
|   - do not conflict with the setup in `org-format-latex-header';
|   - do not conflict with the default packages in
|     `org-latex-default-packages-alist'.
| 
| You can customize this variable.
`----

Note bit about LaTeX snippets.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1136-g0e7062



reply via email to

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