emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Myles English <mylesenglish@gmail.com>
Cc: Emacs-orgmode <Emacs-orgmode@gnu.org>
Subject: Re: [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?
Date: Sun, 24 Feb 2013 18:04:00 +0000	[thread overview]
Message-ID: <87liadd1wv.fsf@gmail.com> (raw)
In-Reply-To: <87mwutd4ui.fsf@gmail.com>


Just adding some more information.  It gets curiouser and curiouser...


Myles English writes:

> Hi,
>
> I have just pulled from git and have been migrating to use the new
> exporter.
>
> I have a problem where org-preview-latex-fragment appears not to use a
> style file the latex header.
>
> Starting emacs like this:
>
> emacs -Q -l ~/minimal.el ~/file.org
>
> When I export the whole buffer to pdf it looks right.
>
> When I call org-preview-latex-fragment on the fragment the definitions
> in a.sty are not picked up.  This previously worked when using the
> new exporter before it was merged.
>
> Can anyone help?
>
> Thanks,
> Myles
>
>
> ---------------------------------- ~/bug.sty --------------
> \newcommand{\mysymbol}{\mathbf v}
>
> ---------------------------------- minimal.el ------------
> (add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp")
> (require 'ox)
>
> ---------------------------------- file.org ---------------
> #+STARTUP: indent
> #+LATEX_HEADER: \usepackage{~/bug}
>
> * heading
>
> \[ \mysymbol = f \]    -- NO WORK
>
> \[ 0 = f \]            -- WORKS

\[ \dfrac{\partial a}{\partial b} \]  -- The fragment is perfect,
showing it as da/db but the pdf file shows it as dadb instead.

Another strange thing is that if the \[\] is the last thing in the file
apart from some empty lines then org will fold at the end of it i.e. I
see \[\]...

>
> ----------------------------------------------------------

Myles

  reply	other threads:[~2013-02-24 18:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-24 17:00 [new exporter][latex] does org-preview-latex-fragment use #+latex_header ? Myles English
2013-02-24 18:04 ` Myles English [this message]
2013-02-25 23:07 ` Nicolas Goaziou
2013-02-26  0:26   ` Myles English
2013-02-26  8:04     ` Nicolas Goaziou
2013-02-26 12:41       ` Myles English
2013-02-26 14:03 ` Bastien
2013-02-26 14:21   ` Myles English
2013-02-26 14:54     ` Evan Misshula
2013-02-26 15:16       ` Evan Misshula
2013-02-26 15:33       ` Myles English

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=87liadd1wv.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    /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).