ktraunmueller / Compositor

The WYSIWYG LaTeX app for Mac
https://compositorapp.com
81 stars 3 forks source link

Document source may get messed up when inserting a section after an equation #542

Closed ktraunmueller closed 3 years ago

ktraunmueller commented 3 years ago

Steps to reproduce

Euler's partial fraction expansion of the fabulous cotangent:

[ \pi \cot \pi x = \frac{1}{x} + \sum_{n = 1}^{ \infty } \left( \frac{1}{x + n} + \frac{1}{x - n} \right) ]

\end{document}

- Click the rightmost (closing) parenthesis
- Select Insert / Subsection

**Problem:** The subsection gets inserted within the display math environment:

\section{Trigonometry}

Euler's partial fraction expansion of the fabulous cotangent:

[ \pi \cot \pi x = \frac{1}{x} + \sum_{n = 1}^{ \infty } \left( \frac{1}{x + n} + \frac{1}{x - n}

\subsection{Subsection}

]

\end{document}



Clicking anywhere else in the formula doesn't seem to cause this problem, however.
ktraunmueller commented 3 years ago

Fixed in 1.17