emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is `org-preview-latex-fragment` sensitive to alignment specified by document class options?
@ 2014-04-06 20:54 Rob Stewart
  2014-04-09 15:56 ` Fwd: " Rob Stewart
  2014-04-17 19:07 ` Bastien
  0 siblings, 2 replies; 8+ messages in thread
From: Rob Stewart @ 2014-04-06 20:54 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-04-19 14:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-06 20:54 Is `org-preview-latex-fragment` sensitive to alignment specified by document class options? Rob Stewart
2014-04-09 15:56 ` Fwd: " Rob Stewart
2014-04-09 17:22   ` Nick Dokos
2014-04-10  8:23     ` Eric S Fraga
2014-04-19 13:02     ` Rob Stewart
2014-04-19 14:05       ` Fwd: " Rob Stewart
2014-04-17 15:29   ` Bastien
2014-04-17 19:07 ` Bastien

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).