-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodestyle.tex
98 lines (68 loc) · 2.15 KB
/
codestyle.tex
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
% OHILib C/C++ Coding Style
% (C) 2012-2018 - OHILab <info@ohilab.org>
%
% Author:
% Marco Giammarini <m.giammarini@warcomeb.it>
% Vito Colagiacomo <vito.colagiacomo@gmail.com>
\documentclass[procedure,opensource,temp]{ohilabtemplate}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage[italian]{babel}
%\usepackage{indentfirst}
\usepackage[amssymb,italian]{SIunits}
%
%\usepackage[english]{babel}
%\usepackage[amssymb]{SIunits}
\usepackage{graphicx}
\usepackage[table,usenames,dvipsnames]{xcolor}
\colorlet{LightGreen}{White!80!Green}
\colorlet{LightRed}{White!80!Red}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{subfigure}
\usepackage{pgfplots}
\pgfplotsset{/pgf/number format/use comma,compat=newest}
\usepackage{circuitikz}
\usepackage{xcolor}
\usetikzlibrary{shapes.geometric}
\usepackage[babel]{csquotes}
\usepackage[style=numeric]{biblatex}
\usepackage{hyperref}
\usepackage{listings}
\lstnewenvironment{RightCode}[1][]
{\lstset{language=[ANSI]C++,frame=single,frameround=ffff,basicstyle=\footnotesize,inputencoding=utf8,backgroundcolor=\color{LightGreen},rulecolor=\color{Green},#1}}{}
\lstnewenvironment{RightSmallCode}[1][]
{\lstset{language=[ANSI]C++,frame=single,frameround=ffff,basicstyle=\tiny,inputencoding=utf8,backgroundcolor=\color{LightGreen},rulecolor=\color{Green},#1}}{}
\lstnewenvironment{ErrorCode}[1][]
{\lstset{language=[ANSI]C++,frame=single,frameround=ffff,basicstyle=\footnotesize,inputencoding=utf8,backgroundcolor=\color{LightRed},rulecolor=\color{Red},#1}}{}
% Misure dei box per il codice
\newdimen\cbwidth
\cbwidth = 0.49\textwidth
\newdimen\cbdistance
\cbdistance = 0.02\textwidth
\newdimen\rbwidth
\rbwidth = \textwidth
\docTitle{OHILib C/C++ Coding Style}
\docSubject{-}
\docRevision{2}
\docData{XX/07/2018}
\docDesigner{-}
\docDesignerMail{-}
\docCode{OHI-HT001}
\docProjectCode{-}
\bibliography{ohilab}
% Creo header e footer
\makeheadfoot
\begin{document}
\maketitle
\tableofcontents
\clearpage
\input{sections/revision}
\input{sections/overview}
\input{sections/name}
\input{sections/embedded}
\input{sections/formatting}
\input{sections/comments}
\printbibliography
\end{document}