Closed stefanv closed 1 year ago
.. only:: latex and .. only:: html are both parsed when compiling, thus it cannot be used to "branch" table of contents for the two output formats.
.. only:: latex
.. only:: html
Instead, we switch to .. only:: html for selecting the headers.
I have tried to check this, but I don't have super high confidence that it is correct.
.. only:: latex
and.. only:: html
are both parsed when compiling, thus it cannot be used to "branch" table of contents for the two output formats.Instead, we switch to
.. only:: html
for selecting the headers.