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

Add support for \intertext from amsmath and \shortintertext from mathtools #202

Open
torik42 opened this issue Mar 16, 2021 · 0 comments
Open
Labels
enhancement New feature or request type: LaTeX Issues concerning supported or new LaTeX command or packages

Comments

@torik42
Copy link
Owner

torik42 commented Mar 16, 2021

It would be nice to have support for \intertext from amsmath and \shortintertext from mathtools. They are used in align environment for text between two equations, e.g.

We have
\begin{align}
    a &= b \\
    \intertext{and}
    b &= c.
\end{align}

One is also allowed to skip the line break \\.

My current solution is to add

Macro(parms, '\\intertext', args='A', repl='\\text{ #1 }')

to amsmath. Only adding parms.math_text_macros.append('\\intertext') does not work because of the spacing.

I could add some tests and open a PR. Where should the tests go test_equation.py and test_display.py, or test_amsmath.py and test_mathtools.py?

@torik42 torik42 added enhancement New feature or request type: LaTeX Issues concerning supported or new LaTeX command or packages labels Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request type: LaTeX Issues concerning supported or new LaTeX command or packages
Projects
None yet
Development

No branches or pull requests

1 participant