From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33210 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: User story: typst multiline math in pandoc markdown and pandoc AST Date: Fri, 20 Oct 2023 15:00:42 -0700 Message-ID: <73813E01-A490-4C3E-8B23-8952A80487DD@gmail.com> References: <672a5917-b04d-4eb9-966d-75b54df97837n@googlegroups.com> <464EF7B5-5A64-495A-A195-CC62A3D2A637@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_484A84E3-AFFD-40E5-AE1A-9B9B5295FF8F" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24191"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBGHRZOUQMGQE4AFUD3A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Oct 21 00:01:00 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f188.google.com ([209.85.160.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qtxYB-000650-QS for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 21 Oct 2023 00:00:59 +0200 Original-Received: by mail-qt1-f188.google.com with SMTP id d75a77b69052e-41cbc7d2e58sf13010941cf.0 for ; Fri, 20 Oct 2023 15:00:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697839258; cv=pass; d=google.com; s=arc-20160816; b=sOayksKNPDYw6i/zGfD2bkOfmSj/3MIMY4po/FBAfiuR9oQRCLYMBJ4Pah+7XYLwba mFjf3HmkVwPES6PCuI/NbhESxBT4psA7Wm67yCr43w3hW79gQPlZdfTIyB2V39VwoRcd Wq7R69YeotW67Dwki8YMHDE7SmTyhvGspro5+wxN4/+U0ZfEz58KOwg13tRedFMh+O1i 5MLew3A0yz2Iypt+MDT7Sd6jZ3SCEto0cU0LAwMhjIEsHZmV1KyXzHuZC1ReQxAvip/2 PuNOMUZVLqJjKeku7RJ9VT4jqMUcLCBEDxz8CLBLxoGH+tW59PeVS7p5rlcxxCLefwnp O5rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=zApAAZw1ub3SQew+7jQcty5gYIWGsxndPQjLqahhzhs=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=pLva9CUTCIHFtrVbBMaKcqbEMqcvItFbxFdsiAo4fX5NbPZV/siLrIIhxZj9t2Hiq4 ZAkqtfDaTNkibWvpc3PztVU3Sp7oIgTK0EdSHsDVgJgXABdn0wbdGa1gxlHEAE5Eevi3 i0w8WviL1Wun/C2ycYe5y/F1h2ixbJH9O6BEcVNBr/T4fYTUjGj0gbeSH/vjBxAKyLm4 8u12I8SyurA6NWEoxtt5HC5Qsh6AIg0CrwCSaZdRWiYUsq38yk56wKBZizm4Zv8jhzG4 FwgsYbIuwrAr8YWiv6xr3gAEp4lMIv9x8CBkYCHmAL1GGPUv0VuU2z445O0y/Go0VV2d J31Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hSqyV9T+; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1697839258; x=1698444058; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=zApAAZw1ub3SQew+7jQcty5gYIWGsxndPQjLqahhzhs=; b=dceXbKMR84lvwgi6S1PF4wKUcESmoOANMZZd66GKTgvo7Qz6V2IgVaVbQTKmuCOeho lJjKzyZUi8/Upkpk9vag4c2vFj8ByErm03cZnVy3xIKl4XbGhvqUieemdwWAcxTZFwcY BtzROFr8XMHuuFyAWRAD/ThZ+NQTqpnmlDIY4QnIfphQCV0iyunUS+BOrLCdlWaPttQl TrrRZ8dPLdEWP1nfe0Od3L38Vw2l10jwJQZmScUkvP8jkMGxfIfcLjMm0M8sTS1KcN1z uuU2yeidWfKp3o8FWmiS0SdStCQ856KDqQ3ihAzCVZe5PH6zwL0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697839258; x=1698444058; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=zApAAZw1ub3SQew+7jQcty5gYIWGsxndPQjLqahhzhs=; b=BYLyfbrbH4+tzjuE+xSgEU+zp0Oi8CxllE7KgPaECQ4jUiGNbW36d/EZB3JTeisgKD mT0HFPNxJDdnNN/5oRVKbvbQ9MNq8dk124MUb1X47ZYPGP7gv1TYzdeGQN5JLyCmsWX4 Pji5aiQ1YiS/4cRaKXeNSGdRF5leF/rJO7RhckD0DNhE0S6XiuH+0AmltJJsery8SeSX IAzZu5TK6S+K2sMwcPFS9X5DkWKXETol/IICbI3nxxwoaqvf8VW47UNMkNzvTOp+sQ3H VY4N3j+/6ePVF7kBid4DlcL8zG4Z8TQYUp1nLqfRpLUq4su3WtBZPmsGZd7QgUrGSP X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697839258; x=1698444058; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=zApAAZw1ub3SQew+7jQcty5gYIWGsxndPQjLqahhzhs=; b=Bgj2sO8wZt1rWmDUg+Y9Jhq9xjY015tlFT7bu3S3vnge7RXf+JWpcC37OKj1SAdbjQ q3FTyFqGj0CR9d51BfUwgmMY7u8aECxb/OLhh52jZ7Fwv/NxZ2zzh3aS16N3oqcwPIW6 5Kf7Fi08KNWGZEC6rxGllXRSluVUhvScLzF9yhT6/6NqQYAMB0VkUS9A73od7EftV4Bn jVOhI+DjnLYVMGaQ+5ly6DIjaezfZ/VlO6AsaCWr2+4n6e716Y9sEd2uDlhrS9UGTCLR 1Cq1+Z Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yzr+SSLxxbF0NNuuNVfjSZ5IF/EqE/tmAJ7/vND/b4ae2kgLmM5 jA1WuhCYoWXEfKM8Fju8Rj0= X-Google-Smtp-Source: AGHT+IELr0RE+20b8nWmeTIpMDRqlPOogRAS/g/aePBfRHdQ7l+hyoHp5zFaALknibMdiluvagjNWg== X-Received: by 2002:a05:622a:134c:b0:41c:c5bd:724 with SMTP id w12-20020a05622a134c00b0041cc5bd0724mr3102511qtk.13.1697839258773; Fri, 20 Oct 2023 15:00:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:4d10:0:b0:41c:ca7a:2556 with SMTP id w16-20020ac84d10000000b0041cca7a2556ls1423082qtv.2.-pod-prod-04-us; Fri, 20 Oct 2023 15:00:55 -0700 (PDT) X-Received: by 2002:a1f:26d8:0:b0:49d:c216:873d with SMTP id m207-20020a1f26d8000000b0049dc216873dmr3108575vkm.8.1697839255738; Fri, 20 Oct 2023 15:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697839255; cv=none; d=google.com; s=arc-20160816; b=rk3nSig++l79ebb3Bfr5+WMvJ+cQiiFbGoxDt38oCPBLX44KpMgbHudjZm72Fre81j Dd9hvdIl9kKmd+119Af/BipXtAMzzuL1xW0GxTfFvrc7fGgf9ptIOJnX1KMQvwT9EdlC IunU8g9BIsC3XXc54Xn40lAi9MHdTbvPzdnpJ1WavuLHrGA/vdDv7flYIoS+eENQwfzk BAOXxf6lB1fQGPmuXN1FlLN4VXy2aXyjngZQFWyzvD9hxkd5JH0S5rfWGOTDrpZxCl8H YSbPenLP33nyKG3LsgEMvmjthk4ac5Hz41ErAtQtj3h71cPn+4+Z7yKKSX+edekPd9gW PTZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :dkim-signature; bh=MX2diE7FOqVy9gLuHlvTO/dG7c1kQ5iIWoeg0NVJ8Y8=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=X84kvR3FdEHuXt+sWVeNNDWke1xhhyPn6bKNd9POgb45Db5GwA4y7W22EAvvdTPgc/ tMhzfVV2MIzLZsPu1li/CNatv8qlX2DbEQHfVEw9Od1xOxMx3zgpgA6W4ukPTjtMqVaj +LGt32HV0+cZNrwip3G5noLtC7z8HX3CtImjx7cNqtco8HsEcxHISiWDfyuwlUKR+V9y M3j/qa12PM2vpj343KHFqAPmGlYKJIRyIfgmeUy3WqnVutIDH7V4Ywhw6bOT6hLkD1q0 dS59+DmXopC5+z32uJ574HGsNWsHu3TIKa/LHTXaf+3TklTage6Sg7/VAW8vwrQzsT6l YfPA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hSqyV9T+; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com. [2607:f8b0:4864:20::534]) by gmr-mx.google.com with ESMTPS id g186-20020a1fb6c3000000b004936ba690ffsi272039vkf.2.2023.10.20.15.00.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Oct 2023 15:00:55 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) client-ip=2607:f8b0:4864:20::534; Original-Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-5ab94fc098cso900199a12.1 for ; Fri, 20 Oct 2023 15:00:55 -0700 (PDT) X-Received: by 2002:a17:902:f94d:b0:1c9:d667:4e85 with SMTP id kx13-20020a170902f94d00b001c9d6674e85mr2655518plb.40.1697839254152; Fri, 20 Oct 2023 15:00:54 -0700 (PDT) Original-Received: from smtpclient.apple ([2607:f140:4208:8000:44a1:a1e2:4ca9:df80]) by smtp.gmail.com with ESMTPSA id p6-20020a170902e74600b001c9b29b9bd4sm1984583plf.38.2023.10.20.15.00.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Oct 2023 15:00:53 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.700.6) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hSqyV9T+; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33210 Archived-At: --Apple-Mail=_484A84E3-AFFD-40E5-AE1A-9B9B5295FF8F Content-Type: text/plain; charset="UTF-8" > 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/73813E01-A490-4C3E-8B23-8952A80487DD%40gmail.com. --Apple-Mail=_484A84E3-AFFD-40E5-AE1A-9B9B5295FF8F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"

On Oct 20, 2023, at 12:25 PM, Guillaume Dehaene <guillaum= e.dehaene-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Sorry for my lac= k 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 DisplayMa= th begin{aligned} structure.
Is that how you / the pandoc team has decid= ed 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 so= mething wrong?
Here are some minimal exam= ples:
```
$$
\begin{align}
x & =3D 5\\
y &=3D 3
\end{align}$$
```
parses into latex as (with pandoc test.md --to latex; on pandoc 3.1.8)=
```
\[=
\begin{align}
x & =3D 5\\
y &=3D 3
\end{align}
\]
```
whic= h fails to compile to pdf (with pandoc test.md --to pdf -o test.pdf

You're right. My mistake on this.
<= div>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/73813E01-A490-4C3E-8B23-8952A80487DD%40gmail.com.
--Apple-Mail=_484A84E3-AFFD-40E5-AE1A-9B9B5295FF8F--