File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
tests/docs/smoke-all/2024/01/19 Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 4343\setlength{\emergencystretch}{3em} % prevent overfull lines
4444\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
4545% Make \paragraph and \subparagraph free-standing
46+ \makeatletter
4647\ifx\paragraph\undefined\else
4748 \let\oldparagraph\paragraph
48- \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
49+ \renewcommand{\paragraph}{
50+ \@ifstar
51+ \xxxParagraphStar
52+ \xxxParagraphNoStar
53+ }
54+ \newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}}
55+ \newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}}
4956\fi
5057\ifx\subparagraph\undefined\else
5158 \let\oldsubparagraph\subparagraph
52- \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
59+ \renewcommand{\subparagraph}{
60+ \@ifstar
61+ \xxxSubParagraphStar
62+ \xxxSubParagraphNoStar
63+ }
64+ \newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}}
65+ \newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}}
5366\fi
67+ \makeatother
5468
5569\usepackage{color}
5670\usepackage{fancyvrb}
You can’t perform that action at this time.
0 commit comments