* Figure or Tables in form of table of contents @ 2019-10-07 21:54 Count of San Francisco [not found] ` <55c8e76d-a127-46ec-ac3b-5c24de9fb9ce-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Count of San Francisco @ 2019-10-07 21:54 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 656 bytes --] 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. [-- Attachment #1.2: Type: text/html, Size: 1001 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <55c8e76d-a127-46ec-ac3b-5c24de9fb9ce-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Figure or Tables in form of table of contents [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> 0 siblings, 1 reply; 5+ messages in thread From: John MacFarlane @ 2019-10-07 23:20 UTC (permalink / raw) To: Count of San Francisco, pandoc-discuss 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <yh480kftk42ldx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>]
* Re: Figure or Tables in form of table of contents [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> 0 siblings, 1 reply; 5+ messages in thread From: Count of San Francisco @ 2019-10-08 0:11 UTC (permalink / raw) To: John MacFarlane, pandoc-discuss 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <04b3560c-8ca8-e5a7-9630-e367a4c3c3c6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Figure or Tables in form of table of contents [not found] ` <04b3560c-8ca8-e5a7-9630-e367a4c3c3c6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2019-10-08 6:29 ` BPJ [not found] ` <CADAJKhDJDLQiu3eZLPG46DENe57F9CW=FCN=zLG7+zH_OAAR3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: BPJ @ 2019-10-08 6:29 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- 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 --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CADAJKhDJDLQiu3eZLPG46DENe57F9CW=FCN=zLG7+zH_OAAR3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Figure or Tables in form of table of contents [not found] ` <CADAJKhDJDLQiu3eZLPG46DENe57F9CW=FCN=zLG7+zH_OAAR3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2019-10-08 16:12 ` BPJ 0 siblings, 0 replies; 5+ messages in thread From: BPJ @ 2019-10-08 16:12 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 3827 bytes --] I checked and pandoc-crossref inserts a list of figures/tables/listings in all formats at the point where you put a paragraph containing only `\listoffigures`, `\listoftables` or `\listoflistings`. See < https://lierdakil.github.io/pandoc-crossref/#lists> and < https://lierdakil.github.io/pandoc-crossref/#list-titles>. However it seems like items in these lists are not linked to the respective figures etc. but in HTML you certainly want them to be linked! I've started to write a filter to take care of that. Hopefully it will be finished later today or tomorrow. Den tis 8 okt. 2019 08:29BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev: > 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/CADAJKhA_p4KeG%2BkER_q-CjVzSrgrXNu67O%2BZHaD8bTQvUEk5Qw%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 6021 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-10-08 16:12 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-10-07 21:54 Figure or Tables in form of table of contents 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 [not found] ` <CADAJKhDJDLQiu3eZLPG46DENe57F9CW=FCN=zLG7+zH_OAAR3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2019-10-08 16:12 ` BPJ
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).