From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23544 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Count of San Francisco Newsgroups: gmane.text.pandoc Subject: Re: Figure or Tables in form of table of contents Date: Mon, 7 Oct 2019 17:11:43 -0700 Message-ID: <04b3560c-8ca8-e5a7-9630-e367a4c3c3c6@gmail.com> References: <55c8e76d-a127-46ec-ac3b-5c24de9fb9ce@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="94121"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 To: John MacFarlane , pandoc-discuss Original-X-From: pandoc-discuss+bncBCSO3MHN4UIBBQ5I57WAKGQEPSCHYLQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 08 02:11:50 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk1-f189.google.com ([209.85.222.189]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iHd6T-000OKX-C3 for gtp-pandoc-discuss@m.gmane.org; Tue, 08 Oct 2019 02:11:49 +0200 Original-Received: by mail-qk1-f189.google.com with SMTP id w198sf16821781qka.0 for ; Mon, 07 Oct 2019 17:11:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1570493508; cv=pass; d=google.com; s=arc-20160816; b=sGcwkogtoHaUy+K+3v+U/7t/3WOph0pZusp4+pZDKt1soBj57zUSFdCobv4GPfU4zt jmW2vQsqukLT9tjdn7RVwdcgmbYYzL14EnLnnVm1ZDRFGpZ552X+6ByYUoExn1vP+jvA 2rTcoNEf3fgbPtAy0W84gkVVZBRkDWpwO8jLRLQto/4SUlekbCWTsJ2DzjmSIV0LReuu TkdpE0JZUM/fFTwxorcQZNOY835xWCgriBs604qRYUx8DEHepyYweWXUCgoPN2NgUgNb Z3Zdgt1d3bobaIB/dRdMpu2+ZflevxK+Ku/QbSzu5D4y+t6rjoo4i7go8BLAkd0YKybD ipMA== 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-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:sender:dkim-signature:dkim-signature; bh=Shaq2O8kC/QAYSy/jS0Tp+RUx639OjWCI1nOVThEoLA=; b=QtND/agBT3GELI7y4eShpfrD0gDJj/udMmll5TqhdsH4J1qCdz86gacNK+xBAQy4bR F1Tnnp6TXjqQmeHKcWevsZylMTqCFjvk0OOtPHjyaBg5Di1fSZpi3e6ZshasTG5qv6kZ Vx/TBtLoEMSIJXWX5nN+xw0to1U4KLAVAx0VUO67+LhqnXWovwMvgEu0cg4sH7W6K/5m EPHO91Tww8IzgWYpBIitIQX77bSrRqyytIXry6jWcrjyBrlVtkn8HDqpZCXG2YznmsJF eIJQv6qFJ5duIfHkOxfvbvGsGbT2tLIcq246+9D/xzMBMGHqT5hBx11VHkezxu15QA/0 euuw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p+rMeXbr; spf=pass (google.com: domain of countofsanfrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=countofsanfrancisco-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=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language: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=Shaq2O8kC/QAYSy/jS0Tp+RUx639OjWCI1nOVThEoLA=; b=qnzYkzldhRSTYOugoktifZNepkCGDEgz/Z36dNEXjng5nn8qhlKdEhA7GHgW2nXR2w QV3nVzPIC+p84JAswpP67PFLZQpsBHGrETqEpLnvRp1X/KC1jgMdXQf5fVbNUNAonlL1 1KJ46O1SCTsvSWceFwk3KQIZipmmNyU+uwO7V0nFxvcHQGejM6nmIAXLEhbXek8BEgaK FnQzx1Dexen+QsNx7UfD9qwqzIh3GdqdX4/mhWoj0HL3JJ8j4mGONSWLhe4/RkL8zJm+ c/EHwxuA2BVpKTbp8660eC3192/IarUfGmBE2OvY6ppGAbyg++S812yxu02N5RZ0CYOI QInA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language: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=Shaq2O8kC/QAYSy/jS0Tp+RUx639OjWCI1nOVThEoLA=; b=B5Y5wPv38V1FSJTyDsEPl7nbUtntQLaGJsKRbAJ56vdTZns0BJVqAzfUfFc2cBtGSp 1jZdPmr7GQ18RYtrZE/Cjx60pjeJuUtVUaXivvXu0C2okatY8M3tKxBoQHNPSUmhqIhg xTafRev8PAk4AzbE6RwE7bkifhDaiks/8nTsr+vH6FA+53nWWxtauqTL0G3Aef4NJGsN Z4soz4F/isQa2mU7InaCdegK9aoSGCCQN2r4x1CCp36GMNb1580sGPsaL9OjawcBnXLx EDkJof1RfObP2IrgluHaGCHLe4sEiahBmL8X4bLxOmZ09bUZgZXlA4lHmNJvdnCwyRx8 35oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :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=Shaq2O8kC/QAYSy/jS0Tp+RUx639OjWCI1nOVThEoLA=; b=Tn24NlucfJNyA4BHiPS3mRNgEWZEEfYdEJTbKzB6j3qLNd8Qg87z/t+UAARB1yFFB1 uO7THY4rJXXrh+YNCOn2972Vk1MjCvYK3tS3fE4ZcXs1mbFFh+x1n03ewDKeJXcIKd/U N4ZXarhMS4XCiDOB28lFnLwzscalHacH5bBLgf2hg6S+H8gFsxMj/Up/xVNwzaqmj3rw d/SK34Ab4vFIPbZh+5knH/DOgWkyGUZz7JadZilc1v89FKGDOK4d0Qs7+6g2OOD3kmER Cpt4zbvUOf+qB93MHTVKCIppv/Atp0Xg82LI8ywlvmsl2S5dYmdj5sE5zZWcUlVS6p1A Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAWSRQtAo9UvDxDFnycTNreDIgf83qS8gki2Lc+bXhdKNfUy4bl9 XyPuQACMvLgetQ3GkCxa0ek= X-Google-Smtp-Source: APXvYqwzqUsjj8Wvr3veAG6PBTpVG7LRoe7dYgfex2xTKTB7AvGQJYcdyAzcODY/61gBXjuweIACEA== X-Received: by 2002:a05:6214:282:: with SMTP id l2mr29871437qvv.74.1570493508200; Mon, 07 Oct 2019 17:11:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:19c7:: with SMTP id s7ls542199qtk.10.gmail; Mon, 07 Oct 2019 17:11:47 -0700 (PDT) X-Received: by 2002:ac8:347b:: with SMTP id v56mr33947906qtb.49.1570493507148; Mon, 07 Oct 2019 17:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570493507; cv=none; d=google.com; s=arc-20160816; b=C3PoUsZ/jLB68dC4wIBCrw0RzZLLu+3C/LnVzeFulCkBpad68TLVNUWorxHpj+p7Vl l+X9tbqKYJJQdaoTnffuV9cWyXRcf4vaZSVWLUCcCemsOkTEpbUN3OM1h1lsAlsDv9t+ /Y3RPQjz/d43b/mBrv3ySSvYBf6mdF1LPebxNpXI96vl3jPPxpNycXaBwAkpgQi45Gup mabf1kKQ1JyT+KDTVezivac2EnjyUczwKc/Qdqc9Iqr8UBqdZojyOC/wdk9E+O8b/Ff1 gMv1MlbU5OuPcU4J2O38yhP1jHQuGrop6vptNvl8/V/UY1OPKzii7J799yuhizQY9X67 29lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=XWBX3Sa5dBfem292PqwMVjDukaKy2xg4qVouLDeMHAI=; b=a4lPy02xf8xO8HFz/P+P2Idxkqc2OxOkKbZduWnEjJQbFYby0r0rSUOAuXcZ1Bw8xD 1Dkt+3oPhUoKszibAWbhiSDTk+JkY8dzHSRA+g6aw8HDgi006+WQG2BiKM24VSgCwCQg qflvfw4TuLQ+FJvjCqWzuxpgwDUAVx+AFI/i7fWemvyFQ5D6eDC8gedgu9XyH4hXwONL Rc0JNsy8jOrjcUazf2zlbaxtp2pClzywstG0HouQYnxSMqdGAIk33NA7BLlpn3cgV8yD hKiJVxXeZOOXdvt1jSagXLxZlB2KHoRszuL0bZNoGT69THh/+VtS3oMgKDk76K+HfGrv l2qw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p+rMeXbr; spf=pass (google.com: domain of countofsanfrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=countofsanfrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com. [2607:f8b0:4864:20::42f]) by gmr-mx.google.com with ESMTPS id u44si1592678qtb.5.2019.10.07.17.11.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Oct 2019 17:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of countofsanfrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) client-ip=2607:f8b0:4864:20::42f; Original-Received: by mail-pf1-x42f.google.com with SMTP id y72so9652088pfb.12 for ; Mon, 07 Oct 2019 17:11:47 -0700 (PDT) X-Received: by 2002:a62:e817:: with SMTP id c23mr1116450pfi.230.1570493505851; Mon, 07 Oct 2019 17:11:45 -0700 (PDT) Original-Received: from ?IPv6:2001:420:281:1330:319f:7737:bae4:529e? ([2001:420:281:1330:319f:7737:bae4:529e]) by smtp.gmail.com with ESMTPSA id n23sm198462pff.137.2019.10.07.17.11.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2019 17:11:44 -0700 (PDT) In-Reply-To: Content-Language: en-US X-Original-Sender: CountofSanFrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p+rMeXbr; spf=pass (google.com: domain of countofsanfrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=countofsanfrancisco-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.org gmane.text.pandoc:23544 Archived-At: Hi, Since MD to HTML and PDF are my main use cases, perhaps, we can concoct something like for every or

with and id attribute that starts with "figure-caption-" or "table-caption-" be used by pandoc to create the list of figures or list of tables. The user, if they chose, can embed an "" or "

" tag in their MD. For PDF, latex really doesn't cut it for me as it doesn't handle CSS well (or maybe at all) and doesn't handle tables very well when it is being converted from MD. This would be a nice improvement for Pandoc. Thanks!! On 10/7/19 4:20 PM, John MacFarlane wrote: > For PDF (via latex) you can set the `lof` and `lot` variables to > true, e.g. with -Vlot -Vlof on the command line. > > You can also use raw tex \listoffigures, \listoftables. > > For HTML there isn't a way. At this point we don't even > automatically number figures/tables. It could be achieved > using a filter but I'm not aware of one that exists now. > (Looks like pandoc-crossref handles numbering and references, > but doesn't do a general lof or lot.) > > > Count of San Francisco writes: > >> How can I generate a table of content for figures (a.k.a images) and a >> table of content for tables when converting from MD to HTML and PDF? If >> this is not possible in pandoc, today, can you please make this an >> enhancement request to Pandoc? >> >> -- >> 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/55c8e76d-a127-46ec-ac3b-5c24de9fb9ce%40googlegroups.com.