From: Guillaume Dehaene <guillaume.dehaene-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: User story: typst multiline math in pandoc markdown and pandoc AST
Date: Sun, 22 Oct 2023 12:18:46 -0700 (PDT) [thread overview]
Message-ID: <9a81a7ad-5779-4166-805f-88c9400b8b96n@googlegroups.com> (raw)
In-Reply-To: <73813E01-A490-4C3E-8B23-8952A80487DD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2123 bytes --]
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 <guillaum...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 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.
[-- Attachment #1.2: Type: text/html, Size: 6788 bytes --]
next prev parent reply other threads:[~2023-10-22 19:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-19 13:47 Guillaume Dehaene
[not found] ` <672a5917-b04d-4eb9-966d-75b54df97837n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-10-19 16:11 ` John MacFarlane
[not found] ` <E89C2FED-79B7-4150-B015-D11C177D3F9B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-10-20 7:40 ` Guillaume Dehaene
[not found] ` <daaf510b-50a3-4f9d-b7d5-58609d3821c6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-10-20 17:26 ` John MacFarlane
[not found] ` <464EF7B5-5A64-495A-A195-CC62A3D2A637-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-10-20 19:25 ` Guillaume Dehaene
[not found] ` <e9222236-9514-4cdc-b986-ae8e7e198576n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-10-20 22:00 ` John MacFarlane
[not found] ` <73813E01-A490-4C3E-8B23-8952A80487DD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-10-22 19:18 ` Guillaume Dehaene [this message]
2023-10-20 19:08 ` Gwern Branwen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a81a7ad-5779-4166-805f-88c9400b8b96n@googlegroups.com \
--to=guillaume.dehaene-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).