From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/21822 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Chapter TOC via filter? Date: Wed, 09 Jan 2019 08:46:34 -0800 Message-ID: References: <1bb6e5f4-04ce-4209-8223-f928f2943998@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1547052285 19100 195.159.176.226 (9 Jan 2019 16:44:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2019 16:44:45 +0000 (UTC) To: Axel Rauschmayer , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB6GK3DQQKGQEM3YDXHY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 09 17:44:40 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghGy7-0004qd-Ie for gtp-pandoc-discuss@m.gmane.org; Wed, 09 Jan 2019 17:44:39 +0100 Original-Received: by mail-ot1-f57.google.com with SMTP id q23sf3215722otn.3 for ; Wed, 09 Jan 2019 08:46:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1547052409; cv=pass; d=google.com; s=arc-20160816; b=h9S4Q65QwkEVHHHjZpfXEnyHorVu+zTQeI3AWeEXYPZFTUoLh2btrlKlFNhQlmfNkD c09qOMNBcoNhWdRPsRs96ZKfZ64wIkT9JUrV8g580fH0Pa9qAvhCWb+ogO/eHDjip5aQ 4Hzv1Jfa6ckR6PiOsF0+AdBe6Uilsa6/d4SeyUq3VNewCvUgSjODP3eG93V/xjFnzR2n 7O7ebsHCbgPQlpcM7uHJL2oJa4zOsGGbgEFGKnwom/7Sj+asqI+i51Vu8EZ8r+sTOqcc UcfpEpHBy4sTWqutQXhki+n6DqTZ8WV8AX/TK8Xqmm+YR3migRGL0LzFrgvMhB2XMC23 9hug== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=pZ51qKKeTn4ykryh3teI+X5HJ1ubVzlq3wxevQgdXPY=; b=uMfGypS5VzdQnp1X6GCsbHV+kAW0Kr65okL+W7fy5E6zc6O413BSSma0bQk+hG9LUB mdMxBOwi4KFvnCMDFRXKL6mwk08dEk7rirY1PrFx7Z6nNDN4OoBkl8ZvVf7DS1spKTXO QsuNSgRsFS9EmEfZOFUEAEwjBc+ZN9Yk8xdJaRBMVcixjU/Akpr5EZJi1HSFzzjc/35v eS2gWVU5UKpXKxjRkbCti01sEWX+ly3Jgf7o+hxKocJuqMKwWLpvLFBOeDnwh2D1qvSS zkDPkRB4c456vnyycT+ll+tpDA7VwYp0eqBlGWoJCoYoB7IYrjZt+OoHU+yENN5CwDjs 7C5Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZUcd1O1c; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=pZ51qKKeTn4ykryh3teI+X5HJ1ubVzlq3wxevQgdXPY=; b=p/8QmpPzqVCIMD3QUU2wC7PlzcOD8nc+8OYRxrh0vWlV60RruB6IpIw5ffsffZYBJ4 hjEOdJF5jpbVS2v5s5NQSAo+YIni26wYTKmKDO4pj6voOPgniRwWYdxuyULsJC7Gabfc +70hCdGu0j+TGfW1kC9lTunZUpELU7AoWiJOSzDcjPaDZkOeEtrTdEAoxNuQwsgZqj0Z qjxEI0H3nhT1HxksTY6myXQ8WQHXVcYt2mG1m508BtXdb0cwnytl4hpwz9GUmaDYDwiR XXBpbVGMimCKxTPBtHEn+e/vq/yet6oFO1TUCQxbWZOwu+fRaMeEs3YC5L5Vwn0MaPLk HkWA== 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:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=pZ51qKKeTn4ykryh3teI+X5HJ1ubVzlq3wxevQgdXPY=; b=JaQleEsIdKbJz+nxPAGHT1Ok/WqSnF1BdHrbb1lH20dSwLBBKxdDShGb3QPu2tTujf ybmWZb/Hfn9BfmGWQgXXIZWRJfiVyHm7tBJxxAzAJCjMnAs8DbtYQVcJ2zTFgFmYgGk3 WsApWvKfQfog+KWrDcI+egX5nMDJ2GjeKAvMmGA1GbpjtfVkll/Ovx/plRKg0bXE4LzK 2XfBj1ZOt/B9OetEMUsHZGxG7k8FlmZDs5Nr3ma9jZ471X6DHYcs+b+V1rfdAt2Tdy7i A4hFmdZ9LofPTv5ca7pDPyyX9AxL7SJcRcpteNQBA+E5Roy8nle0pINiZLAEPbN1WxzN Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJcUukeMWtai5N/gOlyRb/gHGVtjuu5q3Cg/I2VfSfTrbdjn3x099v53 mk/bgX/ylLxGciLPsJbOUJE= X-Google-Smtp-Source: ALg8bN5bJSv200OYs+ug3boSqrJFH2aKzBRZeMdAnnoDSG7aY39RL4joz8Vtt+Ok00cNo9JZPa5kxQ== X-Received: by 2002:a9d:2c22:: with SMTP id f31mr48249otb.4.1547052409341; Wed, 09 Jan 2019 08:46:49 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:6046:: with SMTP id u67ls3713757oib.7.gmail; Wed, 09 Jan 2019 08:46:48 -0800 (PST) X-Received: by 2002:aca:b2d4:: with SMTP id b203mr1178498oif.57.1547052408323; Wed, 09 Jan 2019 08:46:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052408; cv=none; d=google.com; s=arc-20160816; b=JDHgzsiLQBuRRCy2Hi6R0titpBylRab0n1T8a64xSm/51K5hv9jY6jW2C4fmSfVutv ovS2F0Wm/zt0JJqRwGUYkf3e/nbu9zvhzmt1Y9BKUVW4suZF7TFOtNgYg2pN+ED8zKeX GW8s3stJKcdgRxX+ex4CmXSSbZ/ttVNUdZ/BxP6Lb7tIWWUcvl4JJTr62jWTOPhu6jAv p+td0gg9mqpf6Gsep/HeStsFJIosws8GAwGw+ufw20cuT5fOZVZoCTYs6GYH2xktkJNa 34Hjq+oreTlkUg8yWbD/fuuR4r11f5Mnn4FfwvNNW12ADW40+ys0PmEK8FHeZxDSnMfa s/rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=T1wsw3wfftk4ps2/mJ/pQ3i5tI6KLKfIi5Zy/8HAKog=; b=XgeA/z3jX9TGHomlJxRZe0b22L1+BO77VGyYx0kfOJ1IzB2ytm7SFuQsA4WB0GizNO pmBuEgL5SSnWTYmcF0jffRdhTRXjITmjf4CD36Kl4nHJQJpzVatJvjenSh2qAlIRdgHd ZteI8PgllSJDf2zHrV3hLnDQn4yIpn0cV7U9jZu9vhnyXT0ATHyHHfTh70g9eq8a30vL RoBZ8G6aK/fznoiJC+QHgggw2zXvfyQipNwFzilpy6sDGtHX6fmjcrjt1nweBjCjMUlJ iBRAGkQIRPtVxljHEKys0s4d6ZbncuZC4uaqsrnVX8CnjlisDmALyK+RUZlQWywG/7nA UQmA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZUcd1O1c; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com. [2607:f8b0:4864:20::536]) by gmr-mx.google.com with ESMTPS id v205si2889636oia.4.2019.01.09.08.46.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:46:48 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 as permitted sender) client-ip=2607:f8b0:4864:20::536; Original-Received: by mail-pg1-x536.google.com with SMTP id n2so3549227pgm.3 for ; Wed, 09 Jan 2019 08:46:48 -0800 (PST) X-Received: by 2002:a62:3241:: with SMTP id y62mr6625614pfy.178.1547052407564; Wed, 09 Jan 2019 08:46:47 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id v72sm55899548pfd.163.2019.01.09.08.46.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 08:46:46 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id DED5AA1F8; Wed, 9 Jan 2019 11:46:35 -0500 (EST) In-Reply-To: <1bb6e5f4-04ce-4209-8223-f928f2943998-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZUcd1O1c; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::536 as permitted sender) smtp.mailfrom=jgm-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-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:21822 Archived-At: Axel Rauschmayer writes: > - Getting the numbering right is challenging =E2=80=93 AFAICT, a filte= r does not=20 > have access to the numbers and numbering works differently for LaTeX a= nd=20 > HTML. Thus, I=E2=80=99ll probably extend my filter that numbers text u= nits for=20 > HTML, to additionally create TOCs (for LaTeX, it would only do the lat= ter):=20 > https://groups.google.com/d/topic/pandoc-discuss/N4Qv0Bvgt_E/discussio= n The hierarchicalize function will divide your document into nested sections with numbering information included (and section ids too). This is made available to lua filters. --=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/m2va2xvkwl.fsf%40johnmacfarlane.net. For more options, visit https://groups.google.com/d/optout.