forked from cplusplus/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstd.tex
More file actions
179 lines (165 loc) · 5.36 KB
/
std.tex
File metadata and controls
179 lines (165 loc) · 5.36 KB
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
172
173
174
175
176
177
178
179
%% main file for the C++ standard.
%%
%DIF 3-18d3
%DIF < %% to regenerate figures from .dot files, run 'dot -o<pdfname> -Tpdf <dotfilename>
%DIF < %% for example: dot -ofigstreampos.pdf -Tpdf figstreampos.dot
%DIF < %%
%DIF < %% to regenerate the grammar appendix, run '../tools/makegram' from the
%DIF < %% source directory
%DIF < %%
%DIF < %% to regenerate the cross-references appendix, run '../tools/makexref'
%DIF < %% from the source directory
%DIF < %%
%DIF < %% To typeset the standard:
%DIF < %% run 'pdflatex std' until there are no more changed labels or changed tables
%DIF < %% run 'makeindex generalindex'
%DIF < %% run 'makeindex libraryindex'
%DIF < %% run 'makeindex grammarindex'
%DIF < %% run 'makeindex impldefindex'
%DIF < %% run 'pdflatex std' twice more.
%DIF -------
%%--------------------------------------------------
%% basics
% \documentclass[letterpaper,oneside,openany]{memoir}
%DIF 23c7
%DIF < \documentclass[ebook,10pt,oneside,openany,draft]{memoir}
%DIF -------
\documentclass[ebook,10pt,oneside,openany,final]{memoir} %DIF >
%DIF -------
% \includeonly{declarations}
\usepackage[american]
{babel} % needed for iso dates
\usepackage[iso,american]
{isodate} % use iso format for dates
%DIF 30c14-15
%DIF < \usepackage{listings} % code listings
%DIF -------
\usepackage[final] %DIF >
{listings} % code listings %DIF >
%DIF -------
\usepackage{longtable} % auto-breaking tables
\usepackage{booktabs} % fancy tables
\usepackage{relsize} % provide relative font size changes
\usepackage{underscore} % remove special status of '_' in ordinary text
\usepackage{verbatim} % improved verbatim environment
\usepackage{parskip} % handle non-indented paragraphs "properly"
\usepackage{array} % new column definitions for tables
\usepackage[normalem]{ulem}
\usepackage{color} % define colors for strikeouts and underlines
\usepackage{amsmath} % additional math symbols
\usepackage{mathrsfs} % mathscr font
\usepackage{multicol}
\usepackage{xspace}
\usepackage{fixme}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[pdftex, final]{graphicx}
\usepackage[pdftex,
pdftitle={C++ International Standard},
pdfsubject={C++ International Standard},
pdfcreator={Stefanus Du Toit},
bookmarks=true,
bookmarksnumbered=true,
pdfpagelabels=true,
pdfpagemode=UseOutlines,
pdfstartview=FitH,
linktocpage=true,
colorlinks=true,
linkcolor=blue,
plainpages=false
]{hyperref}
%DIF 62c47
%DIF < \usepackage{memhfixc} % fix interactions betweeen hyperref and memoir
%DIF -------
\usepackage{memhfixc} % fix interactions between hyperref and memoir %DIF >
%DIF -------
\input{layout}
\input{styles}
\input{macros}
\input{tables}
\makeindex[generalindex]
\makeindex[libraryindex]
\makeindex[grammarindex]
\makeindex[impldefindex]
%%--------------------------------------------------
%% add special hyphenation rules
\hyphenation{tem-plate ex-am-ple in-put-it-er-a-tor name-space name-spaces}
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
%DIF UNDERLINE PREAMBLE %DIF PREAMBLE
\RequirePackage[normalem]{ulem} %DIF PREAMBLE
\RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE
\providecommand{\DIFadd}[1]{{\protect\color{blue}\uwave{#1}}} %DIF PREAMBLE
\providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}} %DIF PREAMBLE
%DIF SAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddbegin}{} %DIF PREAMBLE
\providecommand{\DIFaddend}{} %DIF PREAMBLE
\providecommand{\DIFdelbegin}{} %DIF PREAMBLE
\providecommand{\DIFdelend}{} %DIF PREAMBLE
%DIF FLOATSAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddFL}[1]{\DIFadd{#1}} %DIF PREAMBLE
\providecommand{\DIFdelFL}[1]{\DIFdel{#1}} %DIF PREAMBLE
\providecommand{\DIFaddbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFaddendFL}{} %DIF PREAMBLE
\providecommand{\DIFdelbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFdelendFL}{} %DIF PREAMBLE
%DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF
\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{conversions}
\include{expressions}
\include{statements}
\include{declarations}
\include{declarators}
\include{classes}
\include{derived}
\include{access}
\include{special}
\include{overloading}
\include{templates}
\include{exceptions}
\include{preprocessor}
\include{lib-intro}
\include{support}
\include{diagnostics}
\include{utilities}
\include{strings}
\include{locales}
\include{containers}
\include{iterators}
\include{algorithms}
\include{numerics}
\include{iostreams}
\include{regex}
\include{atomics}
\include{threads}
%%--------------------------------------------------
%% appendices
\appendix
\include{grammar}
\include{limits}
\include{compatibility}
\include{future}
\include{charname}
\include{xref}
%%--------------------------------------------------
%% back matter
\backmatter
\include{back}
%%--------------------------------------------------
%% End of document
\end{document}