-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcounting-in-c++.tex
More file actions
103 lines (83 loc) · 2.34 KB
/
counting-in-c++.tex
File metadata and controls
103 lines (83 loc) · 2.34 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
\documentclass{book}
\usepackage[english]{babel}
\usepackage[normalem]{ulem}
\usepackage{cite}
\usepackage{enumitem}
\usepackage[dvipsnames]{xcolor}
\usepackage{fontawesome}
\usepackage{times}
\usepackage[marginparwidth=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage[colorlinks=true,allcolors=Blue]{hyperref}
\usepackage{bookmark}
\usepackage[T1]{fontenc}
\usepackage{marginnote}
\usepackage{mdframed}
\usepackage{sectsty}
\usepackage[thicklines]{cancel}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[parfill]{parskip}
% Write C++XX using the format from cppreference.com: capital C, no
% dash nor space.
\newcommand{\cpp}[1]{C++{#1}}
\newcommand{\Cpp}[1]{C++{#1}}
\newcommand{\cppheader}[1]{\textless #1\textgreater}
\newcommand{\aref}[1]{[\ref{#1}]}
\title{Counting from 98 to 14 \\ in \Cpp{}}
\author{Julien Jorge}
\newcommand{\version}{@CMAKE_PROJECT_VERSION@}
\input{style/code-listings}
\newcommand{\code}[1]{{\tt #1}}
\newcommand{\marginheader}[1]{%
\marginnote{%
\begin{center}%
\includegraphics[width=0.5\linewidth]{assets/header-icon.pdf} \\
\footnotesize #1
\end{center}%
}[-1.5em]%
}
\newcommand{\problemtitle}{\subsubsection{What was the problem}}
\newcommand{\solutiontitle}{\subsubsection{How the Problem is Solved}}
\newenvironment{guideline}
{
\begin{mdframed}[
topline=false,
rightline=false,
bottomline=false,
linewidth=1pt,
frametitle={Guideline}
]
}
{
\end{mdframed}
}
\newenvironment{pitfall}
{
\begin{mdframed}[
topline=false,
rightline=false,
bottomline=false,
linewidth=1pt,
frametitle={It's a trap}
]
}
{
\end{mdframed}
}
\begin{document}
\allsectionsfont{\sffamily}
\frontmatter
\input{parts/title-page}
\cleardoublepage
\pdfbookmark{\contentsname}{toc}
\tableofcontents
\input{parts/preface}
\mainmatter
\input{parts/cpp-general}
\input{parts/11}
\input{parts/14}
\bibliographystyle{alpha}
\bibliography{bibliography.bib}
\appendix
\input{parts/license.tex}
\end{document}