Skip to content

Commit

Permalink
Fix #10984 [DOC] document latex_additional_files behavior with .tex (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Nov 30, 2022
1 parent cd3f2e4 commit b1ca6b3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -60,6 +60,9 @@ Features added
Bugs fixed
----------

* #10984: LaTeX: Document :confval:`latex_additional_files` behavior for files
with ``.tex`` extension.

Testing
--------

Expand Down
3 changes: 3 additions & 0 deletions doc/latex.rst
Expand Up @@ -207,6 +207,9 @@ Keys that you may want to override include:
latex_additional_files = ["mystyle.sty"]
Do not use ``.tex`` as suffix, else the file is submitted itself to the PDF
build process, use ``.tex.txt`` or ``.sty`` as in the examples above.

Default: ``''``

``'figure_align'``
Expand Down
9 changes: 9 additions & 0 deletions doc/usage/configuration.rst
Expand Up @@ -2372,6 +2372,15 @@ These options influence LaTeX output.
You have to make sure yourself that the filenames don't collide with those
of any automatically copied files.

.. attention::

Filenames with extension ``.tex`` will automatically be handed over to
the PDF build process triggered by :option:`sphinx-build -M`
``latexpdf`` or by :program:`make latexpdf`. If the file was added only
to be ``\input{}`` from a modified preamble, you must add a further
suffix such as ``.txt`` to the filename and adjust accordingly the
``\input{}`` command added to the LaTeX document preamble.

.. versionadded:: 0.6

.. versionchanged:: 1.2
Expand Down

0 comments on commit b1ca6b3

Please sign in to comment.