emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Stefan Otte <stefan.otte@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-preview-latex-fragment ignores \includes in the LATEX_HEADER
Date: Fri, 29 May 2015 08:44:27 +0100	[thread overview]
Message-ID: <87pp5jeskk.fsf@delle7240.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <CAFync2h7iytvsCbWe7puD8qB5zU7f8UWhnka_=kQ52Dv53imzA@mail.gmail.com> (Stefan Otte's message of "Wed, 27 May 2015 15:02:02 +0200")

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

      parent reply	other threads:[~2015-05-29  8:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-27 13:02 org-preview-latex-fragment ignores \includes in the LATEX_HEADER Stefan Otte
2015-05-27 13:37 ` Robert Klein
2015-05-28  9:21   ` Stefan Otte
2015-05-28 16:09 ` Nick Dokos
2015-05-29  7:44 ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pp5jeskk.fsf@delle7240.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=stefan.otte@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).