Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/std.tex
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
%%--------------------------------------------------
%% appendices
\appendix
\chapterstyle{cppannex}

% \include and \addtocontents don't mix; see
% https://tex.stackexchange.com/questions/13914/toc-numbering-problem
Expand Down
18 changes: 14 additions & 4 deletions source/styles.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,28 @@
% footnotes

%%--------------------------------------------------
%% create chapter style
%% create chapter styles

\makechapterstyle{cppstd}{%
\renewcommand{\beforechapskip}{\onelineskip}
\renewcommand{\afterchapskip}{\onelineskip}
\setlength{\beforechapskip}{\onelineskip}
\setlength{\afterchapskip}{\onelineskip}
\renewcommand{\chapternamenum}{}
\renewcommand{\chapnamefont}{\chaptitlefont}
\renewcommand{\chapnumfont}{\chaptitlefont}
\renewcommand{\printchapternum}{\chapnumfont\thechapter\quad}
\renewcommand{\afterchapternum}{}
}

\makechapterstyle{cppannex}{%
\setlength{\beforechapskip}{\onelineskip}
\setlength{\afterchapskip}{\onelineskip}
\renewcommand{\chapternamenum}{}
\renewcommand{\chapnamefont}{\chaptitlefont}
\renewcommand{\chapnumfont}{\chaptitlefont}
\renewcommand{\printchapternum}{\chapnumfont\centering\thechapter\protect\\}
\renewcommand{\afterchapternum}{}
}

%%--------------------------------------------------
%% create page styles

Expand Down Expand Up @@ -86,7 +96,7 @@

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

Expand Down