oh I'm not sure there is an alternative. I'm just curious whether the situation is: "we're using aligned to represent multiline-math always" or "we're using aligned to represent typst multilines". I've almost finished my extension: it works perfectly. I still need to finish the readme and stuff like that before I publish. I'll update here once it's done: I'm sure I've missed some low hanging fruit to make it better. Best regards, Guillaume On Saturday, October 21, 2023 at 12:00:58 AM UTC+2 John MacFarlane wrote: > > On Oct 20, 2023, at 12:25 PM, Guillaume Dehaene > wrote: > > Sorry for my lack of clarity. I'm asking too many questions at the same > time and it must be hard to follow. I should have rewritten that last email > before sending it. > > 1. My question about aligned. > I see in the code that the typst reader parses typst multilines into this > DisplayMath begin{aligned} structure. > Is that how you / the pandoc team has decided to handle multiline math in > the future? > > > What would be the alternative? (Short of changing the AST, which is > probably out of the question.) > > 2. You propose to wrap align. > This is not working on my side, but I might be doing something wrong? > Here are some minimal examples: > ``` > $$ > \begin{align} > x & = 5\\ > y &= 3 > \end{align} > $$ > ``` > parses into latex as (with pandoc test.md --to latex; on pandoc 3.1.8) > ``` > \[ > \begin{align} > x & = 5\\ > y &= 3 > \end{align} > \] > ``` > which fails to compile to pdf (with pandoc test.md --to pdf -o test.pdf > > > You're right. My mistake on this. > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9a81a7ad-5779-4166-805f-88c9400b8b96n%40googlegroups.com.