Skip to content

Commit 5e4ba61

Browse files
committed
Refine code listing font and split example to fit the text on the slide in 02-cmake
1 parent cc65d30 commit 5e4ba61

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}
@@ -108,7 +110,7 @@ \section{Building C++ projects}
108110
\end{itemize}
109111
\end{frame}
110112

111-
\begin{frame}[fragile]{Simple library example}
113+
\begin{frame}[fragile]{Simple library example: library}
112114
Assuming there is a simple library that contains a function \texttt{add}:
113115

114116
\lstset{style=CStyle, caption=add.h}
@@ -129,6 +131,10 @@ \section{Building C++ projects}
129131
return x + y;
130132
}
131133
\end{lstlisting}
134+
\end{frame}
135+
136+
\begin{frame}[fragile]{Simple library example: main}
137+
Usage of the library:
132138

133139
\lstset{style=CStyle, caption=main.cpp}
134140
\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}{9}{0}{2}
3-
\beamer@sectionintoc {3}{CMake}{17}{0}{3}
2+
\beamer@sectionintoc {2}{Build systems history}{10}{0}{2}
3+
\beamer@sectionintoc {3}{CMake}{18}{0}{3}

0 commit comments

Comments
 (0)