Add requested macros and environments now that we can support them. #923
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
. TheTEXCLASS.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, andmath
anddisplaymath
. Since\begin{xyz}...\end{xyz}
are parsed as math-mode delimiters, and these default to display mode, themath
environment requires the ability to change the MathItem'sdisplay
property tofalse
for this environment. That required adding the active MathItem to the ParseOptions instance so that themath
environment could change it. In turn, that means the TeX input jax can't cache thedisplay
value, since it can change during the parsing process.Resolves:
Unknown environment 'darray'
MathJax#2878