Skip to content

Support display mode and commutative diagrams#128

Merged
ScriptRaccoon merged 4 commits intomainfrom
displaymode-and-diagrams
Apr 23, 2026
Merged

Support display mode and commutative diagrams#128
ScriptRaccoon merged 4 commits intomainfrom
displaymode-and-diagrams

Conversation

@ScriptRaccoon
Copy link
Copy Markdown
Owner

@ScriptRaccoon ScriptRaccoon commented Apr 23, 2026

With this PR we can render formulas in display mode by using the delimiters $$ ... $$. The katex documentation explains what display mode means.

In display mode we can also typeset commutative diagrams via the amscd package.

For example, this commutative diagram

Bildschirmfoto 2026-04-23 um 21 58 16

can be typeset via:

$$\begin{CD} X @>{\mathrm{id}}>> X \\ @V{\mathrm{id}}VV @VV{f}V \\ X @>>{f}> Y \end{CD}$$

Diagrams

This PR has replaced all "manual" array diagrams with amscd diagrams. They look much better now.

proof that Delta is cosifted

Align environments

The align environment is also possible in display mode.

isomorphism chain in display mode

Display mode

This PR also uses display mode in several existing formulas (probably not all) where it was intended anyway.

typical proof with displaymode formula

@varkor
Copy link
Copy Markdown
Contributor

varkor commented Apr 23, 2026

(If you wanted to render more sophisticated diagrams, you could make use of quiver. I'd be happy to make some changes to make it more convenient to make use of in CatDat.)

@ScriptRaccoon ScriptRaccoon force-pushed the displaymode-and-diagrams branch from 7812f4f to fe62a01 Compare April 23, 2026 20:40
@ScriptRaccoon
Copy link
Copy Markdown
Owner Author

(If you wanted to render more sophisticated diagrams, you could make use of quiver. I'd be happy to make some changes to make it more convenient to make use of in CatDat.)

Thanks! I will come back to this as soon as more complicated diagrams pop up. For now, they are quite simple, and amscd is sufficient. That might change in the future.

@ScriptRaccoon ScriptRaccoon force-pushed the displaymode-and-diagrams branch from fe62a01 to 15889ca Compare April 23, 2026 20:58
@ScriptRaccoon ScriptRaccoon force-pushed the displaymode-and-diagrams branch from 15889ca to dd835a1 Compare April 23, 2026 21:08
@ScriptRaccoon ScriptRaccoon merged commit b4c3b2a into main Apr 23, 2026
1 check passed
@ScriptRaccoon ScriptRaccoon deleted the displaymode-and-diagrams branch April 23, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants