Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LaTeX] Re-style all admonitions to default to having icon + title
- The colours, and also most icons, are emulated from the recent sphinx13.css update (PR #12486, PR #12439). - Add iconpackage key to sphinxsetup key of latex_elements fontawesome5 is used if available, else fall-back to fontawesome. If none is available, drop icons and shift titles left. In all cases, div.<type>_title-icon keys allow user to set arbitrary code to be used. - Defaults for padding and border-widths of admonitions have been changed, now that they all acquire a default background colour. The defaults always have horizontal padding plus border-width add up to 12.5pt, so contents of all types align exactly vertically. Or course user can specify arbitrary values. - The code inserting the coloured title-row incorporates a work-around to a feature of TeX vertical lists when they start with for example a colour special. It would not be necessary with LaTeX of 2023-06-01 and newer. cf Improve spacing at top of minipages in https://www.latex-project.org/news/latex2e-news/ltnews37.pdf
- Loading branch information