-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatm_config.sty
95 lines (83 loc) · 2.62 KB
/
atm_config.sty
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
\ProvidesPackage{atm_config}
%%%%%%%%%%%%%%%%%%
%%%% Packages %%%%
%%%%%%%%%%%%%%%%%%
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{makeidx}
\usepackage{amsmath} %Simboli matematici
\usepackage{amssymb} %Simboli matematici
\usepackage{subfiles} %Per dividere in più file
\usepackage{graphicx} %Inserire figure
\usepackage{geometry} %Per cambiare margini
\usepackage{caption} %Commenti in figure
\usepackage{titlesec} %per modifica title style
\usepackage{chemformula} %per formule chimiche
\usepackage[unicode]{hyperref} %Per i link nel pdf
\usepackage{gensymb} %per il simbolo dei gradi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%% Setup dei link %%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Definisco i link
\hypersetup{
bookmarksnumbered=true,
bookmarksopen=true,
bookmarksopenlevel=1,
colorlinks=true,
linkcolor=blue,
pdfstartview=Fit,
pdfpagemode=UseOutlines,
citecolor=darkblue,
pdftitle={Appunti del corso di Fisica dell'Atmosfera},
pdfauthor={Lorenzo Uboldi},
pdflang={it},
pdfsubject={Appunti del corso di Fisica dell'Atmosfera},
pdfcreator={Lorenzo Uboldi},
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%% Titoli custom %%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filleft\MakeUppercase{\chaptertitlename} \thechapter}
{2ex}
{%\titlerule%
\filleft\Huge}
[%\vspace{1ex}%
\titlerule%barra orizzontale
\vspace{6ex}] %spazio dopo la barra orizzontale del titolo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Intestazioni Custom %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.4pt}
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{%
\ifnum\value{secnumdepth}>0 \thesection.\ \fi#1}}
\fancypagestyle{fancyfront}{%
\fancyhf{}
\fancyhead[LE,RO]{\thepage}%
\fancyhead[LO]{\nouppercase{\rightmark}}%
\fancyhead[RE]{\nouppercase{\leftmark}}%
}
\fancypagestyle{fancymain}{%
\fancyhf{}
\fancyhead[LE,RO]{\thepage}%
\fancyhead[LO]{\nouppercase{\rightmark}}%
\fancyhead[RE]{\nouppercase{%
\chaptername\ \thechapter. \ \leftmark}}%
}
\fancypagestyle{fancyapp}{%
\fancyhf{}
\fancyhead[LE,RO]{\thepage}%
\fancyhead[LO]{\nouppercase{\rightmark}}%
\fancyhead[RE]{\nouppercase{%
\appendixname\ \thechapter. \ \leftmark}}%
}
\addto{\frontmatter}{\pagestyle{fancyfront}}
\addto{\mainmatter}{\pagestyle{fancymain}}
\addto{\appendix}{\pagestyle{fancyapp}}
\addto{\backmatter}{\pagestyle{fancyfront}}