Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.09k stars 959 forks source link

List of figures & List of tables with own page #282

Open JanKrb opened 2 years ago

JanKrb commented 2 years ago

Added "lof-own-page" and "lot-own-page" attributes just as the "toc-own-page".

linux-lukas commented 2 years ago

Would changes need to be made to automatically include the table of figures in the table of contents, @JanKrb ?

JanKrb commented 2 years ago

Would changes need to be made to automatically include the table of figures in the table of contents, @JanKrb ?

Just that I understand properly, you mean an option that there is no line break between the toc and the lof right?

linux-lukas commented 2 years ago

No. My point is whether the lof and lot can be automatically included in the table of contents. Currently this does not seem to be the case.

JanKrb commented 2 years ago

No. My point is whether the lof and lot can be automatically included in the table of contents. Currently this does not seem to be the case.

If I'm informed correctly, that's not possible, correct, but that would be content for a new pull request or feature request and doesn't really have anything to do with this topic.

brenocss commented 1 year ago

@Wandmalfarbe

cagix commented 1 year ago

I'm not the maintainer, but I'm wondering if one switch wouldn't be enough? Seems to me that you would either want all indexes each on their own page, or no extra page breaks at all? And wouldn't that also depend on the LaTeX class used, i.e. with "book" you would have a page break (automatically, right?) and with "report" rather not?

JanKrb commented 1 year ago

I oriented on the current solution to toc-own-page. For me a solution with two separate switches seems more convenient to me, since you might don't necessarily want all on separate pages. Maybe we'll get some more opinions on that?

linux-lukas commented 1 year ago

@Wandmalfarbe