Repository navigation
LaTeX writer: menclose notations, letterlike symbols and MTEF angle brackets - #28
Open
simonebortolin wants to merge 1 commit into
Open
simonebortolin wants to merge 1 commit into
simonebortolin wants to merge 1 commit into
Conversation
…rackets
- menclose in standard LaTeX: horizontalstrike as \sout (ulem, KaTeX), radical as \sqrt,
the notations without a command (longdiv, roundedbox, circle, actuarial, left, right,
verticalstrike, madruwb, combinations) as \enclose of MathJax instead of \boxed;
no notation and the four sides stay \boxed. Word's LaTeX keeps TeX.js's mapping.
- The reader reads \sout, \hcancel and \enclose{notation}[attributes]{body} back.
- Letterlike symbols with a command win over the math alphanumerics: ℑ \Im, ℜ \Re;
the reader reads \Re and \Im as ℜ and ℑ, and the function names Re and Im are
written as \operatorname{Re} and \operatorname{Im}.
- 〈 〉 (U+2329/U+232A, as MTEF writes them) and U+3008/U+3009 grow with \left and \right
around tall content, as ⟨ ⟩ do.
- mtef2mml.xsl: MTEF ℓ (0x2113) is ℓ, not a script l, and a duplicate template no longer
turns ℘ (0x2118) into 𝒫.
- Tests from MathML, LaTeX and the MathType objects of NPOI's equations-ole-all.doc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Pre-release NuGet package of 727a2ad. Updated on every push, deleted when this PR is closed. |
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.
Fixes the standard LaTeX written for equations that come from MathType (MTEF) objects, found through NPOI's
equations-ole-all.doc.Old → new (standard LaTeX)
menclose notation="horizontalstrike"\boxed{a}\sout{a}(ulem, KaTeX)longdiv\boxed{a}\enclose{longdiv}{a}(MathJax)radical\boxed{x}\sqrt{x}circle,roundedbox,actuarial,left,right,verticalstrike,madruwb, combinations\boxed{…}\enclose{<notations, comma-separated>}{…}box, no notation, the four sides\boxed\mathcal{l}\ell\mathcal{P}\wp\mathfrak{I}/\mathfrak{R}\Im/\Re\Re/\Im\operatorname{Re}/\operatorname{Im}\langle\frac{a}{b}\rangle\left\langle\frac{a}{b}\right\rangleNotes
\sout,\hcanceland\enclose{notation}[attributes]{body}back, and\Re/\Imas the symbols ℜ/ℑ (their LaTeX meaning) instead of function names.mtef2mml.xsl: 0x2113 was mapped to a scriptl, and a duplicate 0x2118 template produced 𝒫.TeX.js(its corpus expects\boxedfor these notations).equations-ole-all.docintests/data/mtef/npoi/(provenance intests/data/README.md).\langlearound\left|…\right|) does not read back; its test checks only the output.VersionPrefix1.0.6, the same as Bump version prefix to 1.0.6 #26.All 6848 tests pass (net10.0 and net481), also on a trial merge with the current
main.🤖 Generated with Claude Code