mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9474 from jfbu/latex_document_9166
LaTeX: add some documentation for container support (#9166)
This commit is contained in:
commit
445c340cbd
@ -1151,6 +1151,20 @@ Miscellany
|
|||||||
Formerly, use of *fncychap* with other styles than ``Bjarne`` was
|
Formerly, use of *fncychap* with other styles than ``Bjarne`` was
|
||||||
dysfunctional.
|
dysfunctional.
|
||||||
|
|
||||||
|
- Docutils :dudir:`container` directives are supported in LaTeX output: to
|
||||||
|
let a container class with name ``foo`` influence the final PDF via LaTeX,
|
||||||
|
it is only needed to define in the preamble an environment
|
||||||
|
``sphinxclassfoo``. A simple example would be:
|
||||||
|
|
||||||
|
.. code-block:: latex
|
||||||
|
|
||||||
|
\newenvironment{sphinxclassred}{\color{red}}{}
|
||||||
|
|
||||||
|
Currently the class names must contain only ascii characters and avoid
|
||||||
|
characters special to LaTeX such as ``\``.
|
||||||
|
|
||||||
|
.. versionadded:: 4.1.0
|
||||||
|
|
||||||
.. hint::
|
.. hint::
|
||||||
|
|
||||||
As an experimental feature, Sphinx can use user-defined template file for
|
As an experimental feature, Sphinx can use user-defined template file for
|
||||||
|
Loading…
Reference in New Issue
Block a user