-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.tex
153 lines (135 loc) · 4.58 KB
/
configuration.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
% Document releated
% \documentclass[12pt]{report}
%\RequirePackage[T1]{fontenc}
%\RequirePackage[utf8]{inputenc}
%\RequirePackage{environ}
\documentclass[12pt, numbers=noenddot, bibliography=totoc, headings=openright, twoside=semi]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{afterpage}
% Configuration of KOMA-script
\setkomafont{dictumtext}{\itshape\small}
\setkomafont{dictumauthor}{\normalfont}
\renewcommand*\dictumwidth{0.75\linewidth}
\renewcommand*\dictumauthorformat[1]{\vspace{0.5cm}--- #1\vspace{0.25cm}}
\renewcommand*\dictumrule{}
% Table of contents depth
\setcounter{tocdepth}{2}
% Cover configuration commands
\def\title#1{\gdef\@title{#1}\gdef\thetitle{#1}}
\def\subtitle#1{\gdef\@subtitle{#1}\gdef\thesubtitle{#1}}
\def\author#1{\gdef\@author{#1}\gdef\theauthor{#1}}
\def\advisor#1{\gdef\@advisor{#1}\gdef\theadvisor{#1}}
% Graphics
\usepackage[labelsep=endash]{caption}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{newfloat}
\usepackage{subcaption}
\setlength{\abovecaptionskip}{10pt}
\setlength{\belowcaptionskip}{10pt}
\renewcommand{\thesubtable}{\roman{subtable}}
\renewcommand{\thesubfigure}{\roman{subfigure}}
\newenvironment{code}{\captionsetup{type=listing}}{}
% Symbols and Math
\usepackage{amssymb}
\usepackage{amsmath}
% Horizontal lists
\usepackage{tasks}
% Code listings
\usepackage{listings}
\lstset{
breaklines=true,
basicstyle=\ttfamily
}
\lstset{columns=fullflexible,basicstyle=\ttfamily}
\usepackage{minted}
%\usemintedstyle{colorful}
\setminted{breaklines=true, baselinestretch=1}
%\DeclareBoolOption{newfloat}
% References and links
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\addto\extrasenglish{\renewcommand{\chapterautorefname}{Chapter}}
\providecommand*{\listingautorefname}{Listing}
\renewcommand{\lstlistingname}{Listing}
\hypersetup{hidelinks=true}
\usepackage[usestackEOL]{stackengine}
% Custom tab command
\newcommand\tab[1][10mm]{\hspace*{#1}}
% Tables configuration
\setlength{\tabcolsep}{0.6em}
{\renewcommand{\arraystretch}{1.35}
% Footnotes
\renewcommand{\thefootnote}{\textbf{\arabic{footnote}}}
\addtolength{\footnotesep}{1.5mm}
\setlength{\skip\footins}{1cm}
% Bibliography
\usepackage[
backend=bibtex,
style=alphabetic,
citestyle=alphabetic
]{biblatex}
\addbibresource{references}
\nocite{*}
% Headers and footers
\usepackage{fancyhdr,lastpage}
\pagestyle{fancy}
\fancyhf{}
% \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter.\ #1}}{}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[RO,LE]{\textit{\thepage}}}
% Identations and newlines
\usepackage[parfill]{parskip}
\usetikzlibrary{
automata,calc,trees,positioning,arrows,chains,shapes.geometric,
decorations.pathreplacing,decorations.pathmorphing,shapes,
matrix,shapes.symbols
}
\tikzset{
block/.style={rectangle, rounded corners, minimum height=3em, draw=black, very thick,, text centered ,text width=7.5em},
square/.style={rectangle, draw=black, thick,, text centered},
big_block/.style={rectangle, rounded corners, minimum height=3em, draw=black, very thick,, text centered ,text width=10em},
bigger_block/.style={rectangle, rounded corners, minimum height=3em, draw=black, very thick,, text centered ,text width=15em},
line/.style={->, thick,shorten >=1.5pt},
dot_arrow/.style={*->, thick, shorten >=1.5pt},
decoration={brace},
tuborg/.style={decorate},
tubnode/.style={midway, right=2pt},
}
%\DeclareQuoteAlias{spanish/spanish}{catalan}
\DeclareFixedFont{\helvbupc}{T1}{phv}{bx}{u}{2cm}
\DeclareFixedFont{\smallhelvbupc}{T1}{phv}{bx}{u}{1.8cm}
\DeclareFixedFont{\helvupc}{T1}{phv}{m}{u}{2cm}
% El color principal, Pantone 3005
\definecolor{upcblue}{HTML}{007AC9}
% bola upc de 10cm
\def\bola@upc{
\fill [fill=upcblue] (0,0) circle (5);
\foreach \x in {-1.8,0,1.8}
\foreach \y in {-1.8,0,1.8}
{
\fill [fill=white,yshift=1cm] (\x,\y) circle (.7);
}
\draw [color=white,text centered,font=\helvbupc,yshift=0.2cm]
(-1.8,-3 ) node {U}
(0,-3) node {P}
(1.8,-3) node {C};
}
% bola upc amb les lletres centrades a sota
\def\bola@upc@text{
\bola@upc
\draw [color=upcblue,text centered,font=\helvupc]
(0,-7) node {UNIVERSITAT POLIT\`ECNICA DE CATALUNYA};
}
% comanda
\newcommand{\bolaupctext}[1][1cm]{\resizebox{!}{#1}{\tikz\bola@upc@text;}}
\graphicspath{{images/}}
\title{The Design of an Experimental Programming Language and its Translator}
\subtitle{The Nuua Programming Language}
\author{Èrik Campobadal Forés}
\advisor{Sebastia Vila Marta}