From: BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Figure or Tables in form of table of contents
Date: Tue, 8 Oct 2019 08:29:28 +0200 [thread overview]
Message-ID: <CADAJKhDJDLQiu3eZLPG46DENe57F9CW=FCN=zLG7+zH_OAAR3w@mail.gmail.com> (raw)
In-Reply-To: <04b3560c-8ca8-e5a7-9630-e367a4c3c3c6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3102 bytes --]
Perhaps a filter which runs after pandoc-crossrefs and relies on the stuff
which pandoc-crossrefs inserts would be reasonably feasible. Unfortunately
I can't look into that at the moment but maybe someone else can.
Den tis 8 okt. 2019 02:12Count of San Francisco <
countofsanfrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
> Hi,
>
> Since MD to HTML and PDF are my main use cases, perhaps, we can concoct
> something like for every <a> or <p> 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 "<a>" or "<p>" 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 <countofsanfrancisco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
> .
>
> --
> 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/04b3560c-8ca8-e5a7-9630-e367a4c3c3c6%40gmail.com
> .
>
--
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/CADAJKhDJDLQiu3eZLPG46DENe57F9CW%3DFCN%3DzLG7%2BzH_OAAR3w%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 4615 bytes --]
next prev parent reply other threads:[~2019-10-08 6:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-07 21:54 Count of San Francisco
[not found] ` <55c8e76d-a127-46ec-ac3b-5c24de9fb9ce-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-07 23:20 ` John MacFarlane
[not found] ` <yh480kftk42ldx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-10-08 0:11 ` Count of San Francisco
[not found] ` <04b3560c-8ca8-e5a7-9630-e367a4c3c3c6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-10-08 6:29 ` BPJ [this message]
[not found] ` <CADAJKhDJDLQiu3eZLPG46DENe57F9CW=FCN=zLG7+zH_OAAR3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-08 16:12 ` BPJ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADAJKhDJDLQiu3eZLPG46DENe57F9CW=FCN=zLG7+zH_OAAR3w@mail.gmail.com' \
--to=melroch-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).