From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18509 Path: news.gmane.org!.POSTED!not-for-mail From: John MACFARLANE Newsgroups: gmane.text.pandoc Subject: Re: table-of-contents vs toc behavior Date: Thu, 2 Nov 2017 12:27:15 -0700 Message-ID: <20171102192715.GD18456@protagoras> References: 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"; format=flowed X-Trace: blaine.gmane.org 1509650823 17356 195.159.176.226 (2 Nov 2017 19:27:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2017 19:27:03 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBAHD5XHQKGQEL5YN2EA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 02 20:26:59 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io0-f192.google.com ([209.85.223.192]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAL8b-0003ST-SA for gtp-pandoc-discuss@m.gmane.org; Thu, 02 Nov 2017 20:26:50 +0100 Original-Received: by mail-io0-f192.google.com with SMTP id e89sf1303691ioi.16 for ; Thu, 02 Nov 2017 12:26:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1509650817; cv=pass; d=google.com; s=arc-20160816; b=D/xl5imHmX/2N5pTqFo2JgLd1/Vb6gXy1KKcgjJzpHGRNvWGPVl5qDGHN9K/og9ujF m5F+dbKlgoUnQIyIpA5mXfpd02XReGx1Jk07p7QIiEqfmDkcywFNt8IPt62rc3vV/eCk s29N4Q0UnaJdb/vpOxqOdQJTCZw1Iwp5GJmGfquILStrFb5O1pwHkVwexP+Sbb+r3N7J YyR1Ot9m4Wz8fCejilktC67xWZ2Tjgts6rDncXCYWjmQpdcUV5ynD1n4imSgeupQ1Aqm bg7ZTWXtQb9j28zA/wyCNC9age6qmG7si7NeU88FTUysVQmgMY7KWmvUolsl/BYx8h1e EjbQ== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=C94DIfpgoNU1rYaNw8ITyqEIW5ym82+kiifql8nhpdg=; b=Bix9ah3jUD++yA8dlfAajTEQIBeg7WU2pPH1xnRzBNpiAGtEYp/XvntdCxvfBbA9De 4qkHcjReJTOsZ6NO5kEZTm8nPKd/aKfLj3p1p96k3FF00RdQiQymk3/9sLI9IRRNWvuO gJjobNAbt/LX5/RLQYYYgp2Um+r9bg7hGxTu6Ey0tYXf/uWtv3qVp8B8XXpELaZDVbkT danyuK062qyk9mcnAahuD+RyJpkq3jW1OKTHAXeYDKwrCgnP8+uzqeKtUPhJdAV4G5lx b0eusVimOgGqJHDcctsBj0YBq/RwAADYTAqe2WYYvjoX+3OyKAWwZTWdoP0iSHQkIymK ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=MwI0MrXE; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e 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:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=C94DIfpgoNU1rYaNw8ITyqEIW5ym82+kiifql8nhpdg=; b=jJj8m+VnetPOP5zDZiw4O0X2wZ4MqKfAr7RS+Y9kYTt96Vblk19KtmhFQl0P1DdC7n INuSsIsEDuwtSvOW0AUHB1b1eCRpe2gx1EDMY1X/2nbGNhKpgkhGbktjPE/NllEzoTzj SSsFWWyIb9dYLOec0dFtsqPFq4qhoZKKgB1/wKDxsY8ZDCZAJhL8t5z/5dviF4BcpvAB mLUsBx7LVupeoau7aDBLnSjLB9fVNn4rEIuhfXkYlMJRFku5/4fURJE2dOKDPKNJxxAD Gcz1NTaCyeb/BW4mMpVUKQfkTElfx7pJQ8/c04+hQU2BtVHpPHfEEd1aTQJxXWcAfIBC RWpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=C94DIfpgoNU1rYaNw8ITyqEIW5ym82+kiifql8nhpdg=; b=ghYo2Chzeqq12KQ8s5WG3Ht/blwYS4yk/k0vVjGz44BubVyxSAaPpPz8e1WwNycSiV oxushzezROqD02RA4ouInRU+9I6h3BhIgFCL2t3yQhHW+XjTx0ooDB2C3BqYFF7Nda+B H335fBaxaDzy96zpN6ERT+vgDZTI6h+Y5kJhtIT2HJ1QCc2lsURRuTnxZiGzOYdebIp3 3vMwy8H91Xq8Fg4J9wH0R6Sih6ab3+Fz1wmGABI2nAQ9QFp1MIpz04udJF+65f9nG5aT XFED+BPD/XXVwoPx8utBLb51irE9ZVL1yqRMJwOfTfhUEOPAPSpHKrTwg87gFmG0Jyj8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaUfRD4gMDYPgIRTikxfyldwyjrluVaViftIlz4rhoIb2H3B10Kq 8j72uZuKz/Jd0g1oUaCMV0s= X-Google-Smtp-Source: ABhQp+RWNVTwrmYm/6LW0As4ttMlxgvR5U9eN56utunLJPphR2eFmyMG2R6OSQNhohOl/Cp9jl1hAg== X-Received: by 10.36.0.209 with SMTP id 200mr72834ita.3.1509650817234; Thu, 02 Nov 2017 12:26:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.98.163.135 with SMTP id q7ls1278835pfl.5.gmail; Thu, 02 Nov 2017 12:26:56 -0700 (PDT) X-Received: by 10.84.130.106 with SMTP id 97mr1168503plc.49.1509650816191; Thu, 02 Nov 2017 12:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509650816; cv=none; d=google.com; s=arc-20160816; b=nhF2PJzqfxE+Vz4vvr8bL2f99QM4SNF/xWjechsfcL5RJrcFQxcV4DR2CZO/zynfyw ALNaoS2FORTRtJ8NhLUsIewTzpvs115IRu1FAtzpF6dL4K1/IqK+/cOszbvrSxa4saEA EORvNaZftN7uk4Z/XYcmpypYElQn5qcV4H871N8+vfybwMHMHGp7XuN6nV6B89MpM1Vm BQMQ+l/hpHlTee4QQDQxDSl+uQlyMcFMeBH6HZnDca/vX//LbFa6qIz8lZA+wCdqdOI0 uZhfYCFStnABZhOyIylKBX5oygwDq2/q1RIGiBxqVvWilu6+yxIrSf7hB8G9sRjPBWSl btCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=IitH0KwJqnRCf/gCl/HcXHY1k1SXnLR0H9HfhEkpQfI=; b=Yio0YiFAZlh0e1WU7RRSHX4Fe2aqs/eYNn6e4TNSE3sFZwvSBv89mLZbJfqW2tQDjZ /ohmNrBE58TSvB3OYlli6dtzLn+3wOZe1Gv2PTzRiNpispQuIVPQpuv4fxEZx+9Hj1Lf +/IleAbGyDN3opXVLO2mNiHUDYQ5b0CU/sXrxb/T4XByb/ssTDBkZK4VR9bTxyIgBStx T6L2H9jG8AbnmAGKoB8hqw9hxmWzaF+hfogDS+IaNSNX8KZO3yc42HltR/8jjvSlcCPL +b9Eo3eyLFuwqkd9lQzst4HCyGjh7y+YRsC1fhLHl8A/fqTb2RMPXIgFnvekMmyTPpVq KOVw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=MwI0MrXE; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x22e.google.com (mail-pg0-x22e.google.com. [2607:f8b0:400e:c05::22e]) by gmr-mx.google.com with ESMTPS id z123si350336pgz.5.2017.11.02.12.26.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 12:26:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e as permitted sender) client-ip=2607:f8b0:400e:c05::22e; Original-Received: by mail-pg0-x22e.google.com with SMTP id a192so461091pge.9 for ; Thu, 02 Nov 2017 12:26:56 -0700 (PDT) X-Received: by 10.84.240.140 with SMTP id z12mr4350789plk.328.1509650815496; Thu, 02 Nov 2017 12:26:55 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id f24sm8659134pfk.183.2017.11.02.12.26.54 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Nov 2017 12:26:54 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 8B23FA1C5; Thu, 2 Nov 2017 15:26:43 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc 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=MwI0MrXE; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e 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:18509 Archived-At: It's not enough to set 'toc', you also need to set 'table-of-contents', since this is only set by the writer if you specify --toc on the command line. I suppose we could change things so that table-of-contents is populated if the 'toc' metadata field is set. +++ Piero Grandesso [Nov 02 17 15:38 ]: > Hi all, > I have some problems understanding the correct behavior of the > variables --toc and --table-of-contents. > As per this commit[1] I would expect that I could enable the generation > of the table of contents by simply inserting `toc: true` in my YAML > metadata block; the table of contents should then appear in my template > when invoked by `$table-of-contents$`. Is it correct or did I > misunderstood something? > If that is the desired behavior, than I think there could be a bug: > with `toc: true` specified in my [1]example.md, the following command > will produce an HTML file with an empty