splitbrain / dokuwiki-plugin-dw2pdf

A fork of Luigi Micco's PDF export plugin for DokuWiki
http://www.dokuwiki.org/plugin:dw2pdf
55 stars 68 forks source link

Feature : add a minimum sections count for creating a Table of Contents #454

Open jeffchulg opened 2 years ago

jeffchulg commented 2 years ago

If there is only one title and 2 or 3 sub titles, then adding a toc is not really necessary.

It would be nice to have a parameter that tells dw2pdf not to add the toc if so..

Klap-in commented 2 years ago

There are settings for manipulating the ToC. Please see https://www.dokuwiki.org/plugin:dw2pdf:configuration#table_of_contents Does these fulfill your needs?

jeffchulg commented 2 years ago

Hi, unfortunately no..

I'll give a try to explain...

Let's say I have following page:

<Title>
<content_no_title>

To me, there is no need to generate an almost empty ToC ... It's when the page starts to have more contents that it's a good point to create ToC. Eventually, having two buttons... one for generating with ToC and one without could be good enough...