From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30995 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Abhishek Ulayil Newsgroups: gmane.text.pandoc Subject: Extend functionality of existing LaTeX reader Date: Sun, 17 Jul 2022 07:06:12 -0700 (PDT) Message-ID: <0355c120-5f0c-440e-8bdf-bdf819fd1f4cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1512_175451164.1658066772418" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11723"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQIR5HZ7MFBBVNO2CLAMGQEDC5VL7Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 17 16:06:18 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f184.google.com ([209.85.219.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oD4uX-0002mu-2V for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 17 Jul 2022 16:06:17 +0200 Original-Received: by mail-yb1-f184.google.com with SMTP id w15-20020a25ac0f000000b0066e50e4a553sf7100962ybi.16 for ; Sun, 17 Jul 2022 07:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=hZN3BOsWWIvv3HrcKwiSgbWt1W0qs5+AWmLzqJ2uaQc=; b=aGLR9gZWmVVb6xNVSN2XxFaveSdmUCCOdQY7ZHRs9zhUbdAlv5bk2KCAF9b0cpWFXC skCQiaBTcgA3ZlpY6/nlvS3dTcCYdRn6YFCwjOglhY3t/IYO1AQEL8gTip0KK5KOvXFm +DnPYndG6o8xdgpvYHLlEplF17/pkmvWThtxCeT3sltaNX6rWn6CsnWfya/aMNjPZXWw GXLFMvPzY0gLIWsIB7rNJlVpv6Cbi4BTvNzwXVVv4F2cZanlr9yuheUQnB0ESn3slIjX K03GVRWlCbIzVT0sQ6wI4XLtK6mWN8OnH+NpxYIxCXXQdzDFUdXpZBuPoHm5AeLu9F2I vffw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=hZN3BOsWWIvv3HrcKwiSgbWt1W0qs5+AWmLzqJ2uaQc=; b=ngxOybArP7r8otlapt8sgIvemqnm7JUHS4QBRAwajvh7GgOJ/b70va+x/Sx8PLoZZw 9paUbrycFR8d/vFJU/Jag7JEm7jNWGkgERDkNrPS3pUDfw3ncFXwqE+OW5P1OOYRBAXw Ii4DxAdghYA9Ogao8KrG2d+wyGItCKMdItgOvGw8V3trhgYN/7xuN/b9OusJn4RH3OdW ArixIXDQOvw1x/O+tfTjSPwQmuvLJuxb4SMlqPnesAHaIIDyU14Kb9cj4Kr5S+QhOsc0 E2wCAXb49KXNZVyC/thR8MPDkaHfcq0pB842D/19d6elpkJLy5zSM23Oo6w/N9Xc52uE FpEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=hZN3BOsWWIvv3HrcKwiSgbWt1W0qs5+AWmLzqJ2uaQc=; b=MNsBaiWIhrzFKorzztj5559MEGQco/aEbyPI6HwYpnHvwDqP03xYYTGjkzXn/r2eml 8cQE82P/92vZqRIEpdRQ6n87jbY/ndKIv4dATawIzqAOizsqU9omDbRrvGWGnzgF+Hrt lirz2tBTWBxavjcDNbbcBUAfwUhlOoYRrxcGUR7T6svXV+/T2M6KUjKSKiRP949xUogm 1epF4D8YdOnUEUqe3PeQobLNf5gWvMTS8EXPRGR/9J7zLyks2DAtZq8xlGr86QLNYwho GCCleS8hqEnT//qUsEu4+3D3ZJCHTnVrgxulnSela+cwaXL5LRwMj6V4cBux5kFiWM8j BcqQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora/1nAkgJ4GGSiwCDzMGuR5xSwM+D/5uojuFlYpY3fVckvN4jHl6 5JzBj0R/ksvhv7JbwG2hYCA= X-Google-Smtp-Source: AGRyM1vrrJ29GHQez09VJOK4JzdYL0c1ECKKSa6eksrP41xUWzGIRSPxw49Vz1XAumunU/ITM7P2Qw== X-Received: by 2002:a81:73c5:0:b0:31d:cbca:6450 with SMTP id o188-20020a8173c5000000b0031dcbca6450mr20974967ywc.43.1658066776017; Sun, 17 Jul 2022 07:06:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:db41:0:b0:2ff:2e35:3394 with SMTP id b1-20020a81db41000000b002ff2e353394ls37263ywn.9.-pod-prod-gmail; Sun, 17 Jul 2022 07:06:13 -0700 (PDT) X-Received: by 2002:a81:7d45:0:b0:31c:98da:aaa4 with SMTP id y66-20020a817d45000000b0031c98daaaa4mr25286361ywc.517.1658066773082; Sun, 17 Jul 2022 07:06:13 -0700 (PDT) X-Original-Sender: Abhiman2000-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:30995 Archived-At: ------=_Part_1512_175451164.1658066772418 Content-Type: multipart/alternative; boundary="----=_Part_1513_927735829.1658066772418" ------=_Part_1513_927735829.1658066772418 Content-Type: text/plain; charset="UTF-8" Hi everyone, I have been using pandoc, learning about the AST and writing basic Lua filters (Mostly for LaTeX). While it has been a learning experience for me I have started to wonder "Can we write a custom reader to extend the functionality of the existing reader? and If such a mechanism already exists then how to go about it?" I understand that the default LaTeX reader is good enough for most conversions, But there are many custom commands and environments that the pandoc LaTeX reader skips(or treats as Div) in AST. I have also explored the latex+raw_tex input format where I could write some Lua filters but this format is overkill, considering I want to add support for only a few commands/environments and want the default reader to handle the rest. Thanks in advance, Abhishek U. -- 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/0355c120-5f0c-440e-8bdf-bdf819fd1f4cn%40googlegroups.com. ------=_Part_1513_927735829.1658066772418 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi everyone,
 I have been using pandoc, learning about the AST and= writing basic Lua filters (Mostly for LaTeX).
While it has been = a learning experience for me I have started to wonder 
"Can = we write a custom reader to extend the functionality of the existing reader= ?
and If such a mechanism already exists then how to go about it?= "

I understand that the default LaTeX reader is go= od enough for most conversions, But there are many custom commands and envi= ronments that the pandoc LaTeX reader skips(or treats as Div) in AST.
=

I have also explored the latex+raw_tex input format whe= re I could write some Lua filters but this format is overkill, considering = I want to add support for only a few commands/environments and want the def= ault reader to handle the rest.

Thanks in advance,=
Abhishek U.

--
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/0355c120-5f0c-440e-8bdf-bdf819fd1f4cn%40googlegroups.= com.
------=_Part_1513_927735829.1658066772418-- ------=_Part_1512_175451164.1658066772418--