## pigeon.digital

25 Members
www.pigeon.digital15 Servers

Timestamp Message
5 May 2020
10:04:07aristaeusBut there's a bug with align/multiline stuff. Specifically, if I try and write a matrix:
10:04:23aristaeus X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}
10:05:28aristaeus The &'s show up as amp; and the backslashes disappear completely - I'm guessing it's because it turns into HTML before getting to KaTeX?
12:01:56Timdoes katex support the pmatrix environment?
12:02:46aristaeusyep, see under environments: https://katex.org/docs/supported.html
12:03:09Timhuh interesting, i don’t remember finding a problem with this...
12:03:25Tim does it work if you escape the & and \ with an extra \
12:04:12aristaeusThe \ does, but not &
12:04:37aristaeusAnd it would be kind of annoying having to write twice as many backslashes
12:05:35aristaeus(it would also be nice to have \ket, but that's KaTeX's problem)
12:15:39Timhmm...
12:16:01Timhonestly i have no memory of what the code is doing, but i’ll have a look and see if i can figure it out
12:16:37aristaeusIt's probably got something to do with the composer, so it might be worth waiting until you (or someone else) ports it to the new one
6 May 2020
23:40:55Timyeah i think this is it: it's from the parsing by the composer
23:44:38Timi don't think i'll be making any real edits to pigeon.digital i'm afraid, given how it will (hopefully) become redundant in the not-too-distant future
7 May 2020
00:19:13aristaeusNo worries, I'm keen for real support too!
00:19:25aristaeusIs this the right room to talk about the spec?
00:26:30Timprobably the best place, yes :)
00:38:05aristaeus hmmm, looks like recent KaTeX does support \ket, so that particular complaint is moot
00:38:31aristaeusBut I was going to say that it would be nice to support custom KaTeXs, in case there's a particular macro you really really need that isn't in standard KaTeX
00:39:17aristaeusI think that's an argument for serverside rendering, since you can't know whether a particular client will support the macros you're using (even if it supports maths rendering)
02:05:28uhoregserver-side rendering doesn't really help with that situation. If we're on different servers, my server may support different macros from your server. The only way to ensure that the receiving client sees the exact math that the sender wants is for the sender to render.
02:07:37aristaeusI was thinking render at my homeserver, and then send the result to other homeservers
02:08:24aristaeusThat way if you put the whole lab on the same homeserver they can happily use the extra macros they need without needing to mess around with getting everyone to use a custom client
02:22:38uhoregserver-side rendering also doesn't work for encrypted rooms
02:23:02aristaeusheh, I didn't think of that
11 May 2020