Zulip Chat Archive

Stream: general

Topic: LaTeX hackery


Kevin Buzzard (Feb 01 2021 at 13:52):

Is it possible to set up some global LaTeX macros for Zulip? I'm sick of typing \mathbb{N} and \mathbb{Z} (the latter comes up a lot in the condensed stuff) and \mathbb{R} (also Q and C) here, when in my LaTeX documents they are just \N, \Z etc.

Eric Wieser (Feb 01 2021 at 13:52):

This is in the context of doc-gen, right?

Kevin Buzzard (Feb 01 2021 at 13:52):

This is in the context of writing Z\mathbb{Z} in messages

Kevin Buzzard (Feb 01 2021 at 13:53):

where I want to write Z\Z.

Kevin Buzzard (Feb 01 2021 at 13:53):

WTF??

Kevin Buzzard (Feb 01 2021 at 13:53):

lol

Kevin Buzzard (Feb 01 2021 at 13:53):

erm...thanks.

Kevin Buzzard (Feb 01 2021 at 13:53):

$$\N \Z \Q \R \C$$

Kevin Buzzard (Feb 01 2021 at 13:54):

that didn't go well

Kevin Buzzard (Feb 01 2021 at 13:54):

N\N

Kevin Buzzard (Feb 01 2021 at 13:54):

Z\Z

Kevin Buzzard (Feb 01 2021 at 13:54):

$$\Q$$

Kevin Buzzard (Feb 01 2021 at 13:54):

R\R

Kevin Buzzard (Feb 01 2021 at 13:54):

$$\C$$

Patrick Massot (Feb 01 2021 at 13:54):

Who knows what else you don't know yet that you want and was already done by the Zulip people?

Kevin Buzzard (Feb 01 2021 at 13:54):

:D

Eric Wieser (Feb 01 2021 at 13:57):

https://github.com/KaTeX/KaTeX/blob/master/src/macros.js#L945-L947

Eric Wieser (Feb 01 2021 at 13:57):

Don't give Zulip too much credit, this one's on KaTeX


Last updated: Dec 20 2023 at 11:08 UTC