Skip to content

Commit 445c340

Browse files
authored
Merge pull request #9474 from jfbu/latex_document_9166
LaTeX: add some documentation for container support (#9166)
2 parents 0e5dab0 + af5363c commit 445c340

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/latex.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,20 @@ Miscellany
11511151
Formerly, use of *fncychap* with other styles than ``Bjarne`` was
11521152
dysfunctional.
11531153

1154+
- Docutils :dudir:`container` directives are supported in LaTeX output: to
1155+
let a container class with name ``foo`` influence the final PDF via LaTeX,
1156+
it is only needed to define in the preamble an environment
1157+
``sphinxclassfoo``. A simple example would be:
1158+
1159+
.. code-block:: latex
1160+
1161+
\newenvironment{sphinxclassred}{\color{red}}{}
1162+
1163+
Currently the class names must contain only ascii characters and avoid
1164+
characters special to LaTeX such as ``\``.
1165+
1166+
.. versionadded:: 4.1.0
1167+
11541168
.. hint::
11551169

11561170
As an experimental feature, Sphinx can use user-defined template file for

0 commit comments

Comments
 (0)