emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Fwd: Is `org-preview-latex-fragment` sensitive to alignment specifie


From: Rob Stewart
Subject: [O] Fwd: Is `org-preview-latex-fragment` sensitive to alignment specified by document class options?
Date: Wed, 9 Apr 2014 16:56:50 +0100

Hi,

I asked the question below a few days ago, about whether
`org-preview-latex-fragment` is sensitive document class options that
might affect alignment. I've so far not received feedback, and
wondered whether there is more information that I could provide, or if
my question is not interesting to other people :-)

Git blame tells me that the last commit relating to the definition of
`org-preview-latex-fragment` in lisp/org.el is fe939ec by Carsten on
22-03-2008. Who might I be able to poke directly with my question
below.

Thanks,

--
Rob

---------- Forwarded message ----------
From: Rob Stewart <address@hidden>
Date: 6 April 2014 21:54
Subject: Is `org-preview-latex-fragment` sensitive to alignment
specified by document class options?
To: address@hidden

Hi,

Is there a way to make `org-preview-latex-fragment` sensitive to LaTeX
class options? I have a simple example to demonstrate where it does
not:

%%%%%%%
#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [fleqn]
#+LATEX_HEADER: \usepackage{amsmath}

\begin{gather}
b := (a \oplus s_1) \oplus s_2 \\
e := 0 \\
\end{gather}
%%%%%%%

If LaTeX is generated for this document with
`org-latex-export-to-latex`, which is compiled to a PDF with pdflatex,
the "b :=" and the "e :=" are left aligned i.e. the "b" and "e" are
vertically aligned.

However, if `org-preview-latex-fragment` is called within emacs, the
left alignment specified with the `[fleqn]` class option is not
honoured. Thus, the two lines in the `gather` block are centrally
aligned, which is the default case for `gather` blocks.

This is a screenshot of the PDF: http://imgur.com/YVRAlYP
This is a screenshot of the preview within emacs: http://imgur.com/S6BNm0K

So, is there a way to make `org-preview-latex-fragment` sensitive to
LaTeX class options?

Thanks,

--
Rob



reply via email to

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