Repository navigation
LaTeX reader: operator names alone and the amsmath names of two words - #22
Open
simonebortolin wants to merge 2 commits into
Open
simonebortolin wants to merge 2 commits into
simonebortolin wants to merge 2 commits into
Conversation
…wo words
\lg is a function name, as for Word; \liminf, \limsup, \injlim, \projlim (and their
\var forms) are one name whose words a six-per-em space parts, as MathJax and
latex2mathml write them, read through UnicodeMath as a name marked as a function
(lim inf) and written back as their commands; a name marked as a function with
scripts and nothing after it (argmax_x alone, \operatorname*{argmax}_x) is the name
with its scripts, and the UnicodeMath writer marks such a name; \operatorname{lim}
is \lim. The latex2mathml cases that were not read yet now are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyVio98rJkziNnwWW9T1Mn
|
Pre-release NuGet package of 081e4ed. Updated on every push, deleted when this PR is closed. |
Removed tests for unknown control words '\erfc' and '\cosec' from the LaTeXReaderTests.
This branch has not been deployed
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.
First of a stack: main ← this ← macros (
NotExpanded) ← write-back (NotWrittenBack).Reads the last cases of
NotReadYetinLatex2MathMLCorpusTests, which is gone:\lgis a function name for the whole pipeline (the grammar already had it,UnicodeMathText.FunctionNamesdid not).\liminf,\limsup,\injlim,\projlimread as one name,lim infwith a six-per-em space (U+2006) between the words, as MathJax and latex2mathml write them; the grammar takes U+2006 inside a function name,EulerFunctionshas their limits under the name in display, and the writer writes them back as\liminf… in standard and Word LaTeX.\varinjlim,\varprojlim,\varliminf,\varlimsupread as the plain names, as latex2mathml reads them (amsmath draws an arrow or bar under/over them: the drawn form does not read back cleanly).\operatorname*{argmax}_x) reads asmsub(argmax, x)rather than as letters;\operatorname{lim}and\operatornamewithlimits{lim}read as\lim; the UnicodeMath writer writesargmax_𝑥so that it reads back.Rune.IsLetterin the netstandard2.0 polyfill.Tests: new
ReadsOperatorNames(15 cases, inline and display, written as standard LaTeX and UnicodeMath and read back from standard LaTeX, Word LaTeX and UnicodeMath); the unknown-command tests use\erfcand\cosecinstead of\lgand\liminf. 6788/6788 on net10.0 and net8.0.Generated by Claude Code