mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
LaTeX: let \sphinxremovefinalcolon work also if no colon in input
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user