snacks.nvim/tests/image/test.aux
Daniel Wennberg 66e3dc4619
fix(image): avoid nested math environments (#2345)
## Description

Inline LaTeX equation preview renders equations twice, partly on top of
each other, if you use nested math environments. Minimal reproducer:

```latex
\documentclass{article}
\begin{document}
\begin{equation}
  \begin{aligned}
    x_+ &= \frac{-b + \sqrt{b^2 - 4ac}}{2a} \, , \\
    x_- &= \frac{-b - \sqrt{b^2 - 4ac}}{2a} \, .
  \end{aligned}
\end{equation}
\end{document}
```

While, adding a test case for this to `test.tex` I also corrected a
package name such that it compiles without error.

## Screenshots

**Before**
<img width="248" height="203" alt="Screenshot 2025-10-24 at 16 22 05"
src="https://github.com/user-attachments/assets/ab55ef8c-1f04-49e5-b731-95b638ac9db7"
/>

**After**
<img width="248" height="203" alt="Screenshot 2025-10-24 at 16 23 33"
src="https://github.com/user-attachments/assets/4d3d53f6-7122-452f-b891-5a712f79fe40"
/>
2025-10-29 14:47:52 +01:00

6 lines
451 B
TeX

\relax
\@writefile{toc}{\contentsline {section}{\numberline {1}Image Tests}{1}{}\protected@file@percent }
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Test image centered in a figure environment.}}{1}{}\protected@file@percent }
\newlabel{fig:test_image}{{1}{1}{}{figure.1}{}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Some beautiful mathematical equations}{2}{}\protected@file@percent }
\gdef \@abspage@last{4}