Skip to content

Commit af215a2

Browse files
committed
Refactor and overall improve of the entire document, add new images, rework on language's conventions
1 parent 5198244 commit af215a2

12 files changed

+2985
-451
lines changed

Basi_del_linguaggio.tex

Lines changed: 557 additions & 278 deletions
Large diffs are not rendered by default.

Concetti_Avanzati.tex

Lines changed: 52 additions & 40 deletions
Large diffs are not rendered by default.

Concetti_Intermedi.tex

Lines changed: 120 additions & 96 deletions
Large diffs are not rendered by default.

Convenzioni_del_Linguaggio.tex

Lines changed: 2191 additions & 0 deletions
Large diffs are not rendered by default.

Guida_C++.pdf

276 KB
Binary file not shown.

Guida_C++.tex

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
\usepackage{float}
1010
\usepackage{graphicx}
1111
\usepackage[utf8]{inputenc}
12-
\usepackage{hyperref}
12+
\usepackage[breaklinks]{hyperref}
1313
\usepackage{amsmath,amssymb,amsthm}
1414

15+
\usepackage[showframe]{geometry} % [showframe] serve per mostrare il margine, è da rimuovere quando ho finito di controllare il margine. %TODO: remove showframe
16+
1517
\usepackage[italian]{babel}
1618

1719
\usepackage[italian]{cleveref}
@@ -105,6 +107,12 @@
105107

106108
% ----- firma (signature) end ----------------
107109

110+
% ----- per molteplici colonne begin ----------------
111+
112+
\usepackage{multicol}
113+
114+
% ----- per molteplici colonne end ----------------
115+
108116
% ----- empty page command begin -------------
109117

110118
\newcommand\blankpage{% comando pagina vuota
@@ -147,7 +155,7 @@
147155
\definecolor{weborange}{RGB}{255,165,0}
148156

149157
\lstdefinestyle{VS2017}{
150-
backgroundcolor=\color{clr-background}, % oppure darkgrey
158+
backgroundcolor=\color{clr-background}, % oppure darkgray o darkgrey %TODO: mettere quello classico.
151159
basicstyle=\color{clr-text}, % any text
152160
stringstyle=\color{clr-string},
153161
identifierstyle=\color{clr-variable}, % just about anything that isn't a directive, comment, string or known type
@@ -161,7 +169,7 @@
161169
showspaces=false,
162170
showstringspaces=false,
163171
%otherkeywords={>,<,.,;,-,!,=,~},
164-
morekeywords={\#, std, std::cout, cout, std::endl, endl, ::, ifndef, define, endif, pragma, override, decltype, noexcept, alignas, alignof, constexpr}, % \# non funziona.
172+
morekeywords={\#, std, std::cout, cout, std::endl, endl, ::, ifndef, define, endif, pragma, override, decltype, noexcept, alignas, alignof, constexpr, assert, nullptr}, % \# non funziona.
165173
%keywordstyle=\color{weborange},
166174
tabsize=4
167175
}
@@ -219,6 +227,17 @@
219227

220228
\lstset{style=VS2017}
221229

230+
%frame (ovvero un box) attorno al codice
231+
\begin{comment}
232+
\usepackage[most]{tcolorbox}
233+
\usepackage{inconsolata}
234+
235+
\newtcblisting[auto counter]{listingframe}[2][]{sharp corners,
236+
fonttitle=\bfseries, colframe=gray, listing only,
237+
listing options={basicstyle=\ttfamily,language=java},
238+
title=Listing \thetcbcounter: #2, #1}
239+
\end{comment}
240+
222241
% ------ end code -----------
223242

224243
% hyperref settings
@@ -313,19 +332,19 @@
313332

314333
% ----------------------------- BEGIN SUBSUBSECTION STYLE ----------------------------
315334

316-
\titleformat{\subsubsection}{\bfseries\large\itshape}{}{}{}
335+
\titleformat{\subsubsection}{\centering\bfseries\large\itshape}{}{}{}
317336

318337
% ----------------------------- END SUBSUBSECTION STYLE ------------------------------
319338

320339
% ----------------------------- BEGIN PARAGRAPH STYLE --------------------------------
321340

322-
\titleformat{\paragraph}{\bfseries\normalsize}{}{}{}
341+
\titleformat{\paragraph}{\centering\bfseries\normalsize}{}{}{}
323342

324343
% ----------------------------- END PARAGRAPH STYLE ----------------------------------
325344

326345
% ----------------------------- BEGIN TABLE OF CONTENTS ------------------------------
327346

328-
\setcounter{tocdepth}{3}
347+
\setcounter{tocdepth}{4}
329348
\setcounter{secnumdepth}{1}
330349

331350
% ----------------------------- END TABLE OF CONTENTS --------------------------------
@@ -379,7 +398,9 @@
379398

380399
\include{Concetti_Avanzati}
381400

382-
\include{Libreria_Algoritmi}
401+
\include{Libreria_Algoritmi}
402+
403+
%\include{Convenzioni_del_Linguaggio} %TODO: magari dopo il capitolo La Libreria degli Algoritmi. %TODO: Rinominare: Linee_Guida_del_linguaggio? Oppure Convenzioni_e_Linee_Guida.
383404

384405
\include{Conclusioni}
385406

Libreria_Algoritmi.tex

Lines changed: 37 additions & 30 deletions
Large diffs are not rendered by default.

imgs/CppCoreGuidelines.png

112 KB
Loading
26.1 KB
Loading
35.4 KB
Loading

0 commit comments

Comments
 (0)