Re: Additional List of TOC generated when publishing from doctree

Guenter Milde via Docutils-users <[email protected]> Tue, 1 Dec 2020 09:41:44 -0000 (UTC)
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
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



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.