|
From: Guenter M. <mi...@us...> - 2020-12-01 09:48:06
|
On 2020-11-30, Thomas Krug via Docutils-users wrote: > Hi there, > I'm using docutils to generate latex which works great. > But I stumbled upon a problem with TOC generation. > If I use publish_string() the generated tex is correct. > If I use publish_doctree() then publish_from_doctree() the generated tex > contains an additional list containing the TOC. Thank you for the report and example. This was actually a bug in the latex writer - not ignoring the Docutils-generated ToC with use-latex-toc. (The "Contents" transform skips the generation when the "use-latex-toc" setting is True, but this setting is unknown when generating the doctree with publish_doctree().) This is now fixed in the repository (r8582). Thanks again Günter |