Typst writer: map \cap from deprecated sect to inter#11592
Closed
SathyaTadinada wants to merge 3 commits intojgm:mainfrom
Closed
Typst writer: map \cap from deprecated sect to inter#11592SathyaTadinada wants to merge 3 commits intojgm:mainfrom
SathyaTadinada wants to merge 3 commits intojgm:mainfrom
Conversation
This was referenced Apr 19, 2026
Owner
|
I'd consider an upstream change but not this kind of local patching. |
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.
Summary
Fix LaTeX -> Typst math output for intersection symbols:
\capnow emitsinter(instead of deprecatedsect)\bigcapnow emitsinter.big(instead of deprecatedsect.big)What changed
Files
src/Text/Pandoc/Writers/Typst.hstest/command/typst-math-intersection.mdRepro
Input
Expected Output
Testing
Ran:
Result: Both test cases passed.
Closes #11591.
Upstream context
Pandoc currently gets Typst math symbol names from
texmath.Related upstream tracking: jgm/texmath#287
Upstream fix PR: jgm/texmath#288
This Pandoc change is a compatibility normalization until upstream mapping is fixed/released.