-
Notifications
You must be signed in to change notification settings - Fork 1
/
preamble.tex
110 lines (95 loc) · 3.2 KB
/
preamble.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
\documentclass[a4paper,twoside, twocolumn]{report}
\setlength{\columnsep}{2em}
\usepackage{float}
\usepackage{etoc}
\usepackage{verbatim}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsbsy,amssymb,amsfonts, amsthm}
\usepackage[version=4]{mhchem}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{xcolor}
\usepackage[hypertexnames=false]{hyperref}
\usepackage{nameref}
\usepackage{framed}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{appendix}
\usepackage{tikz}
\usetikzlibrary{math}
\usetikzlibrary{shapes,arrows}
\usepackage{pgfplots}
\usepackage{tcolorbox}
\usepackage{listings}
\usepackage{fancyhdr}
\usepackage{witharrows}
\usepackage{circuitikz}
\pgfplotsset{
compat=1.16
}
\newsavebox{\mybox}
\definecolor{myblue}{RGB}{0,163,243}
\renewcommand{\footrulewidth}{0.4pt}% default is 0pt
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\itshape\nouppercase{\rightmark}}
\fancyhead[RE,LO]{\itshape\nouppercase{\leftmark}}
\fancyfoot[LE,CO]{Sistemi Complessi}
\fancyfoot[LE,RO]{\thepage}
\newcounter{Sec}
\renewcommand*\thesection{\arabic{section}}
\newtcolorbox{redbox}[1]
{opacityback=1, colback=red!5!white,opacityframe=0.09, colframe=red!75!black,fonttitle=\bfseries, coltitle=black,title=#1}
\newtcolorbox{greenbox}[1]
{opacityback=1, colback=green!5!white,colframe=green!75!black, opacityframe=0.09,fonttitle=\bfseries,coltitle=black, title=#1}
\newtcolorbox{bluebox}[1]
{opacityback=1, colback=myblue!5!white,colframe=myblue!75!black,opacityframe=0.09, fonttitle=\bfseries,coltitle=black,title=#1}
\lstset{
basicstyle=\ttfamily,
columns=fullflexible,
frame=single,
breaklines=true,
postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
}
% figure support
\usepackage{import}
\usepackage{xifthen}
\pdfminorversion=7
\usepackage{pdfpages}
\usepackage{transparent}
\newcommand{\incfig}[1]{%
\def\svgwidth{\columnwidth}
\import{./figures/}{#1.pdf_tex}
}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[subsection] % reset theorem numbering for each chapter
\theoremstyle{definition}
\newtheorem{defn}{Definizione}[subsection] % definition numbers are dependent on theorem numbers
\newtheorem{exmp}{Esempio}[subsection]
\newtheorem{ex}{Esercizio}[subsection] % definition numbers are dependent on theorem numbers
\newcommand{\ffrac}[2]{\ensuremath{\frac{\displaystyle #1}{\displaystyle #2}}}
\newcommand{\angstrom}{\mbox{\normalfont\AA}}
\newcommand{\vect}[1]{\boldsymbol{#1}}
%\renewcommand{\[}{\begin{equation}}
%\renewcommand{\]}{\end{equation}}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\counterwithin*{equation}{section}
\newcommand{\rom}[1]{\uppercase\expandafter{\romannumeral #1\relax}}
\newlength\tocrulewidth
\setlength{\tocrulewidth}{0.5pt}
\newcommand{\mylocaltoc}{
\begingroup
\parindent=0em
\etocsetstyle {section}
{}
{\leavevmode\leftskip 0cm\relax}
{\bfseries\normalsize\makebox[.5cm][l]{\etocnumber.}%
\etocname\nobreak\hfill\nobreak
\rlap{\makebox[1cm]{\mdseries\etocpage}}\par}
{}
\etocsettocstyle{\rule{\linewidth}{\tocrulewidth}\vskip0.5\baselineskip}{\rule{\linewidth}{\tocrulewidth}}
\localtableofcontents
\endgroup}
% \xrightarrow[]{\mathcal{F}^{-1}}