From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31021 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Huntsinger Newsgroups: gmane.text.pandoc Subject: Re: Jupyter-to-LaTex | How to render tables? Date: Mon, 18 Jul 2022 18:40:36 -0700 (PDT) Message-ID: <1568e512-a488-495c-a82d-aedec432d0acn@googlegroups.com> References: <6c82ec4b-d697-41a6-9192-2a84945e0850n@googlegroups.com> <5299A394-419C-4839-B528-46D002AF3371@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6300_902519230.1658194836066" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30569"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCFYNC6M64FBBFMX3CLAMGQEXLFQ27Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 19 03:40:41 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f188.google.com ([209.85.128.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDcE4-0007hR-Uk for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 19 Jul 2022 03:40:41 +0200 Original-Received: by mail-yw1-f188.google.com with SMTP id 00721157ae682-2dc7bdd666fsf106224517b3.7 for ; Mon, 18 Jul 2022 18:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=unM5iu66rXLEtt0tlwVW/7PZTDRrLo45HJq9XWbqylQ=; b=a0taLZ8pxdCH6I8FXqYKuAponlYgfJWO8l4atOXLDMYRI/7KDkMi5AvwVZACjAS7MR 52sURrGTaWVpOMG2FPcI485phpV+G3D8VPwdvGdnYaD02+4nEs2WXLl7ddnjPmVMo5b2 5VAgM1hxGvxvsbUcL+ugB9PskjzXmP/FrZIbY2Y5qmYfOCtULLumSXBo5LumtqUgrBLx haNqExpHCnyX2SG3XBnSJ8IJDqovETV6ZG8ZZigYSlRHr5myyOgF+M2TVLF2acY6d4OE /gEkpV+QtWNsIokRng9KHLKP2Vo9twh8iRJONdJOktF7RvSl+6qLp+eokKF08o6qKbUS spjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley.edu; s=google; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=unM5iu66rXLEtt0tlwVW/7PZTDRrLo45HJq9XWbqylQ=; b=kX3IeWex1RopVaK6CcfvbiwkmOwO/NYUn4YZO/5xNByavt3x0OKdkRsxrVUONr/8mH PgxmslN6Vy7LkwYTodQWucb6vglLmANySijZou4F0B4ZUXU8Nlw3j5B28xFcvbgic0Zk HXZGbIpfVjNr9v426Cnx0AEqxssOZnl5iPpUDrY74AkilxR02cXI4feeq3V6OX/qgNj/ p1O11Dni80k2Mg10c0zffHlsOsxzfyExWOeBhS02eaF8Bl2msm3zZTu9K4VpltEJddAY Dd0Uug0uRrOVuH+ohQMuOqEAYBE5/7zq1zvT2N4BofaOYMnpia1Uyj8LneIAtCkVHksc oCsg== 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:in-reply-to :references: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=unM5iu66rXLEtt0tlwVW/7PZTDRrLo45HJq9XWbqylQ=; b=WJq5Sq2c6HCwbeYTcdkZeJNePLITYMs55uF1MwrRTLUV1LWwrdngTJ745wwocNUhu7 ei1Exsnhz2HsK8+l0jNcFII0+HeGOQ9LSCmlPNQp5yA6xXU1Gll0IkRfAmz274QeJ4Q/ 5kOqjjgzzTsTIxKZBt6oA+PLbZK3rppmj30ocTvf9jFmuGkKis1w7mKwjnLEcpwqZZ2w AZQfKKQu2IVKUcDv7KDfuMAhDrAy1URacl1CTtVORx8Tniutyq9PejFCzFdOWaDzvhpD cGl02g6qQxtdRRW/KEdJmT9C9EgPb9sTMclBgLNbY3wr9RIDf0QCv0tMo4p94iIpfIrm Fivw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora84OEbPSJn1MyZpiBKHIewhGoRO+mV9kWYB6rUyra2qyR5HdcrE AGwIxH5l5H0dawmclMvo664= X-Google-Smtp-Source: AGRyM1vJ0DyKhUztaZhkDSMiG+BaizIoQToZoKnaBRfmzuhjxhks7fzRGTJAMxvCg7owGLKMkZWcRQ== X-Received: by 2002:a81:608a:0:b0:31e:5a09:c664 with SMTP id u132-20020a81608a000000b0031e5a09c664mr1235381ywb.423.1658194839948; Mon, 18 Jul 2022 18:40:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:a384:0:b0:66f:5d92:a80b with SMTP id e4-20020a25a384000000b0066f5d92a80bls12107346ybi.7.gmail; Mon, 18 Jul 2022 18:40:37 -0700 (PDT) X-Received: by 2002:a05:6902:1026:b0:66f:d3d:444 with SMTP id x6-20020a056902102600b0066f0d3d0444mr29204016ybt.260.1658194836691; Mon, 18 Jul 2022 18:40:36 -0700 (PDT) In-Reply-To: <5299A394-419C-4839-B528-46D002AF3371-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: rhuntsinger-TVLZxgkOlNX2fBVCVOL8/A@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:31021 Archived-At: ------=_Part_6300_902519230.1658194836066 Content-Type: multipart/alternative; boundary="----=_Part_6301_1141698111.1658194836066" ------=_Part_6301_1141698111.1658194836066 Content-Type: text/plain; charset="UTF-8" Thank you much, fiddlosopher, for your quick reply. Clearly, I need make use of lua filters to adjust for the HTML code in my Jupyter notebooks. I've now read the lua documentation and tried some of the examples on the pandoc doc site and pandoc/lua-filters repository - but I don't see an example of how to search for and transform HTML-format tables to native pandoc-format tables, or similar such thing. Can you provide me some additional guidance? On Monday, July 18, 2022 at 12:54:17 AM UTC-7 fiddlosopher wrote: > Raw HTML in a Markdown document (which is apparently what the R > display_html function produces) will not be passed through to PDF. > Similarly, raw LaTeX will not be passed through to HTML. > > One approach might be to generate *both* formats in your notebook. You > could try that. > > Another approach would be to use a Lua filter that matches raw HTML blocks > and uses pandoc.read to convert them to native pandoc tables, which could > then be rendered in PDF. I believe there are examples of such filters > either in the Lua filters documentation, or in the pandoc/lua-filters > repository, or on this list. If you can't see how to do it, just ask. > > > -- 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/1568e512-a488-495c-a82d-aedec432d0acn%40googlegroups.com. ------=_Part_6301_1141698111.1658194836066 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you much, fiddlosopher, for your quick reply.  Clearly, I need m= ake use of lua filters to adjust for the HTML code in my Jupyter notebooks.=   I've now read the lua documentation and tried some of the examples o= n the pandoc doc site and pandoc/lua-filters repository - but I don't see a= n example of how to search for and transform HTML-format tables to native p= andoc-format tables, or similar such thing.  Can you provide me some a= dditional guidance?   

On Monday, July 18, 2022 at 12:54:17 AM UTC-= 7 fiddlosopher wrote:
Raw HTML in a Markdown document (which is apparently what the R di= splay_html function produces) will not be passed through to PDF. Similarly= , raw LaTeX will not be passed through to HTML.

One approach might be to generate *both* formats in your notebook. You= could try that.

Another approach would be to use a Lua filter that matches raw HTML blo= cks and uses pandoc.read to convert them to native pandoc tables, which cou= ld then be rendered in PDF. I believe there are examples of such filters e= ither in the Lua filters documentation, or in the pandoc/lua-filters reposi= tory, or on this list. If you can't see how to do it, just ask.


--
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/1568e512-a488-495c-a82d-aedec432d0acn%40googlegroups.= com.
------=_Part_6301_1141698111.1658194836066-- ------=_Part_6300_902519230.1658194836066--