emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-mode previews: equation numbers
@ 2014-09-29 22:23 Adam Sneller
  2014-10-02 15:44 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Sneller @ 2014-09-29 22:23 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

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

* Re: Org-mode previews: equation numbers
  2014-09-29 22:23 Org-mode previews: equation numbers Adam Sneller
@ 2014-10-02 15:44 ` Eric S Fraga
  0 siblings, 0 replies; 2+ messages in thread
From: Eric S Fraga @ 2014-10-02 15:44 UTC (permalink / raw)
  To: Adam Sneller; +Cc: emacs-orgmode

On Monday, 29 Sep 2014 at 15:23, Adam Sneller wrote:

[...]

> 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?

I would think that this would be difficult, i.e. not possible, to
achieve as each snippet is a separate LaTeX invocation.  My own view is
that numbers don't actually matter during writing as they are all
ephemeral.  It's in the final complete document that they matter.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf

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

end of thread, other threads:[~2014-10-02 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29 22:23 Org-mode previews: equation numbers Adam Sneller
2014-10-02 15:44 ` Eric S Fraga

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