emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rob Stewart <robstewart57@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Fwd: Is `org-preview-latex-fragment` sensitive to alignment specified by document class options?
Date: Wed, 9 Apr 2014 16:56:50 +0100	[thread overview]
Message-ID: <CA+ZOasLcbjG6_5X7Vv1xTsztSbyk9ne1iS9Uf1auv5PZtvknRA@mail.gmail.com> (raw)
In-Reply-To: <CA+ZOasKSVqDieaSSVfkExPTbeYnxPdCANMgLNnix6sOgAs-Vzw@mail.gmail.com>


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



---------- Forwarded message ----------
From: Rob Stewart <robstewart57@gmail.com>
Date: 6 April 2014 21:54
Subject: Is `org-preview-latex-fragment` sensitive to alignment
specified by document class options?
To: emacs-orgmode@gnu.org


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

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

b := (a \oplus s_1) \oplus s_2 \\
e := 0 \\

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?



  reply	other threads:[~2014-04-09 15:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Rob Stewart [this message]
2014-04-09 17:22   ` Fwd: " 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

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:

  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=CA+ZOasLcbjG6_5X7Vv1xTsztSbyk9ne1iS9Uf1auv5PZtvknRA@mail.gmail.com \
    --to=robstewart57@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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