|
9 | 9 | % by the Sphinx LaTeX writer.
|
10 | 10 |
|
11 | 11 | \NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
12 |
| -\ProvidesPackage{sphinx}[2024/07/28 v8.1.0 Sphinx LaTeX package (sphinx-doc)] |
| 12 | +\ProvidesPackage{sphinx}[2024/10/11 v8.1.1 Sphinx LaTeX package (sphinx-doc)] |
13 | 13 |
|
14 | 14 | % provides \ltx@ifundefined
|
15 | 15 | % (many packages load ltxcmds: graphicx does for pdftex and lualatex but
|
|
885 | 885 | {\DeclareStringOption[fontawesome]{iconpackage}}
|
886 | 886 | {\DeclareStringOption[none]{iconpackage}}%
|
887 | 887 | }%
|
888 |
| -\newcommand\spx@faIcon[3][]{}% |
889 |
| -% The hacky definition of \spx@faIcon above is to let it by default swallow |
890 |
| -% the icon macro and the \sphinxtitlerowaftericonspacecmd (see |
891 |
| -% \sphinxdotitlerowwithicon in sphinxlatexadmonitions.sty) which inserts |
892 |
| -% a space between it and title. See how \spx@faIcon is used below. |
893 |
| -% |
894 |
| -% If user sets a title-icon key to some LaTeX code of their own, of course |
895 |
| -% \spx@faIcon is not executed and the inserted space will thus be there, as |
896 |
| -% expected. |
| 888 | +\newcommand\spx@faIcon[2][]{}% |
| 889 | +% The above \spx@faIcon which gobbles one mandatory and one optional |
| 890 | +% argument is put into use only if both fontawesome5 and fontawesome |
| 891 | +% LaTeX packages are not available, as part of the defaults for the |
| 892 | +% div.*_title-icon keys (these keys can be redefined via the sphinxsetup |
| 893 | +% interface). |
897 | 894 | %
|
898 | 895 | \def\spxstring@fontawesome{fontawesome}
|
899 | 896 | \def\spxstring@fontawesomev{fontawesome5}
|
|
920 | 917 | \let\faicon@pen\faPencil
|
921 | 918 | \fi
|
922 | 919 | % if neither has been required, \spx@faIcon will simply swallow
|
923 |
| - % its argument (and follwing space macro) and it is up to user |
924 |
| - % to set the keys appropriately. |
| 920 | + % its argument and it is up to user |
| 921 | + % to set the various div.*_title-icon keys appropriately. |
925 | 922 | \fi\fi %
|
926 | 923 | }%
|
927 | 924 | {%
|
|
0 commit comments