#+TITLE: [BUG] LaTeX aligned equations do not have right spacing #+AUTHOR: L. Butler #+OPTIONS: toc:nil num:nil * Report #+begin_example From: Rick Hu 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" 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.