scipy-lectures / scientific-python-lectures

Tutorial material on the scientific Python ecosystem
https://lectures.scientific-python.org
Other
3.11k stars 1.19k forks source link

Prevent "X is already assigned section numbers" warnings #655

Closed stefanv closed 1 year ago

stefanv commented 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.

Instead, we switch to .. only:: html for selecting the headers.

stefanv commented 1 year ago

I have tried to check this, but I don't have super high confidence that it is correct.