From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31769 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: TOC only Date: Thu, 17 Nov 2022 18:11:53 +0100 Message-ID: References: <14f84699-724f-4483-8fe6-1845d1fe81b5n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ec499405edadaf96" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3680"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBYOW3GNQMGQEBEGJPBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 17 18:12:06 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f189.google.com ([209.85.210.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oviQn-0000jv-VP for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Nov 2022 18:12:06 +0100 Original-Received: by mail-pf1-f189.google.com with SMTP id e12-20020a62aa0c000000b0056c12c0aadesf1492199pff.21 for ; Thu, 17 Nov 2022 09:12:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668705124; cv=pass; d=google.com; s=arc-20160816; b=kTGDUFJXclfmeEBaXCrdqXnwCROTJkN8Uk9zmEsuPUlyrg6FCKgAb4TTdJgpOjXxoN BeZH0MKsCsx4SbM1uG0CtTya1DP6DDgvscnrtiYg6I4uyl5ZonNdAES3izXgKjrfXhQZ ZTGkUAps55e5TS9ueR1phTOHmwlRQqqn27x+qQ0amwLGamndhzZrcHhlzJaW334/WzRV Tcab73k1LQvM3pfEnoORY+P4thiRA03WtUfTsabNhdrKFtbuucpilHJe/ERaFhu3TQX5 UMYXcLbD4bz/lWNchzXfGWK19YlvMidYDK9ILIrUmQI0aGGepaJ6ran9V2Rtkgq8djc7 2C+g== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=IBWk5aUlKPptBJm3A/FpC1/7ayn8PT8hz88o+L0x4uk=; b=mWzGXe0NzRCcHs9wwCxmzVQceUxIm2EtvtB+ZftxPTXQnxSSRAFTiHyw2Mf3hB7qLR V72m9SpIijqxEkX0CBBdUMEZebCXBKT3w1Hfl/7Hjd88AIeoj5a/U82yoBKtlG1ysTSv 2jhDzIY7sy/0hBZopiGcVFySlGllzSNTJw3o2xkKcfrkBmKC2qwILrp63xhj+GwWlEJi KvhVPEjaZlPc1/YyWzAHFdnItebamvYCBtEB/cMZYSYic4Sx7Qzx1ybuyYXvf95dwd5i Gq5Qmu93+oHV/FRRNy2iw5fdUo9Nr5hgdVeMcRPuWRptF23ntjYFVKMKE78hg8gLCK9Q ROgg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q6z5h0Xl; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=IBWk5aUlKPptBJm3A/FpC1/7ayn8PT8hz88o+L0x4uk=; b=Y2Q9QeF4LXv1FmqB+qlC1f8IYk8eVKxfuFi5Xj213ndrs+d3pZy01sTFLC8uarQzzR +79aUUzTanBQzik62+OtgToGdvfAA2ubgijA4RVLu3FMqvDdguaya+cYWBK/osubl7kp ApLWlbTshvi5WXj/3Mo1mW0S3C35Y9DOaRY4AJJgf3fpbYOgrIizv83+qPJiMZzuAHpH SpxqyEyiPdFk1qkZXbeKxbWYRw103F10vH6lcySXN9yHFjAMv6TKFETB3++nKGHqI7zT XT+/oS9R4D105ohumhKezPrath3DI0+COIElp+Gk4vYni3UvOGw44uS+jOCdLmZ3QqnN XZEg== 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-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=IBWk5aUlKPptBJm3A/FpC1/7ayn8PT8hz88o+L0x4uk=; b=AZ9zUX6P8IGiBKoqIjfytJ/xhgNnIQX4qaJzOkcdrk+5Ij3ilKO8+aeRKX+idvKNes TcokrqzqEVHdsvwRYboYTf7rqCOhQe+M9SB9b2R5cFs9nJmrc5AW0Lx2PCJEsGEnzCGW bGFoPi3r9wCXd0BtaqJtKH2qYtZ95sC0x7nri9omoQt6MplJaLwiQw53nml5GqraPvtx nk8oVz8IN1HF1aW3I0CZa4BL0v2XvGuU30C8C7OcCVYo7KYUg9Mfyzl1oUAiSZAFuXoh l98PWjI33eGf8pPXtxepoQ0ow5R5OGzKEYkEu2qWGtokOach5YJkQGaroNL8y5hrT4bR 858w== 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-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=IBWk5aUlKPptBJm3A/FpC1/7ayn8PT8hz88o+L0x4uk=; b=yPkscU9Ap5opvW2pNLSttdkzCpxKDR42hCgUAbXn/g2XaS/jJI3CKabk2C9FWEEiNt wCxV0U1oXPfUn6qZ2OIOCw1vUanlvJmFUttkP04H5rCNP5Z6iKH+TAT3tw92IMBJkQTR 9lsJ69j74IYnQUrmUT2mlzQencXkPBznnfNNjUOWYqKOtt+g+AjtuA6eUGqmD1bJXSx6 LjNpbeyCj0QcdbqHPP8o2QC3cF5fMIP2z0YAQ05w/vMfOKrxRVy4NEyiLqjSLpL4El+l 08zM26p0QxLvl+Ot+aN9M+vXbC34+ZzHgY0q7wGDJN7om6 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5plyRIxSchHtq/rGfsSnY3w7bvUEGplb23psgT68tNwWlc+aU8if N6Zjp3YNuqSNsaY+lGtuyTk= X-Google-Smtp-Source: AA0mqf7s/uTgQEz9sM9LprJFE4r/OIHIyero9baUSUMKx7tnLE8kingMKcvCJBt5sZyk8FPGpHlkdg== X-Received: by 2002:a17:902:f283:b0:186:99ef:891c with SMTP id k3-20020a170902f28300b0018699ef891cmr3579635plc.169.1668705124577; Thu, 17 Nov 2022 09:12:04 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6a00:1d9f:b0:56b:bd09:d1f1 with SMTP id z31-20020a056a001d9f00b0056bbd09d1f1ls1345530pfw.1.-pod-prod-gmail; Thu, 17 Nov 2022 09:12:01 -0800 (PST) X-Received: by 2002:a63:454:0:b0:435:2b72:cf0c with SMTP id 81-20020a630454000000b004352b72cf0cmr2801801pge.283.1668705121061; Thu, 17 Nov 2022 09:12:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668705121; cv=none; d=google.com; s=arc-20160816; b=VMwKZUXV3gITuPnIhGoImFlZdjP+l5mi52g6sAAZhOQ23DjmWp4a2I0fWzYCVJCcNF dwgFcRQgYMa8dXsinWPHTAo35P172xYFiftkFvucosVOE+oPXZXNFdTw4dO8oGvsXVgB UENdfoYIop41repzWyfoeUUXlB1Y4nfHgNlWVOLU0QtRgcLHubx+5K3sJGrOpYW2pOxK yz2kNDDQh5BX/1RZJo+ruQexxNQTHRrNVtbdNhSOj3a9RyI/n2OUCKW39W3c8Cj7cNkX DUIO7nLXgG41CNa0Eze8ghFd9LmYek1Oy6hCxRCBBEV6as4NA4z3FgRCVCcZ8jpW8H4a rdkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GJW7fO3TRp9/eonI3VGRoOYKWLqpPl3tLzlfeTMjeYk=; b=ObnUUj4S+vEEKB0gwQvM065P+TPmGpUcY5PySe0mQSSo1folnsTMqZW6WI9pAELk28 7xS338xAZbHBQC40tQv1DMW8Rlw1CwzNKOcWJVXS1yka8OpC3IRLVYy3sGEZgIJDE+TO bZ+V0q+1EcCJH1Hg0PpekEgxQILDGOUwSqoJyliX6me82tF5JeD0pqBIUVRssu0Wia2V rjkYyQXg3gPU0HsLAY0Jokpk+YJSzfmkJdaEw30QWPQob0c1F3iIFpyRoeuk3D/9R7sG BS8yTmsnOUt8ehl8Xvr8jHcDJBhn3hngSCXLt0t58n1KxbNvXR9zag2GJxkeavJ+LLi4 CODg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q6z5h0Xl; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com. [2607:f8b0:4864:20::b36]) by gmr-mx.google.com with ESMTPS id l15-20020a170902f68f00b00178112d1196si97688plg.4.2022.11.17.09.12.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 09:12:01 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) client-ip=2607:f8b0:4864:20::b36; Original-Received: by mail-yb1-xb36.google.com with SMTP id c15so2644750ybf.1 for ; Thu, 17 Nov 2022 09:12:01 -0800 (PST) X-Received: by 2002:a25:c057:0:b0:6e5:1bd8:8b24 with SMTP id c84-20020a25c057000000b006e51bd88b24mr3010226ybf.270.1668705120174; Thu, 17 Nov 2022 09:12:00 -0800 (PST) In-Reply-To: <14f84699-724f-4483-8fe6-1845d1fe81b5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q6z5h0Xl; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b36 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:31769 Archived-At: --000000000000ec499405edadaf96 Content-Type: text/plain; charset="UTF-8" Create a template with only the ToC generating stuff: ``````html `````` or just the last line but one if you don't want the nav element and title. Save that to something like `gen-toc.html` and invoke pandoc with `--template=gen-toc.html` added. You might want to place the template in the templates subdirectory of your pandoc user directory (both of which you may have to create; see `pandoc --help` for where) so that you can use it from anywhere. Den tors 17 nov. 2022 17:49Craig Parker skrev: > Is there a way to generate JUST a table of contents? I can probably hack > up a file with bash after the fact, but didn't know if there was a way to > redirect TOC content to another html file. > > -- > 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/14f84699-724f-4483-8fe6-1845d1fe81b5n%40googlegroups.com > > . > -- 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/CADAJKhA2MfhXh%2B4hiE7H1DtWyupDXVqx5KC-qCLiS2G%2BUoSx1g%40mail.gmail.com. --000000000000ec499405edadaf96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Create a template with only the ToC generating stuff:
``````html
<nav id=3D"$idprefix$TOC" role=3D"doc-= toc">
$if(toc-title)$
<h2 id=3D"$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
=
</nav>
``````

or just the last line but one if you = don't want the nav element and title. Save that to something like `gen-= toc.html` and invoke pandoc with `--template=3Dgen-toc.html` added. You mig= ht want to place the template in the templates subdirectory of your pandoc = user directory (both of which you may have to create; see `pandoc --help` f= or where) so that you can use it from anywhere.

=


<= br>
Den tor= s 17 nov. 2022 17:49Craig Parker <craig.fossfolks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Is there a way to generate JUST a table of contents? I can pr= obably hack up a file with bash after the fact, but didn't know if ther= e was a way to redirect TOC content to another html file.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/14f84699-7= 24f-4483-8fe6-1845d1fe81b5n%40googlegroups.com.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhA2MfhXh%2B4hiE7H1DtWyupDXVqx5K= C-qCLiS2G%2BUoSx1g%40mail.gmail.com.
--000000000000ec499405edadaf96--