From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23136 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How can I create a TOC based on input files? Date: Sun, 14 Jul 2019 08:55:06 -0700 Message-ID: References: <9509e078-b391-49c6-8a60-8066e49f95dc@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: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="66621"; mail-complaints-to="usenet@blaine.gmane.org" To: Rudi C , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB2NAVXUQKGQEWOT2QXA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 14 17:55:26 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk1-f189.google.com ([209.85.221.189]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hmgqQ-000HAp-RV for gtp-pandoc-discuss@m.gmane.org; Sun, 14 Jul 2019 17:55:23 +0200 Original-Received: by mail-vk1-f189.google.com with SMTP id l80sf7119547vkl.0 for ; Sun, 14 Jul 2019 08:55:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563119721; cv=pass; d=google.com; s=arc-20160816; b=S5mMSm2vbrCNo6v9meeq5tt+XhHuLRmfensqTYTVZW0m6TJ+uNZVsp29GO/YXR3d8u 5Fi6DnEEKHevEBUFiyT5h5ZOkksNDhb/FHEhjMAw2mH6ExPhhE8ZKs/xPZ5Bmi23KHJP ZYBxFJ+rcjGo8gHPdD9cMiiicUmAuCb5dSe9qm2r4hydXA/lqVbTYDV5Jd/etW+Vz6AM 5d4Zs0i9e6Yn4uesbxbGW0PegN/eD+jqZDJ/DxhNHY+qyiH08WlYOq5cY5It2HB2pwIO 1ES0tXQLIbsyAbRr7guUVrSkE1ERaro4qUhnpQnPSlvRTpGVViieEaDzywaMkmMD+fRG Wc3A== 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=98+Pr93Nt0C5pqx6KVytVGhOiNpGtPDgwtWAvFXgm/o=; b=bbT5Esx7lS4QeSaa8yDG0FW3IAfRHm8nYvad86QAXrEqRXuNCyT3AzTaCHKHwEc1se muzrc/Kouni9QVaKJHVV5BnPB5M0vUKQPuYimtJtMDO/IVyx070v2wwHzsZpcrSdqR2w ZEIP8RKr3xKttYyIVbSRAPH+yTq8X93nGNxLEi3GuYo2Uh+WLQYsJW1p1mdALFEm/Wrz D9dvIgVKVcJ+7vKFuFlO9DCYIGIi59D2WHF/5mkO904M4vnMMHuAV+9TH+hY4QeW5M1t fsWl6UOl1Qoa/hqZsknqzEZ+AqJJtgBdLsQ3JljaShuTuNOm5N6nNYUHOa4gn2Tt4rBi XofQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="hJWdVn/E"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a 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=98+Pr93Nt0C5pqx6KVytVGhOiNpGtPDgwtWAvFXgm/o=; b=VXvVk1EhQcT58eDFCxofNrom3UsZK2/s9h9ctJ9bkAJoi5wAutZB49uM3Ajabp/srI kVtL6tF57vgf5oXanfJ2Mjl8WzHaS33M6tC3aezD939HXteAFHiikeGDS6Uq6daU2VF7 R2finkILP1BtmDw3K6a5crXFEsVGttoiXop5/2rsxds1ny7c2zPS9zqS5TTlZzjrivO4 75nWoJX1u8SUDKZtxNBLQsl8+eDVYB4x5QSXichMD4cDG/Md+yG4IDKTwoy0F7NyCMPt hOgZy3ETI65tCyOd2mGSPvNumJGt12j5taFR8cb/aTWZJJSnaYwXZzwEdOQwb329MQWu WrQQ== 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=98+Pr93Nt0C5pqx6KVytVGhOiNpGtPDgwtWAvFXgm/o=; b=P4KHtMctcGD6bVeGaK/ElhM9OOCdD3vshbeOXm00VN48vcQBUbqA8NBn8IAFWfCRJZ C/P1GsVDUy541pLFBjIPF0UY1ZJHRMk8vRYtBfBRVbJZxxYQtLKUjoy6vrcU8449hFSl PLA7jnMgtLfDyKGwT2tP1NDV4JulfZrDtRGHnPUC47fdFPunCwDOwZgjg+UKUdiO327B XuT6tEt8YYsioq5VKGGSbVGpFD+D9ehx0bKLEfO2HyeHDP022CCpdPdZgw3W7vVZKTdN zkisYt57hnPoeA2iCX3NLgzWxWo7q+7+Uc3FtOCrDKiSdJiyclEIIMFv+SdussFn0qkh Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAWLEVPV7IVJ7cg6IOP9CBT/EcW2x9QD+Mdmprk4P8aPMFmjyFWf hjf3UfVRWu+al7RfEN5KGhU= X-Google-Smtp-Source: APXvYqwuJLcLIXZw8v0MKJc1e+G3DVpeJBQGF2Qb5FsUn8s2weqvTh6UUmZ9E/0dtlRS8Ejc2O7wWg== X-Received: by 2002:a67:ea44:: with SMTP id r4mr14027229vso.86.1563119721675; Sun, 14 Jul 2019 08:55:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:f0dc:: with SMTP id j28ls1852850vsl.11.gmail; Sun, 14 Jul 2019 08:55:21 -0700 (PDT) X-Received: by 2002:a67:f74a:: with SMTP id w10mr13804700vso.42.1563119721134; Sun, 14 Jul 2019 08:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563119721; cv=none; d=google.com; s=arc-20160816; b=KCLUGSSvdDRjYnpZIqFrmvGIl29d9IdPrWFO3eOmaPMuZXweMnwSmKh2G5aHcimP4Z ezm9Y8cE4xegQWM4M9ZpMgNSb8ioAoCoeIwUtIoM3Ejii+X8+18BzIlCZKn7JJDH+pai 7VFmf4Tkf8GxdrTvzIHX+sbcEYWY92DbdtQr825NfE97TLrpkdRmOhtrr3eh5JZT9kHW Ztzgpk7CEPY1nYfEuWxNVey9xiBBC4j1PPahPRFDFwV97Eta5dkgtQi0D+7dErp9iODs rDWJDzJSXxQoPhAuVeul9oHsdYc+06gZsM0UJslOxttVCF6IStYyq+fNJG3D5oF/zZ2W uH4g== 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=3Pc4lyBpZqrBtRFyAHJefigtWCSgaclUgi+igoe2hTc=; b=REqNUVxqSusQ+OD7sxg2aOvwN4DrgTwaBI1xxqOR8Sz1srkGX2J/Ed2OwbAwY+3xZU oUzwMlOFX1ETXuXcSjAbQmNditCWfGDx0J2Quaw7kG2YP3bpkW9i0sKXrX5hngGeicxC tl9Nyj6t1pVT8pn5NSETE6+NZ4kfguGdiMIn29nr3W0rgpOeQH4g6iSj7e9ABpgzGLgc 9mtb/WshokH0MeKLJeq9ePJw8OB4zYgn3ijz4WkVBREZFeMn/rVTXlYt72o82iHcAaaR 194pR3KEkU/+BgMYw6YVPPca9i+AGuthn5Pkou+xROJJpfsji0YmDSBFQmtvVz5PTbyg F2AA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="hJWdVn/E"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com. [2607:f8b0:4864:20::42a]) by gmr-mx.google.com with ESMTPS id k125si815652vkh.4.2019.07.14.08.55.21 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 08:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a as permitted sender) client-ip=2607:f8b0:4864:20::42a; Original-Received: by mail-pf1-x42a.google.com with SMTP id m30so6305772pff.8 for ; Sun, 14 Jul 2019 08:55:21 -0700 (PDT) X-Received: by 2002:a63:dc56:: with SMTP id f22mr22502286pgj.305.1563119720101; Sun, 14 Jul 2019 08:55:20 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id s24sm15275112pfh.133.2019.07.14.08.55.19 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 14 Jul 2019 08:55:19 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 84159A255; Sun, 14 Jul 2019 11:55:08 -0400 (EDT) In-Reply-To: <9509e078-b391-49c6-8a60-8066e49f95dc-/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="hJWdVn/E"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a 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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23136 Archived-At: Sections are constructed based on heading elements. (h1, h2, etc. in HTML.) So, assuming your documents have h2s and not h1s, you'd need to insert an h1 with the title of the chapter in front of each html file. Rudi C writes: > I use mercury-parser to save web pages as clean HTML. I like to merge som= e of these pages into a single epub. I currently use this command: > pandoc --toc -s *.html -o fruit2.epub > But this creates an empty toc, as the files themselves don=E2=80=99t have= whatever formatting hints pandoc uses to detect sections; I=E2=80=99d like= to have a toc based on the input file themselves (each input file =3D a se= ction). How do I go about achieving that? > > --=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 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/msgi= d/pandoc-discuss/9509e078-b391-49c6-8a60-8066e49f95dc%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. --=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/m2y310a9wl.fsf%40johnmacfarlane.net. For more options, visit https://groups.google.com/d/optout.