Repository navigation
LaTeX reader: the operator names of amsmath (\lg, \liminf, \varinjlim, \operatorname*) - #27
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, \operatorname*) - \lg is a function name like \log - a name that UnicodeMath does not know, with the function apply sign and scripts but nothing to apply it to (argmax_𝑥, argmax┬𝑥), is the name with its scripts, not its letters; so is a lone lg or lim inf, as main reads NaN; the UnicodeMath writer writes the sign after such a name when nothing follows it, so that it reads back - \liminf, \limsup, \injlim, \projlim: one name with the thin space of TeX (lim inf), which UnicodeMath reads like lim and the LaTeX writer writes back as \liminf... - \varinjlim and \varprojlim: lim with an arrow under it, written back as such; \varliminf and \varlimsup: lim underlined and overlined - the limits of \operatorname*, \operatornamewithlimits, the names above and \lim go under them in a display equation, also with nothing after - seven latex2mathml snapshots corrected (tests/data/README.md), the ids out of NotReadYet, regression cases in ReadsOperatorNamesOfAmsmath; the ids b6eeafc reads out of the lists main kept them in Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
\lg and \liminf are known now: the tests of unknown control words use \tr and \Var instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Pre-release NuGet package of 8136a02. Updated on every push, deleted when this PR is closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Reads the last ids of
NotReadYetinLatex2MathMLCorpusTests(lg,liminf,limsup,injlim,projlim,varinjlim,operatornamewithlimits,operatorname-star).NotReadYetis now empty.Note: #22 covers the same ids with different choices (U+2006,
\varinjlimasinj lim, msub in display, no snapshot corrections). Only one of the two can land without conflicts.\lgis a function name like\log.argmax_𝑥,argmax┬𝑥), reads as the name with its scripts, not as its letters. This is two added alternatives inUnicodeMathGrammar.parlot.cs.lgorlim infreads as main readsNaN: one name, with the sign after it.lim,lim_(a→∞)) keep the reading of UnicodeMathML; the 738 examples still pass.\liminf,\limsup,\injlim,\projlimread as one name with the thin space of TeX (lim inf). UnicodeMath reads it likelim, and the LaTeX writer writes it back as\liminf…\varinjlimand\varprojlimare lim with an arrow under it, as amsmath draws them, and are written back as such.\varliminfand\varlimsupare lim underlined and overlined.\operatorname*,\operatornamewithlimits, the names above and\lim, also with nothing after it.\lim^2_x fputs the 2 over lim and the x under it, as TeX does. The MathML then has nobeforef; it still reads back the same.tests/data/README.md:liminf,limsup,injlim,projlim,varinjlim,operatorname-star,operatornamewithlimits.\trand\Varinstead of\lgand\liminf.Tests: new
ReadsOperatorNamesOfAmsmath(17 cases, inline and display). It checks the MathML and that the LaTeX and the UnicodeMath written for each case read back to the same equation. Full suite: 6792/6792 on net10.0 and net481.VersionPrefixis unchanged.Not covered:
\varinjlim_{i} A_ireads correctly, but the UnicodeMath writer still cannot write that nested munder, as before this change.🤖 Generated with Claude Code