forked from cplusplus/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstd.tex
171 lines (149 loc) · 5.02 KB
/
std.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
%% main file for the C++ standard.
%%
%%--------------------------------------------------
%% basics
\documentclass[a4paper,10pt,oneside,openany,final]{memoir}
\usepackage[american]
{babel} % needed for iso dates
\usepackage[iso,american]
{isodate} % use iso format for dates
\usepackage[final]
{listings} % code listings
\usepackage{longtable} % auto-breaking tables
\usepackage{ltcaption} % fix captions for long tables
\usepackage{caption} % caption style
\usepackage{relsize} % provide relative font size changes
\usepackage{textcomp} % provide \text{l,r}angle
\usepackage{underscore} % remove special status of '_' in ordinary text
\usepackage{parskip} % handle non-indented paragraphs "properly"
\usepackage{array} % new column definitions for tables
\usepackage[normalem]{ulem}
\usepackage{enumitem}
\usepackage{color} % define colors for strikeouts and underlines
\usepackage{amsmath} % additional math symbols
\usepackage{mathrsfs} % mathscr font
\usepackage{bm}
\usepackage[final]{microtype}
\usepackage[splitindex,original]{imakeidx}
\usepackage{multicol}
\usepackage{lmodern}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\usepackage[pdftex, final]{graphicx}
\usepackage[pdftex]{hyperref}
\hypersetup{pdftitle={C++ Working Draft},
pdfsubject={ISO/IEC JTC1 SC22 WG21, C++},
pdfcreator={Thomas K\"{o}ppe},
bookmarksnumbered=true,
pdfpagemode=UseOutlines,
pdfstartview=FitH,
linktocpage=true,
colorlinks=true,
linkcolor=blue,
citecolor=blue,
urlcolor=blue, % ISO/IEC Directives, Part 2, section 6.5
plainpages=false}
\usepackage{memhfixc} % fix interactions between hyperref and memoir
\usepackage[active,header=false,handles=false,copydocumentclass=false,generate=std-gram.ext,extract-cmdline={gramSec},extract-env={bnf,simplebnf}]{extract} % Grammar extraction
\usepackage{expl3}
\usepackage{xparse}
\usepackage{xstring}
\pdfminorversion=5
\pdfcompresslevel=9
\pdfobjcompresslevel=2
\renewcommand\RSsmallest{5.5pt} % smallest font size for relsize
\input{layout}
\input{styles}
\input{macros}
\input{tables}
\makeindex[name=generalindex,options=-s generalindex.ist,title=Index]
\makeindex[name=grammarindex,title=Index of grammar productions]
\makeindex[name=headerindex,title=Index of library headers]
\makeindex[name=libraryindex,options=-s libraryindex.ist,title=Index of library names]
\makeindex[name=conceptindex,title=Index of library concepts]
\makeindex[name=impldefindex,title=Index of implementation-defined behavior]
\makeglossary[xrefindex]
\makeglossary[xrefdelta]
%%--------------------------------------------------
%% fix interaction between hyperref and other
%% commands
\pdfstringdefDisableCommands{\def\smaller#1{#1}}
\pdfstringdefDisableCommands{\def\textbf#1{#1}}
\pdfstringdefDisableCommands{\def\raisebox#1{}}
\pdfstringdefDisableCommands{\def\hspace#1{}}
\pdfstringdefDisableCommands{\def\frenchspacing{}}
%%--------------------------------------------------
%% add special hyphenation rules
\hyphenation{tem-plate ex-am-ple in-put-it-er-a-tor name-space name-spaces non-zero cus-tom-i-za-tion im-ple-men-ted}
%%--------------------------------------------------
%% turn off all ligatures inside \texttt
\DisableLigatures{encoding = T1, family = tt*}
%%--------------------------------------------------
%% select regular text font for \url
\urlstyle{same}
\begin{document}
\chapterstyle{cppstd}
\pagestyle{cpppage}
%%--------------------------------------------------
%% configuration
\input{config}
%%--------------------------------------------------
%% front matter
\frontmatter
\include{front}
%%--------------------------------------------------
%% main body of the document
\mainmatter
\setglobalstyles
\include{intro}
\include{lex}
\include{basic}
\include{expressions}
\include{statements}
\include{declarations}
\include{modules}
\include{classes}
\include{overloading}
\include{templates}
\include{exceptions}
\include{preprocessor}
\include{lib-intro}
\include{support}
\include{concepts}
\include{diagnostics}
\include{memory}
\include{meta}
\include{utilities}
\include{containers}
\include{iterators}
\include{ranges}
\include{algorithms}
\include{strings}
\include{text}
\include{numerics}
\include{time}
\include{iostreams}
\include{threads}
\include{exec}
%%--------------------------------------------------
%% appendices
\appendix
\chapterstyle{cppannex}
% \include and \addtocontents don't mix; see
% https://tex.stackexchange.com/questions/13914/toc-numbering-problem
\makeatletter
\immediate\write\@auxout{\noexpand\@writefile{toc}{\noexpand\let\noexpand\chapternumberlinebox\noexpand\annexnumberlinebox}}
\makeatother
\numberwithin{table}{chapter}
\include{grammar}
\include{limits}
\include{compatibility}
\include{future}
\include{uax31}
%%--------------------------------------------------
%% back matter
\backmatter
\include{back}
%%--------------------------------------------------
%% End of document
\end{document}