From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31756 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: bapt a Newsgroups: gmane.text.pandoc Subject: custom LaTeX writer example Date: Mon, 14 Nov 2022 19:30:19 -0800 (PST) Message-ID: <34e5e93b-8832-40d3-8803-8e5a12b5290an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3114_1930313322.1668483019972" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7620"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDG3FYUYQUCBBTMPZSNQMGQEGHP26NY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 15 04:30:26 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f192.google.com ([209.85.167.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oumeX-0001jN-7p for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Nov 2022 04:30:25 +0100 Original-Received: by mail-oi1-f192.google.com with SMTP id be25-20020a056808219900b0035ad466a313sf2651298oib.17 for ; Mon, 14 Nov 2022 19:30:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=k+JOeC+2e0wK84FMX9tCjrJNBRB5n+MmhuzKKz17obE=; b=kCNweJX9ylmR6TDPRdf+5RN8iWRdG7YSBupo7eGsL3Jxm3G5KkNRoVw/jtmbXdWmd+ nrUDiLjxQNVLZXG7HJ42XBNUYwOhZ9r2JvRZzxbz4DRL/992mvif8CD22tSfufDN9euI RCePbfLtdCAr/wQ/UL4Knzsy+gl3bFboFiyD3Djw0rFEZdV918uqXtXMwwGC5Ocnqnru uFsnc7DnS1BhshZodsp8kX/jzb/2RXB6clyJIicGnQew7VQKz9xBzuTcyjfoGVTZQJrn V3pZ1HalDgcvV1vxL4eMz0BaScE99TXUUXiwQZH/vELtCTfbuSR89Q/2nKWngO1amzo+ kmqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=k+JOeC+2e0wK84FMX9tCjrJNBRB5n+MmhuzKKz17obE=; b=iGVF3FumENcD9IpOeSwdWQo+T2RxnhOC5HHM824Tg33Ym7jVYm2hzoxWhroeFehIIN u530r23jtjzRDMj2LWn7Vgu4LFw0jT0EydnXM7zdGqQSLN8X7N81Nz1DK+IeYnBFYXbU RRIryXIIMvTrZgwaMyID6S8un0s0Rr5DJHevy+mHN8HHbQx6aRvizuR3XBt7QDRn9OqS bovzNSAO2i+6ik+vJE4n6dEIBLg7gNqsiZn/q8V6c0XCjjQlYI7LRfyan0nZQKYZOele wzxpVLItVEAvG8+RLxJD7reDigBGNsG/Je+80K0uRJbkNL1xpUJkDr6PKYHSHfFfMAet wQ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=k+JOeC+2e0wK84FMX9tCjrJNBRB5n+MmhuzKKz17obE=; b=x0LzjzEX3hIhf67YY5I0hJF9kjWHYDrqAzi5b2R/dO0fH/iH5mR5FboSW3ffYs2wxg rmM91GzZBqK2g5hGlChNnpXpMyBd7ZQURbhEVK0leMxMMZfKTznpIf5T5iXJnTyGyL5a CaS8LeO5aofvgpodv2MHujyaHOarRZwPIqmIJFWCHPucvh860WobOeLXlOhspavUU3Ns hg7unE58Nw+WxyndUAJ83fdtbzj6KtXxMkZY3WwcAeLJe9Tf6iQZtU+E8wjbU7wt/uAJ YywHGqwUbNdSD3f/kBaYOT039vFMXyrPlhj6DWS567uhZYsMyyHwdoHKseZd/d+EDiaO syyw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pn+OeKIIMZuUjR+5BmRHKcu5KLGkO2HWOXHKQGjYbTMYlje39nI NgubZcj94qSF6PNNKm4QEZY= X-Google-Smtp-Source: AA0mqf4nlVKAwaMkPDzz1pDiAMRFf/eF6Vdezzn0HkhlOnXHLHJXj+cvyKQsm8odemPqS3cwZS7Yhg== X-Received: by 2002:a05:6870:2e07:b0:132:8a87:f629 with SMTP id oi7-20020a0568702e0700b001328a87f629mr60285oab.276.1668483024120; Mon, 14 Nov 2022 19:30:24 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:5281:0:b0:49f:89b6:e04c with SMTP id d123-20020a4a5281000000b0049f89b6e04cls45300oob.0.-pod-prod-gmail; Mon, 14 Nov 2022 19:30:20 -0800 (PST) X-Received: by 2002:a4a:5884:0:b0:498:9589:b7ac with SMTP id f126-20020a4a5884000000b004989589b7acmr6739581oob.56.1668483020795; Mon, 14 Nov 2022 19:30:20 -0800 (PST) X-Original-Sender: auguieba-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:31756 Archived-At: ------=_Part_3114_1930313322.1668483019972 Content-Type: multipart/alternative; boundary="----=_Part_3115_339762082.1668483019972" ------=_Part_3115_339762082.1668483019972 Content-Type: text/plain; charset="UTF-8" Hi, I'm hoping to play around with custom writers, to understand a bit better how to turn pandoc's AST into a specific output format (for example, I'd like to use tabularray syntax for tables in LaTeX, and it seems "cleaner" to use a writer than to inject raw inline LaTeX via a filter into the AST). The html writer example is quite useful, but since I'm aiming for LaTeX output, it would be helpful to have something a little closer in syntax as a starting point. I searched a bit and the closest thing I could find was a plain TeX writer at https://github.com/drehak/pandoc-to-markdown but this is perhaps not as helpful for learning because most of the magic seems to be delegated to custom TeX macros. (A good strategy, but I wouldn't know (La)TeX well enough to perform some of the more complex processing) I wonder if someone here has a minimal (or complete!) example of a custom Lua writer for LaTeX they could share? Many thanks, baptiste -- 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/34e5e93b-8832-40d3-8803-8e5a12b5290an%40googlegroups.com. ------=_Part_3115_339762082.1668483019972 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I'm hoping to play around with custom wri= ters, to understand a bit better how to turn pandoc's AST into a specific o= utput format (for example, I'd like to use tabularray syntax for tables in = LaTeX, and it seems "cleaner" to use a writer than to inject raw inline LaT= eX via a filter into the AST). The html writer example is quite useful, but= since I'm aiming for LaTeX output, it would be helpful to have something a= little closer in syntax as a starting point.

I se= arched a bit and the closest thing I could find was a plain TeX writer at h= ttps://github.com/drehak/pandoc-to-markdown
but this is perhaps n= ot as helpful for learning because most of the magic seems to be delegated = to custom TeX macros. (A good strategy, but I wouldn't know (La)TeX well en= ough to perform some of the more complex processing)

I wonder if someone here has a minimal (or complete!) example of a c= ustom Lua writer for LaTeX they could share?

Many = thanks,

baptiste

--
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/34e5e93b-8832-40d3-8803-8e5a12b5290an%40googlegroups.= com.
------=_Part_3115_339762082.1668483019972-- ------=_Part_3114_1930313322.1668483019972--