Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with empheq in in latex (using latex-workshop extension) #393

Open
jonas-frey opened this issue Dec 25, 2023 · 0 comments
Open

Problem with empheq in in latex (using latex-workshop extension) #393

jonas-frey opened this issue Dec 25, 2023 · 0 comments

Comments

@jonas-frey
Copy link

I'm using rewrap in combination with the latex-workshop extension when writing latex, with rewrap configured to auto-wrap after 80 columns.

In the MWE

\documentclass{article}
\usepackage{empheq}

\begin{document}
Linear algebra serves as a foundational branch of mathematics that investigates
vector spaces and linear mappings between them. A vector space is a mathematical
more structure comprising vectors, which are elements that can be added together
and multiplied by scalars. These operations must satisfy specific properties
such as closure under addition and scalar multiplication, associativity, and the
existence of additive and multiplicative identity elements.
\begin{empheq}{equation}
a+a\;=\; b
\end{empheq}
One key concept in linear algebra is the notion of a matrix, a rectangular array of numbers. Matrices play a crucial role in representing linear transformations and solving systems of linear equations. The fundamental operations involving matrices include addition, scalar multiplication, and matrix multiplication. The latter operation is particularly significant, showcasing non-commutativity in most cases.
\end{document}

rewrap works before the empheq block , but not after it. In longer documents, it seems like rewrap continues not to work throughout as soon as there's an empheq environment. It works when empheq is replaced by an equation environment. (empheq is a wrapper for equation-like environment that helps eg when theorem end marks are not set properly when a proof ends in an equation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant