emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Sneller <adam@earth2adam.com>
To: emacs-orgmode@gnu.org
Subject: Org-mode previews: equation numbers
Date: Mon, 29 Sep 2014 15:23:29 -0700	[thread overview]
Message-ID: <DEC1DD00-32A1-40CB-AEB9-8D62F971AE00@earth2adam.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

I have noticed that the org-preview-latex-fragment command left-aligns previews for display equations. But it looks like margins are calulated so that equation numbers line up when display equations are centered (the way they are in AUCTeX).

Is it possible to re-align these previews?

Here is some sample code:

   A numbered display equation:
    
   \begin{equation}
   \frac{\partial u}{\partial t}-\alpha\nabla^2u=0\label{eq:1}\tag{1}
   \end{equation}
    
   A second numbered equation:

   \begin{equation}
   E=MC^2\label{eq:2}\tag{2}
   \end{equation}

And here is the screenshot of the buffer after running C-c C-x C-l




By-the-way, the only way I could get the equation numbers to increment upward was to manually include these with \tag{1} and \tag{2}. Otherwise, org-mode numbers each equation as a (1). Is there some setting that will enable autonumbering?

Thanks!
-Adam


Adam Sneller
adam@earth2adam.com
(310) 463-0287


[-- Attachment #2.1: Type: text/html, Size: 6770 bytes --]

[-- Attachment #2.2: org-latex-preview-screenshot.png --]
[-- Type: image/png, Size: 40079 bytes --]

             reply	other threads:[~2014-09-29 22:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 22:23 Adam Sneller [this message]
2014-10-02 15:44 ` Org-mode previews: equation numbers Eric S Fraga

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=DEC1DD00-32A1-40CB-AEB9-8D62F971AE00@earth2adam.com \
    --to=adam@earth2adam.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).