pombreda / txt2tags

Automatically exported from code.google.com/p/txt2tags
GNU General Public License v2.0
0 stars 0 forks source link

Option/macro to set the TOC title #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We can see with 
http://code.google.com/p/txt2tags/source/browse/trunk/test/art/toc-macro.t2t
that try to have a title for a TOC with a level 1 title is a dead end, because 
when you don't use the --toc option, the TOC doesn't appear, but its level 1 
title is still here :
http://code.google.com/p/txt2tags/source/browse/trunk/test/art/ok/no-toc-macro.a
rt
http://code.google.com/p/txt2tags/source/browse/trunk/test/art/ok/no-toc-macro-s
lides.art

Conclusion : we need to bind the TOC and its title.

Proposition : a title parameter for the %%TOC macro : %%TOC(Table of Contents)

Original issue reported on code.google.com by fgalla...@gmail.com on 14 Nov 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Nice idea Florent. An alternative (or complement) would be a --toc-title 
command line option, since we already have --toc, --toc-level, --toc-only.

Original comment by aureliojargas@gmail.com on 17 Nov 2010 at 12:35

GoogleCodeExporter commented 9 years ago
In r714, new option --toc-title (with art targets integration).

Original comment by fgalla...@gmail.com on 4 Jul 2011 at 3:13