mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
feat: \nonumber/\notag support, \tag per row of {align} (#2952)
* feat: \nonumber and \notag support Support `\nonumber` (and equivalent `\notag`) using a global macro `\@eqnsw` to track whether one occurs in each row, similar to how amsmath uses global `\@eqnswtrue`/`\@eqnswfalse`. Fix #2950 * Remove duplicate mention of align* * Working version of \tag within {align} * Simpler subparse mechanism * Fix flow errors, clarifying set-to-undefined * Document that \tag works in rows * Add screenshot tests * Add Jest tests * Add Safari screenshot * Commit message about fixing \tag Fixes #2379 * Apply suggestions from code review Co-authored-by: ylemkimon <y@ylem.kim> * Revise and move getAutoTag * Fix handling of split * Remove unnecessary feedTokens Co-authored-by: ylemkimon <y@ylem.kim> Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
@@ -748,10 +748,11 @@ use `\ce` instead|
|
||||
|\nobreakspace|$a\nobreakspace b$|`a\nobreakspace b`|
|
||||
|\noexpand|||
|
||||
|\nolimits|$\lim\nolimits_x$|`\lim\nolimits_x`|
|
||||
|\nonumber|$$\begin{align}a&=b+c\nonumber\\d+e&=f\end{align}$$|`\begin{align}`<br> `a&=b+c \nonumber\\`<br> `d+e&=f`<br>`\end{align}`|
|
||||
|\normalfont|<span style="color:firebrick;">Not supported</span>||
|
||||
|\normalsize|$\normalsize normalsize$|`\normalsize normalsize`|
|
||||
|\not|$\not =$|`\not =`|
|
||||
|\notag|<span style="color:firebrick;">Not supported</span>||
|
||||
|\notag|$$\begin{align}a&=b+c\notag\\d+e&=f\end{align}$$|`\begin{align}`<br> `a&=b+c \notag\\`<br> `d+e&=f`<br>`\end{align}`|
|
||||
|\notin|$\notin$||
|
||||
|\notni|$\notni$||
|
||||
|\nparallel|$\nparallel$||
|
||||
|
Reference in New Issue
Block a user