emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo Butler <Leo.Butler@umanitoba.ca>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Rick Hu <yhu@virtu.com>, "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] LaTeX aligned equations do not have right spacing [9.6.1 (release_9.6.1 @ /home/yhu/dev/prefix/org-mode/emacs/site-lisp/org/)]
Date: Wed, 1 Feb 2023 21:04:02 +0000	[thread overview]
Message-ID: <875yclf67y.fsf@t14.reltub.ca> (raw)
In-Reply-To: <878rhhjuk0.fsf@localhost> (Ihor Radchenko's message of "Wed, 01 Feb 2023 15:04:47 +0000")

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

On Wed, Feb 01 2023, Ihor Radchenko <yantar92@posteo.net> wrote:

> Rick Hu <yhu@virtu.com> writes:
>
>> Example text in org mode:
>> \begin{align}
>> H_1(x) = & 3 x^2 - 2 x^3 \\
>> S_1(x) = &  -2 x^2 + x^3 \\
>> \end{align}
>>
>> When I export this to html and display on a browser, the spacing
>> between the equal sign and the terms behind is very small.
>> This is not the right amount around an equal sign.
>
> Could you please elaborate? Maybe attach a screenshot?


Not a bug. See the attached.

Leo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: hu.org --]
[-- Type: text/x-org; name="hu.org", Size: 1519 bytes --]

#+TITLE: [BUG] LaTeX aligned equations do not have right spacing
#+AUTHOR: L. Butler
#+OPTIONS: toc:nil num:nil

* Report
#+begin_example
From: Rick Hu <yhu@virtu.com>
Subject: [BUG] LaTeX aligned equations do not have right spacing [9.6.1
 (release_9.6.1 @ /home/yhu/dev/prefix/org-mode/emacs/site-lisp/org/)]
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Date: Mon, 30 Jan 2023 20:38:43 +0000 (2 days, 15 minutes, 16 seconds ago)

Example text in org mode:
\begin{align}
H_1(x) = & 3 x^2 - 2 x^3 \\
S_1(x) = &  -2 x^2 + x^3 \\
\end{align}

When I export this to html and display on a browser, the spacing
between the equal sign and the terms behind is very small.
This is not the right amount around an equal sign.

Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu)
of 2022-09-21
Package: Org mode version 9.6.1 (release_9.6.1 @ /home/yhu/dev/prefix/org-mode/emacs/site-lisp/org/)
#+end_example

* Analysis
Let's typeset the \LaTeX{} code above:

\begin{align}
H_1(x) = & 3 x^2 - 2 x^3 \\
S_1(x) = &  -2 x^2 + x^3 \\
\end{align}

There are a few errors, I think, with the \LaTeX{} not Org. Here is the correction:

\begin{align}
H_1(x) & = 3 x^2 - 2 x^3 \\
S_1(x) & = -2 x^2 + x^3
\end{align}

Note that the spacing around the ~=~ sign is correct and there is no spurious third equation label.

** Corrected source

#+begin_example
\begin{align}
H_1(x) & = 3 x^2 - 2 x^3 \\
S_1(x) & = -2 x^2 + x^3
\end{align}
#+end_example

* Conclusion

Not a bug.

[-- Attachment #3: hu.pdf --]
[-- Type: application/pdf, Size: 92713 bytes --]

  reply	other threads:[~2023-02-01 21:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 20:38 [BUG] LaTeX aligned equations do not have right spacing [9.6.1 (release_9.6.1 @ /home/yhu/dev/prefix/org-mode/emacs/site-lisp/org/)] Rick Hu
2023-02-01 15:04 ` Ihor Radchenko
2023-02-01 21:04   ` Leo Butler [this message]
2023-02-02  8:28     ` Ihor Radchenko
2023-02-02  8:29 ` Ihor Radchenko

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=875yclf67y.fsf@t14.reltub.ca \
    --to=leo.butler@umanitoba.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    --cc=yhu@virtu.com \
    /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).