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 requested macros and environments now that we can support them. #923

Merged
merged 3 commits into from
Mar 11, 2023

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Mar 7, 2023

This PR adds a number of macros and environments that have been requested in the past, now that we have fonts that contain the needed characters. These include \AA, \iddots, \oiint and \oiiint, plus I added \dddot and \ddddot accents, and the missing \ointop. The TEXCLASS.OP has been removed from the big operators, since those will be inherited from the operator dictionary, so no need to waste the space on redundant values. The unicode value for \backslash has been changed to just \.

The new environments are darray for an array in display mode, and math and displaymath. Since \begin{xyz}...\end{xyz} are parsed as math-mode delimiters, and these default to display mode, the math environment requires the ability to change the MathItem's display property to false for this environment. That required adding the active MathItem to the ParseOptions instance so that the math environment could change it. In turn, that means the TeX input jax can't cache the display value, since it can change during the parsing process.

Resolves:

@dpvc dpvc requested a review from zorkow March 7, 2023 22:11
@dpvc dpvc added this to the v4.0 milestone Mar 7, 2023
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor things.

ts/input/tex/base/BaseMethods.ts Outdated Show resolved Hide resolved
ts/input/tex/base/BaseMethods.ts Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

2 participants