Forum How do I...?

No TOC (Table of Content) Output via comman line on mac, but via gui on windows

zeix-admin
Hi,
i've installed the prince gui on windows and can generate a pdf with the toc.

i have a second computer (mac) and wanted to test how it works to output a pdf via the command line.
it works great, but the toc is not being generated.

Have not anything in the docs or forum.
Is there something i need to beware of or what could be the reason?

thanks a lot
Henrik
howcome
Could you try run this from the command-line and see if the ToC is included?:
prince https://css4.pub/2022/toc/sample-2.html -o foo.pdf

The example is borrowed from this guide on how to generate ToCs with Prince:
https://css4.pub/2022/toc/

Edited by howcome

zeix-admin
Thanks,
no, the ToC is not included.

That's how i also implemented the ToC in my Code.
What could be the issue?
howcome
Ops, I forgot to turn on JavaScript. Try this:
prince -j https://css4.pub/2022/toc/sample-2.html -o foo.pdf

Edited by howcome

zeix-admin
ah, this did the trick.
i dont know, why i did'nt realized it myself, as it is written in the docs.
thanks!