From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/21840 Path: news.gmane.org!.POSTED!not-for-mail From: Axel Rauschmayer Newsgroups: gmane.text.pandoc Subject: Re: Chapter TOC via filter? Date: Thu, 10 Jan 2019 15:58:32 -0800 (PST) Message-ID: References: <1bb6e5f4-04ce-4209-8223-f928f2943998@googlegroups.com> <4f0905e3-c55d-4d97-958c-8478ada10bcf@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_567_1951465248.1547164712826" X-Trace: blaine.gmane.org 1547164587 23952 195.159.176.226 (10 Jan 2019 23:56:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2019 23:56:27 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDYNJWVNWQLBBKNY37QQKGQEGKT2NOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 11 00:56:23 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghkBT-000679-8s for gtp-pandoc-discuss@m.gmane.org; Fri, 11 Jan 2019 00:56:23 +0100 Original-Received: by mail-ot1-f58.google.com with SMTP id p4sf5346234otl.10 for ; Thu, 10 Jan 2019 15:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=+yWagiYojy4RohKfHKwS+j4m3WKCbcuD8GxTa2dWTKg=; b=dCUF/xvBbTsd3DMBfijRX8u66WtjLAu2Uw+VaZdCYfkAkjko/YqimOCalTwhBjRcLP 9yMyTuMimUMUrBg/WzFWWjE1o8ZuRAd950wzFntxIWprrHk3cxee7iGUXaMdwyzTjOLU XURM0Y9Y3A3t1pogknMla2INNmVnS5RWLHLlmJgQAeQUG1SIC/8sYVsflRBQVrKXy1UY yFY534ykclcsd78rKkeF9o8hB+3sfDuYJFte8i5OYIGaYJuwzMsls4IKdSc6qOqa1khH L3tmQIia0OzTRIztxIV4GGCtiiaMnhK0CX6/6yfO7n5tIZeGXvQvWFUDwNvJNSb2Xrqe RbsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=+yWagiYojy4RohKfHKwS+j4m3WKCbcuD8GxTa2dWTKg=; b=abHVrgCXnGYEaIxqXYi3WpiB+PUw98ZOxyIaB3LQ3ybYtO6m0JMxb7VXn30SpeUyqQ H+yKZ87x2U66k+kpHMnEWubmP26U5gFCeztpEbS7B+pZEqbcKFokChloIusN7T2WhTaA LK4NbKqnGuczWmud7PIRJLoneUKaAlJxE0oxsW2S9698RII00XpcA1id6uEbwHLmh73b gFlltpO/3+L4Q188Bn7N+l3ZP4KYwyY2NBflJLteWaXArSoqUZs5r3QQJ26KVfz/7Rrv ub2Y8c4dEKiggvr5t6S+DLD0K28SIvCsnkaTMjQvrK2F6I8QzY/4HKlKmKsKmOCmWxhf nSEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=+yWagiYojy4RohKfHKwS+j4m3WKCbcuD8GxTa2dWTKg=; b=TWSKfeCelm7O3POYQQpQD2/gTFacNV1bczrilPJWSC/KNkLk4brp28yifsk4ilmqiW QcmwZQaWsmGQMpFQ/vtrlcucmPE87oOCuCxHH5FmRwfDpd2xxk73J97TnZzxuYYJMJSH en6q0r/XyYZySPjjY0lpRVYpJSinxMW06hWYY3/un7OQEUFCb09vm3DtvklTQRji6t6H ZlbSKxFdfNRLiCQ6ts6kUzce3+F+cr3ttV5B2PL1NzvqUXc6wZLdG8Rb02vTLRU2pzqX CYf6JnbuQU+hKIXAkOpcoMjfg1X/R72vcaXWGdkFekqf53OtrI+dqTsT9gi7RuJv0o+L rOpg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJcUukc1d1Yr4ibOJFb5cvE1CiUBCHP+yEmC2C5j2FizjB6bwGIT89/d 44PIW6I1BCBUTN57lymbZ+c= X-Google-Smtp-Source: ALg8bN7cLSfS+GNDbzaonR30XZu2GkzrRoO+psrRUWzfvn5s8XyUA8/ZFRlJUGv0aLalV1LaZ07YhA== X-Received: by 2002:a9d:da3:: with SMTP id 32mr153329ots.3.1547164714129; Thu, 10 Jan 2019 15:58:34 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:bea:: with SMTP id 97ls1495002oth.8.gmail; Thu, 10 Jan 2019 15:58:33 -0800 (PST) X-Received: by 2002:a9d:7310:: with SMTP id e16mr90532otk.7.1547164713482; Thu, 10 Jan 2019 15:58:33 -0800 (PST) In-Reply-To: X-Original-Sender: rauschma-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:21840 Archived-At: ------=_Part_567_1951465248.1547164712826 Content-Type: multipart/alternative; boundary="----=_Part_568_474195199.1547164712826" ------=_Part_568_474195199.1547164712826 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Alas, that still doesn=E2=80=99t give me part numbers for HTML. For=20 example: http://exploringjs.com/impatient-js/toc.html I=E2=80=99ve written the following filter which mostly does what I want (mi= nus some=20 polish): https://gist.github.com/rauschma/7f631cacad55b8b6c920b9334f711244 - For LaTeX, I would track section numbers and generate the chapter=20 TOCs the same way. But I would leave the numbering of headings to LaTeX. =20 --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/e9ec0801-2490-4119-88cd-74adbcd9afe6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_568_474195199.1547164712826 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Alas, that still doesn=E2=80=99t give me part numbers for = HTML. For example:=C2=A0http://exploringjs.com/impatient-js/toc.html
I=E2=80=99ve written the following filter which mostly does wh= at I want (minus some polish):=C2=A0https://gist.github.com/rauschma/7f631c= acad55b8b6c920b9334f711244
  • For LaTeX, I would =C2=A0track= section numbers and generate the chapter TOCs the same way. But I would le= ave the numbering of headings to LaTeX.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/e9ec0801-2490-4119-88cd-74adbcd9afe6%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_568_474195199.1547164712826-- ------=_Part_567_1951465248.1547164712826--