From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33213 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Guillaume Dehaene Newsgroups: gmane.text.pandoc Subject: Re: User story: typst multiline math in pandoc markdown and pandoc AST Date: Sun, 22 Oct 2023 12:18:46 -0700 (PDT) Message-ID: <9a81a7ad-5779-4166-805f-88c9400b8b96n@googlegroups.com> References: <672a5917-b04d-4eb9-966d-75b54df97837n@googlegroups.com> <464EF7B5-5A64-495A-A195-CC62A3D2A637@gmail.com> <73813E01-A490-4C3E-8B23-8952A80487DD@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13132_922438187.1698002326831" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8805"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC7JVCW5SUMBBGHL2WUQMGQEYBIRZOQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 22 21:18:52 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qudyN-00025I-PH for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 22 Oct 2023 21:18:51 +0200 Original-Received: by mail-oo1-f59.google.com with SMTP id 006d021491bc7-581e1d59302sf3576985eaf.0 for ; Sun, 22 Oct 2023 12:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1698002330; x=1698607130; 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=FsJEjHeFbj8kbrqn/49bS1KF7En0kxhFU5ymv5O282E=; b=QAVLx9hRqGD58Jbzc8ZXoLsKu1TJzwMoxqsP8yP7V0VTJdzZGXx1djeXbMoNLKrf2x IYSRlgqSGBZ7gz5f6lZ+6x55TzqS1myxDLHhNAfSlZeBFV4ePtGgVANLTkZTzb+S3Lxh MgTlweyt2qwe9fV4mSMa+Cc+SKWvwcRYhhPCDGExp2g2At0g8ZZBmY2NOvpdbQbd+IZr dKIXHEC9qm+IraAayf4igSZQTFm9ajJR7U+8rvTx6pe06XWzw6RGCHHnb4mxFmLQx85a MWVdU7vWlCC7r0AWjtOZCn7YOvP/o2EMmxv9KgvhGxGU5cr/fGeT1daTK0NkwyYtUuM4 UXiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698002330; x=1698607130; 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=FsJEjHeFbj8kbrqn/49bS1KF7En0kxhFU5ymv5O282E=; b=WQrc4XACzO/GHm3TMW1cCtzunHdnSSvm2YfnVO4kC8RcmVawrokHeOGAJe37mq2fft 3sCgBhAJ3RI3J/DMMolyHTBAh9xjzgEKmb9gxaMb5U5rYA2Rz912eOLatVplyA2ZeP4a mp+yIFm81O4NQvf7KaThOVUvURhA1g08PgQcrgqpFnvAQWNrrK9roZ6Eobl0XdVHmX7h vvteq0TsgQKHQTXyscwNPfdGOduxJMocg9uJXXJ3EmRMZnBd1PaUoSn2n2dyGQ6mRTxb MF6nUKJFiZQAzbeqxaxYy6OYhRzS34x9MKi7c+aOI4UHZMl2IRlmKkmkX347H3Gce8Eq 9L/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698002330; x=1698607130; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=FsJEjHeFbj8kbrqn/49bS1KF7En0kxhFU5ymv5O282E=; b=e/6ZZxyZRZiHApIxhZPmioXciQxkvai7qWeIEluLceJBB17iBS22GJ+yew2w+SxmjP JhbBsDRB4xre97SH4xqJYbWtAFPbBIVv3bT11omNbETT5K9R/Gk86FzCnGF0B2UUHsb6 cMxjWWaBfZCMJVAyKlnlojJIqOgxjos+HrDelhCW536jMeftzGDIlpSJqMSqQpoGl3nZ NCMPFEpuSDbdjj+Fm4TT3aPm9E6JyZ1Svkjnhz8iIrDRI+Cdz2tOJ7KdH1OPexJjMlfJ Y4TkeiVoIhcFuCUDxpfrCNejpG7auHM3mV5WBT0V7TR5VFfDxs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YzsuyOWJu2GzizkchEqb3sprLxkkVzT5UZVpbIY/yHtHpX0l1ZG JvXS+JaCT4Icm8Lcja+gmH0= X-Google-Smtp-Source: AGHT+IH69ol80nTXtl1sJQ9hiJ9H3yv4aFbLmO0lYEc+Y6ZVrkmesi73yB0ZablwxyPqodyZAfId1g== X-Received: by 2002:a05:6870:15cf:b0:1ea:8645:6352 with SMTP id k15-20020a05687015cf00b001ea86456352mr5844612oad.11.1698002330660; Sun, 22 Oct 2023 12:18:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:d0d:b0:1d6:cbc7:fb4c with SMTP id vh13-20020a0568710d0d00b001d6cbc7fb4cls3537516oab.1.-pod-prod-06-us; Sun, 22 Oct 2023 12:18:47 -0700 (PDT) X-Received: by 2002:a05:6871:54b:b0:1e9:f600:53d with SMTP id t11-20020a056871054b00b001e9f600053dmr3514324oal.10.1698002327601; Sun, 22 Oct 2023 12:18:47 -0700 (PDT) In-Reply-To: <73813E01-A490-4C3E-8B23-8952A80487DD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: guillaume.dehaene-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:33213 Archived-At: ------=_Part_13132_922438187.1698002326831 Content-Type: multipart/alternative; boundary="----=_Part_13133_388301696.1698002326831" ------=_Part_13133_388301696.1698002326831 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable oh I'm not sure there is an alternative. I'm just curious whether the situation is: "we're using aligned to=20 represent multiline-math always" or "we're using aligned to represent typst= =20 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=20 fruit to make it better. Best regards, Guillaume On Saturday, October 21, 2023 at 12:00:58=E2=80=AFAM UTC+2 John MacFarlane = wrote: > > On Oct 20, 2023, at 12:25 PM, Guillaume Dehaene = =20 > wrote: > > Sorry for my lack of clarity. I'm asking too many questions at the same= =20 > time and it must be hard to follow. I should have rewritten that last ema= il=20 > before sending it. > > 1. My question about aligned. > I see in the code that the typst reader parses typst multilines into this= =20 > DisplayMath begin{aligned} structure. > Is that how you / the pandoc team has decided to handle multiline math in= =20 > the future? > > > What would be the alternative? (Short of changing the AST, which is=20 > 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 & =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} > \] > ``` > which fails to compile to pdf (with pandoc test.md --to pdf -o test.pdf > > > You're right. My mistake on this. > > --=20 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 e= mail 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. ------=_Part_13133_388301696.1698002326831 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable oh I'm not sure there is an alternative.
I'm just curious whether the s= ituation is: "we're using aligned to represent multiline-math always" or "w= e're using aligned to represent typst multilines".

I've almost f= inished my extension: it works perfectly.
I still need to finish the r= eadme 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, 20= 23 at 12:00:58=E2=80=AFAM UTC+2 John MacFarlane wrote:

On Oct 20, 2023, at 12:2= 5 PM, Guillaume Dehaene <guil= laum...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Sorry f= or my lack of clarity. I'm asking too many questions at the same time a= nd it must be hard to follow. I should have rewritten that last email befor= e sending it.

= 1. My question about aligned.
I see in the code t= hat the typst reader parses typst multilines into this DisplayMath begin{al= igned} structure.
Is that how you / the pandoc team has decided to handl= e multiline math in the future?

What would be= the alternative? =C2=A0(Short of changing the AST, which is probably out o= f the question.)

2. You propose t= o wrap align.
This is not working on my side, but= I might be doing something wrong?
Here are some = minimal examples:
```
$= $
\begin{align}
x & =3D 5\\
y &=3D 3
\end{align}
$$<= /div>
```
parses into lat= ex as (with pandoc test.md --to latex; on pandoc 3.1.8)
```
\[
\begin{align}
x & =3D 5\\=
y &=3D 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 &= 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/pandoc-discuss/9a81a7ad-5779-4166-805f-88c9400b8b96n%40googlegroups.= com.
------=_Part_13133_388301696.1698002326831-- ------=_Part_13132_922438187.1698002326831--