|
5 | 5 | % footnotes
|
6 | 6 |
|
7 | 7 | %%--------------------------------------------------
|
8 |
| -%% create chapter style |
| 8 | +%% create chapter styles |
9 | 9 |
|
10 | 10 | \makechapterstyle{cppstd}{%
|
11 |
| - \renewcommand{\beforechapskip}{\onelineskip} |
12 |
| - \renewcommand{\afterchapskip}{\onelineskip} |
| 11 | + \setlength{\beforechapskip}{\onelineskip} |
| 12 | + \setlength{\afterchapskip}{\onelineskip} |
13 | 13 | \renewcommand{\chapternamenum}{}
|
14 | 14 | \renewcommand{\chapnamefont}{\chaptitlefont}
|
15 | 15 | \renewcommand{\chapnumfont}{\chaptitlefont}
|
16 | 16 | \renewcommand{\printchapternum}{\chapnumfont\thechapter\quad}
|
17 | 17 | \renewcommand{\afterchapternum}{}
|
18 | 18 | }
|
19 | 19 |
|
| 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 | + |
20 | 30 | %%--------------------------------------------------
|
21 | 31 | %% create page styles
|
22 | 32 |
|
|
86 | 96 |
|
87 | 97 | %%--------------------------------------------------
|
88 | 98 | % 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}} |
90 | 100 | \newcommand{\infannex}[2]{\addxref{#1}\Annex{#1}{#2}{informative}}
|
91 | 101 | \newcommand{\normannex}[2]{\addxref{#1}\Annex{#1}{#2}{normative}}
|
92 | 102 |
|
|
0 commit comments