From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28207 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: omitting cells in pandoc --from ipynb --to pdf Date: Thu, 22 Apr 2021 08:12:27 +0000 Message-ID: <702bdfcd12864c5aa79ff8ec45408555@ub.unibe.ch> References: <65ec5344-b6d0-4ea8-8fa2-5bbebc8a1dcdn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14503"; mail-complaints-to="usenet@ciao.gmane.io" To: , Original-X-From: pandoc-discuss+bncBCLLXQUC2IARB3W7QSCAMGQEXTFJ5QY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Apr 22 10:12:33 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f63.google.com ([209.85.167.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lZURs-0003at-VZ for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 22 Apr 2021 10:12:32 +0200 Original-Received: by mail-lf1-f63.google.com with SMTP id j7-20020a0565121087b02901a51611d5basf9610630lfg.8 for ; Thu, 22 Apr 2021 01:12:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619079152; cv=pass; d=google.com; s=arc-20160816; b=tUE/L+ADYDntfLC7uRlE9Oqwgcy0v+sVVq7nlj+kXRonJ3QxdkPgeqQuD3sUwh+bit gxeFOk+B61UK1wg70PuxHICfVzSrORnW5oMDtBQMgji5IerO5KyZfBvILjFmWO4EqnVu GYhlfc7w+OgZR16B0UPXQofO43jVO6Ff4EJ1TPYQPnbiFIpgLzOoVbuJKVy01MupJF9L P9GaOZNrjuVkFhxsqa91zeVFBVEhHUtRkqp6rqfYDvex189AGhq/C9kqjnIzuNn6iA0Z z+KjuIXziC9qN8ZZzdKepDkc9mUi23HhryOL52f/xMw1a+4va6xBO7Knfp+G5Zi9TGTj RrcQ== 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:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:dkim-signature; bh=Nm9GKCdbgnTEza1b25THPSCoXa4lBRn92xlNUnVBbAA=; b=BV9GSgGghRYgi2dDKY+AzWbkz6qeqbMEZfhxu2X7MiCLaY3vlGY991q98BzgetVrjc AcJ4lTTQd/9KbALMvEzjFLVrfppJWG9VR6SVfopGvBDD7YxzsAfHUfdHfKzKxmtlBTbe xoiZFvWn2zXky0PRjHyofgb553zhr/l68C8gOiqx4bhXPUI7ty8lW1ARs3394Gqehsoy 33boIgF6hKRZXkWbHFUSUsc094/72alMoGf4GA/1ghvd6i9BqnHFZkvYL2NPK9bqDc78 I3QAtggo9Hz2jzUqtcEoxZQ4W+vNqW4r2IN4stPSBuMLAsIEIUlvb6crIGHztNWHj4Ar jxeg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :content-transfer-encoding:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Nm9GKCdbgnTEza1b25THPSCoXa4lBRn92xlNUnVBbAA=; b=r5D3mKAm2khUxABL/10Yd0V+klY6QsxsTpFfFukVTtFWkR/HT65TOaYkonKYEzUXaw nS9ok99VM1hiw3s5LuAMTcOTd4i/4v2FkWUfJTCe84IWD9/qDtHagjVzT9L9epMbG0Yx nOsOJN+tm/FZ7EQDxvV+PKmkjPXxQG4z4Bb1sFjSV7Ti0kpdHFz7SzRBOvhIQlIEvZW2 nUeX7028yNv7k/or78mUhVxqIA2Zih/SmOxeLlwDtGyK5k2HO+WxmFoEnKBPTX59Ruef I0jZh/K3hes15XimhrgC25s25zBu68AiQ64cbnnboGsXBMjrz3 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:accept-language :content-language:content-transfer-encoding:mime-version :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Nm9GKCdbgnTEza1b25THPSCoXa4lBRn92xlNUnVBbAA=; b=jBYEUkdp92sMVSCD+AxmqEX9dwYIuDst3LpdBmUODcF8l6W1bArB1Rz6j1GPgQoq+U R8ymT8CexniP0xKCdj5sf1ISxl0gFvoGhk8QCMsl4pAucB1GdFTK0m7BcEIR5J0R8bp4 IlN46eol+TCYIJzssMhLnb7y1HH8uklCfWfQRjWKI/QU/Q5cemGQEyKYwfROollFscUw obhWKsTyPMNa9uJdeEQixKr4ZLDOQCFyxruCbTcNrRA+yLKNp1k/AlxOvwIUpusyEa7r 088Sr Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532UeyVCqUR68qcQtz5EyQyoFHyXBP6jbqb9MeAZ+BOCQIRv8acT rfaqxOXgJWMxn2aIu8ipoWU= X-Google-Smtp-Source: ABdhPJwBihv5scTS/EdMVkOJ1ELG8i1q+NTQZqAxTw88ko1QtvGiwRNyPLfQQ+GI35EsGEc3osnKoQ== X-Received: by 2002:a2e:9710:: with SMTP id r16mr1740171lji.25.1619079152502; Thu, 22 Apr 2021 01:12:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a19:f815:: with SMTP id a21ls206627lff.1.gmail; Thu, 22 Apr 2021 01:12:29 -0700 (PDT) X-Received: by 2002:a05:6512:ad3:: with SMTP id n19mr1706079lfu.324.1619079149573; Thu, 22 Apr 2021 01:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619079149; cv=none; d=google.com; s=arc-20160816; b=gaEjDDiXMpscZAazkdZwklH5a42/q1Sjsv6vsbZ1gKKS5EUuBbZgv/kVV1cEyfOSl6 UeLQsDcLdMFdxwWECC9OK4RjY79y45twaGeA45mg4GEWWJSaPZUHC5UVUQ6nZUgQC2Zg JuQ17m8u4byrePgq44sla32ZK3Mnm6PzSJLfScd+KhkiS6BDNd3tv0oKmJ39sBVRxlbj IeKmlNr+ION/EUQg3zRnvaEJF9I8LJ309d7jrvixC151UcqCK95TNZ/IJ431OvjMqDW9 JJJstEE1bQQW9b6uQfTeJDj5oaseH6owo+8qcbybPYxHYjpbnxGWrU0v3lAQHguEU2o/ k+GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from; bh=6iL2pVRUWJ1dfWvSRUGfjKIc+VIXIIQ0aCfpHZbIw+M=; b=V8MU/0XG7tFc99UG+HPdX0O82cwxvvcczmilEoB70+TyZRI4vp+85bynXyQ2ZuGh+T IwVEfAuBPl9P/iDQuPPS4WAcx5u23nndfZkQcg9KL42jSY9K4y3sLXd/BdD0199qsMHx GPq+tYs8TLJA56ujb6K8vbDRbk/w8dQCnvxUcZTidfbR2GRqV9eFCDBjZnp1JwulQuer ibLjQi5L85WoQdd5AF44V4vKyfzPUX8czrmpavujSlslS11RgNT/RqUe4pAaG/lEAhHg k1/Wg6AXmnd4qhSi+lnkTmYyTWMhmGMTvVDTNKVBo/PL335UH72O+MF6fAcQ6bDdAZXy yEOA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch. [130.92.0.82]) by gmr-mx.google.com with ESMTPS id d19si336264ljo.1.2021.04.22.01.12.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 01:12:29 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) client-ip=130.92.0.82; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-02.campus.unibe.ch [130.92.13.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id F15BD50008E; Thu, 22 Apr 2021 10:12:27 +0200 (CEST) Thread-Topic: omitting cells in pandoc --from ipynb --to pdf Thread-Index: AQHXNsYmdqgsZ4Nxjkm8VqUGUtk+laq/fESAgAC0BcA= In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] X-Original-Sender: denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:28207 Archived-At: FWIW, you might also be interested in looking into https://github.com/gpoor= e/codebraid Denis > -----Urspr=C3=BCngliche Nachricht----- > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von John MacFarlane > Gesendet: Donnerstag, 22. April 2021 01:26 > An: Leo Ferres ; pandoc-discuss discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > Betreff: Re: omitting cells in pandoc --from ipynb --to pdf >=20 >=20 > You could use a Lua filter to do this fairly easily, I think, though I'm = not sure > about the details. >=20 > Try pandoc your.ipynb -t native -s >=20 > and you'll see how pandoc represents your notebook (the AST). > If it's just a matter of removing Divs with a certain attribute, for exam= ple, this > is easily accomplished with a filter. >=20 > Leo Ferres writes: >=20 > > Hello. > > > > I have the following pandoc command that I use to generate my pdf from > > notebooks. > > pandoc -V geometry:margin=3D1.5in --table-of-contents --toc-depth=3D5 \ > > --preserve-tabs --standalone --pdf-engine=3Dxelatex a.ipynb \ > > --highlight-style=3Dpygments --metadata-file=3Dmeta.yaml \ -o a.pdf > > > > It works fine. However, I'd like to omit some cells from the notebook. > > jupyter nbconvert has the option > > --TagRemovePreprocessor.remove_cell_tags=3D{"omit"}. Is there a way to > > add that to pandoc? > > > > Thanks, > > > > Leo > > > > -- > > 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/65ec5344-b6d0-4ea8- > 8fa2-5bbebc8a1dcdn%40googlegroups.com. >=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 > 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/m2h7jzte2m.fsf%40MacBook-Pro.hsd1.ca.comcast.net. --=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/702bdfcd12864c5aa79ff8ec45408555%40ub.unibe.ch.