Skip to content

Commit aa6dac8

Browse files
authored
LaTeX: Revamp the styling of all admonitions (#12508)
In LaTeX output, all admonitions now also have a title row with icon. The ``xcolor`` LaTeX package is now required and the ``fontawesome5`` LaTeX package is needed for the icons.
1 parent e49e293 commit aa6dac8

11 files changed

+934
-680
lines changed

CHANGES.rst

+13
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,23 @@ Dependencies
66

77
* #12555: Drop Docutils 0.18.1 and Docutils 0.19 support.
88
Patch by Adam Turner.
9+
* LaTeX: the ``xcolor`` package is now required (but is for example part of
10+
Ubuntu ``texlive-latex-recommended`` which has always been required).
11+
* LaTeX: the ``fontawesome5`` LaTeX package is needed for the default choices
12+
of icons now used in admonition titles in PDF output; but if unavailable the
13+
PDF build will simply silently omit rendering such icons. Check the
14+
documentation of the ``iconpackage`` key of :ref:`'sphinxsetup'
15+
<latexsphinxsetup>` for more.
916

1017
Incompatible changes
1118
--------------------
1219

1320
Deprecated
1421
----------
1522

23+
* LaTeX: the ``sphinxlightbox`` environment is not used anymore, all types
24+
of admonitions use (by default) only ``sphinxheavybox``.
25+
1626
Features added
1727
--------------
1828

@@ -85,6 +95,9 @@ Features added
8595
Patch by Ashley Whetter.
8696
* #6792: Prohibit module import cycles in :mod:`sphinx.ext.autosummary`.
8797
Patch by Trevor Bekolay.
98+
* #12508: LaTeX: Revamped styling of all admonitions, with addition of a
99+
title row with icon.
100+
Patch by Jean-François B.
88101

89102
Bugs fixed
90103
----------

bindep.txt

+3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ texlive-ctablestack [platform:rpm]
1414
texlive-gnu-freefont [platform:rpm]
1515
texlive-tex-gyre [platform:rpm]
1616
texlive-pict2e [platform:rpm]
17+
texlive-fontawesome5 [platform:rpm]
18+
texlive-xcolor [platform:rpm]
1719
latexmk [platform:rpm]
1820

1921
texlive-latex-recommended [platform:dpkg]
2022
texlive-fonts-recommended [platform:dpkg]
23+
texlive-fonts-extra [platform:dpkg]
2124
tex-gyre [platform:dpkg]
2225
texlive-latex-extra [platform:dpkg]
2326
texlive-luatex [platform:dpkg]

0 commit comments

Comments
 (0)