LaTeX: let \sphinxremovefinalcolon work also if no colon in input

This commit is contained in:
Jean-François B
2023-03-27 12:21:26 +02:00
parent 669bcc0a19
commit 7cdd9b2679
2 changed files with 28 additions and 7 deletions

View File

@@ -1498,6 +1498,16 @@ Macros
\renewcommand\sphinxwarningtitle[1]{%
\underline{\textbf{\sphinxremovefinalcolon{#1}}}\par
}
\renewcommand{\sphinxnotetitle}[1]{%
\textit{\textbf{\sphinxremovefinalcolon{#1}}}\par\nobreak
% LaTeX syntax is complex and we would be better off using \hrule here.
{\parskip0pt\noindent}%
\raisebox{1ex}%
{\makebox[\linewidth]{\textcolor{sphinxnoteBorderColor}{\dotfill}}}
% It is complex to obtain nice vertical spacing for both a paragraph or
% a list following up; this set-up is better for a text paragraph next.
\par\vskip-\parskip
}
- More text styling: