Skip to content

Commit 5fde84a

Browse files
authored
Refine code listing font and split example to fit the text on the slide in 02-cmake (#37)
1 parent 7f172c3 commit 5fde84a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

02-cmake/02-cmake.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
\lstdefinestyle{CStyle}{
1414
language=C, % Set the language to C
15-
basicstyle=\ttfamily\footnotesize\linespread{0.9}\tiny, % Set font style and size
15+
basicstyle=\ttfamily\scriptsize, % Set font style and size
1616
keywordstyle=\color{blue}, % Color of keywords
1717
commentstyle=\color{gray}, % Color of comments
1818
stringstyle=\color{red}, % Color of strings
@@ -30,6 +30,8 @@
3030
xrightmargin=15pt, % Add left padding (approx. 2.8mm or 10px)
3131
}
3232

33+
\lstset{basicstyle=\ttfamily\footnotesize, breaklines=true, breakatwhitespace=false, columns=fullflexible, keepspaces=true}
34+
3335
\title[CMake]{CMake}
3436
\author{Obolenskiy Arseniy, Nesterov Alexander}
3537
\institute{ITLab}
@@ -115,7 +117,7 @@ \section{Building C++ projects}
115117
\end{itemize}
116118
\end{frame}
117119

118-
\begin{frame}[fragile]{Simple library example}
120+
\begin{frame}[fragile]{Simple library example: library}
119121
Assuming there is a simple library that contains a function \texttt{add}:
120122

121123
\lstset{style=CStyle, caption=add.h}
@@ -136,6 +138,10 @@ \section{Building C++ projects}
136138
return x + y;
137139
}
138140
\end{lstlisting}
141+
\end{frame}
142+
143+
\begin{frame}[fragile]{Simple library example: main}
144+
Usage of the library:
139145

140146
\lstset{style=CStyle, caption=main.cpp}
141147
\begin{lstlisting}

02-cmake/02-cmake.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
\beamer@sectionintoc {1}{Building C++ projects}{3}{0}{1}
2-
\beamer@sectionintoc {2}{Build systems history}{10}{0}{2}
3-
\beamer@sectionintoc {3}{CMake}{19}{0}{3}
2+
\beamer@sectionintoc {2}{Build systems history}{11}{0}{2}
3+
\beamer@sectionintoc {3}{CMake}{20}{0}{3}

0 commit comments

Comments
 (0)