diff --git a/docs/environment.yml b/docs/environment.yml index e919543f..d6d10695 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -2,7 +2,7 @@ channels: - conda-forge - nodefaults dependencies: - - python=3.11 + - python=3.13 - scipy - pyopengl - imageio diff --git a/docs/scripting/conf.py b/docs/scripting/conf.py index 6572bab0..fde7dd95 100644 --- a/docs/scripting/conf.py +++ b/docs/scripting/conf.py @@ -249,6 +249,9 @@ #this allows \AA to be used in equations 'preamble': '\\global\\renewcommand{\\AA}{\\text{\\r{A}}}', + +# Suppress auto-generated printindex at end; index is printed via scrpt-indices.rst +'printindex': '', } # Grouping the document tree into LaTeX files. List of tuples diff --git a/docs/scripting/scrpt-indices.rst b/docs/scripting/scrpt-indices.rst index 9436dcbf..3f9d2aed 100644 --- a/docs/scripting/scrpt-indices.rst +++ b/docs/scripting/scrpt-indices.rst @@ -5,3 +5,12 @@ `General Index <./genindex.html>`_ -------------------------------------------- + +.. only:: latex + + Index + ===== + + .. raw:: latex + + \printindex diff --git a/docs/source/conf.py b/docs/source/conf.py index 145eded3..59eaa337 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -253,6 +253,9 @@ #this allows \AA to be used in equations 'preamble': '\\global\\renewcommand{\\AA}{\\text{\\r{A}}}', + +# Suppress auto-generated printindex at end; index is printed via indices.rst +'printindex': '', } # Grouping the document tree into LaTeX files. List of tuples diff --git a/docs/source/indices.rst b/docs/source/indices.rst index cb046c52..7e5155c6 100644 --- a/docs/source/indices.rst +++ b/docs/source/indices.rst @@ -16,8 +16,4 @@ .. raw:: latex - \renewcommand{\printindex}{% - \begin{theindex} - \printindex - \end{theindex} - } + \printindex