Skip to content

Commit 3ad3b65

Browse files
committed
Decrease font size for text (but not code)
1 parent 8260ca3 commit 3ad3b65

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

content/geometry/chapter.tex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ \section{Geometric primitives}
44
\kactlimport{Point.h}
55
\kactlimport{lineDistance.h}
66
\kactlimport{SegmentDistance.h}
7-
\columnbreak
87
\kactlimport{SegmentIntersection.h}
98
\kactlimport{lineIntersection.h}
109
\kactlimport{sideOf.h}

content/kactl.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\documentclass[10pt, a4paper, notitlepage]{report}
1+
\documentclass[9pt, a4paper, notitlepage]{extreport}
22
\usepackage{kactlpkg}
33
\kactlcontentdir{content}
44

content/tex/kactlpkg.sty

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242

4343
\newcommand{\enablecolors}{
44-
\lstset{basicstyle=\scriptsize\ttfamily\color{mygreen}}
44+
\lstset{basicstyle=\footnotesize\ttfamily\color{mygreen}}
4545
\lstset{commentstyle=\color{darkgray}\normalfont\itshape}
4646
\lstset{keywordstyle=\color{myblue}}
4747
\lstset{identifierstyle=\color{black}}
@@ -57,9 +57,9 @@
5757

5858
\renewcommand{\maketitle}[2]{
5959
\begin{center}
60-
{\LARGE \@title}\\
61-
{\Large \@subtitle{} version #2}\\[0.1cm]
62-
{\LARGE \textsc{#1}}
60+
{\Huge \@title}\\
61+
{\huge \@subtitle{} version #2}\\[0.1cm]
62+
{\Huge \textsc{#1}}
6363
\end{center}
6464
}
6565

@@ -122,39 +122,40 @@
122122

123123
\parindent \z@ \raggedright \normalfont
124124
\interlinepenalty\@M
125-
{\underline{\Large \bfseries #1} }
125+
{\underline{\huge \bfseries #1} }
126126
\ifnum \c@secnumdepth >\m@ne
127-
{\Large\bfseries (\thechapter) \par\nobreak }
127+
{\huge\bfseries (\thechapter) \par\nobreak }
128128
\fi
129129
\startcontents[chapters]
130130
}
131131

132132
\renewcommand\section{\@startsection {section}{1}{\z@}%
133133
{-0.5ex \@plus -1ex \@minus -.2ex}%
134134
{.4ex}%
135-
{\normalfont\large\bfseries}}
135+
{\normalfont\LARGE\bfseries}}
136136

137137
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}
138138
{1ex\@plus -1ex \@minus -.3ex}
139139
{.2ex}
140-
{\normalfont\bfseries}}
140+
{\normalfont\large\bfseries}}
141141

142142
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}
143143
{1ex\@plus -1ex \@minus -.3ex}
144144
{1ex \@plus .2ex}
145-
{\normalfont\normalsize\bfseries}}
145+
{\normalfont\large\bfseries}}
146146

147147
% Styles for local toc
148-
\titlecontents{localsection}[1.5em]{\footnotesize}{}
149-
{\footnotesize}{\titlerule*[0.8em]{.}\contentspage}
150-
\titlecontents{localsubsection}[3.8em]{\footnotesize}{}
151-
{\footnotesize}{\titlerule*[0.8em]{.}\contentspage}
148+
\titlecontents{localsection}[1.5em]{\small}{}
149+
{\small}{\titlerule*[0.8em]{.}\contentspage}
150+
\titlecontents{localsubsection}[3.8em]{\small}{}
151+
{\small}{\titlerule*[0.8em]{.}\contentspage}
152152

153153
% Styles for main toc
154154
\renewcommand{\chaptermark}[1]{\markboth{\emph{ #1}}{}}
155-
\renewcommand{\cftbeforetoctitleskip}{-50pt}
155+
\renewcommand{\cftbeforetoctitleskip}{-45pt}
156156
\renewcommand{\cftaftertoctitleskip}{10pt}
157-
\renewcommand{\cftbeforechapskip}{10pt}
157+
\renewcommand{\cftbeforechapskip}{11pt}
158+
\renewcommand\cftchapfont{\large\bfseries}
158159
\renewcommand{\cftdotsep}{4.5}
159160

160161
% Proper carets and tildes
@@ -179,7 +180,7 @@
179180
\lstset{tabsize=2}
180181
\lstset{showstringspaces=false}
181182
\lstset{breaklines=true}
182-
\lstset{basicstyle=\scriptsize\ttfamily}
183+
\lstset{basicstyle=\footnotesize\ttfamily}
183184
\lstset{commentstyle=\normalfont\itshape}
184185
\lstset{literate={^}{\caret}{1} {~}{\tilde}{1}}
185186
\lstset{emptylines=*1}
@@ -201,14 +202,14 @@
201202
\strut % Magic
202203
\vspace{3cm}\\
203204
\includegraphics[width=3cm]{\@unilogo}\\
204-
{\Huge \@unilong\\}
205+
{\fontsize{25}{30}\selectfont \@unilong\\}
205206
{\fontsize{60}{60}\selectfont \@teamname\\}
206207
\vspace{0.5cm}
207-
{\Large \@teammembers\\}
208+
{\huge \@teammembers\\}
208209
\vfill
209-
{\huge \@contestname}\\
210+
{\fontsize{21}{25}\selectfont \@contestname}\\
210211
\vspace{0.5cm}
211-
{\Large \@contestdate}\\
212+
{\huge \@contestdate}\\
212213
\vspace{1cm}
213214
\end{center}
214215
\clearpage
@@ -247,7 +248,7 @@
247248
\setboolean{hasleftcaption}{false}
248249
\myneedspace{3\baselineskip}
249250
\penalty-100
250-
#2
251+
{\large #2}
251252
\immediate\write18{rm -f \@builddir/kactl.tmp} % Don't include old kactl.tmp on failure.
252253
\immediate\write18{python2 content/tex/preprocessor.py -i "\@kactldir/#2" -o \@builddir/kactl.tmp #1}
253254
\immediate\input{\@builddir/kactl.tmp}
@@ -324,7 +325,7 @@
324325

325326

326327
\newcommand{\codeheader}[2]{
327-
{\par\noindent\scriptsize{\textbf{#1:} #2\par}}
328+
{\par\noindent\footnotesize{\textbf{#1:} #2\par}}
328329
}
329330

330331
\long\def\@makecaption#1#2{

content/various/chapter.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ \section{Misc. algorithms}
99
\kactlimport{TernarySearch.h}
1010
\kactlimport{LIS.h}
1111

12+
\newpage % the rest fits nicely on one page
1213
\section{Dynamic programming}
1314
\kactlimport{KnuthDP.h}
14-
\newpage % the rest fits nicely on one page
1515
\kactlimport{DivideAndConquerDP.h}
1616

1717
\section{Debugging tricks}

kactl.pdf

96.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)