Skip to content

Commit 1cb3842

Browse files
jensmaurertkoeppe
authored andcommitted
[styles] Redesign Annex titles per Rice Model Standard
Fixes ISO/CS comment (C++23 proof)
1 parent 951ded4 commit 1cb3842

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

source/std.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
%%--------------------------------------------------
138138
%% appendices
139139
\appendix
140+
\chapterstyle{cppannex}
140141

141142
% \include and \addtocontents don't mix; see
142143
% https://tex.stackexchange.com/questions/13914/toc-numbering-problem

source/styles.tex

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,28 @@
55
% footnotes
66

77
%%--------------------------------------------------
8-
%% create chapter style
8+
%% create chapter styles
99

1010
\makechapterstyle{cppstd}{%
11-
\renewcommand{\beforechapskip}{\onelineskip}
12-
\renewcommand{\afterchapskip}{\onelineskip}
11+
\setlength{\beforechapskip}{\onelineskip}
12+
\setlength{\afterchapskip}{\onelineskip}
1313
\renewcommand{\chapternamenum}{}
1414
\renewcommand{\chapnamefont}{\chaptitlefont}
1515
\renewcommand{\chapnumfont}{\chaptitlefont}
1616
\renewcommand{\printchapternum}{\chapnumfont\thechapter\quad}
1717
\renewcommand{\afterchapternum}{}
1818
}
1919

20+
\makechapterstyle{cppannex}{%
21+
\setlength{\beforechapskip}{\onelineskip}
22+
\setlength{\afterchapskip}{\onelineskip}
23+
\renewcommand{\chapternamenum}{}
24+
\renewcommand{\chapnamefont}{\chaptitlefont}
25+
\renewcommand{\chapnumfont}{\chaptitlefont}
26+
\renewcommand{\printchapternum}{\chapnumfont\centering\thechapter\protect\\}
27+
\renewcommand{\afterchapternum}{}
28+
}
29+
2030
%%--------------------------------------------------
2131
%% create page styles
2232

@@ -86,7 +96,7 @@
8696

8797
%%--------------------------------------------------
8898
% set heading style for annexes
89-
\newcommand{\Annex}[3]{\chapter[#2]{(#3)\protect\\#2\hfill[#1]}\relax\annexlabel{#1}}
99+
\newcommand{\Annex}[3]{\chapter[#2]{\textnormal{(#3)}\protect\\[3ex]#2\hfill[#1]}\relax\annexlabel{#1}}
90100
\newcommand{\infannex}[2]{\addxref{#1}\Annex{#1}{#2}{informative}}
91101
\newcommand{\normannex}[2]{\addxref{#1}\Annex{#1}{#2}{normative}}
92102

0 commit comments

Comments
 (0)