wrong hierarchy in latexpdf

13 views
Skip to first unread message

Yaroslav Nikitenko

unread,
Jan 6, 2023, 9:03:39 AM1/6/23
to sphinx-users
Dear Sphinx users,

I want to have documentation in both html and pdf formats. While all works fine for html, for LaTeX I have to use things like

.. raw:: latex
    \chapter{Manual}

.. only:: latex
     .. include:: yarsync.1.md

because otherwise section hierarchy is wrong.

I filled the bug at https://github.com/sphinx-doc/sphinx/issues/11097, you can find more details there.

Do you have any suggestions how to produce a proper hierarchy (it works fine in html and epub)? Should I wait until that bug is fixed or is there a workaround?

Thank you.

Best regards,
Yaroslav Nikitenko

Reply all
Reply to author
Forward
0 new messages