-
Notifications
You must be signed in to change notification settings - Fork 3
/
template.tex
311 lines (265 loc) · 9.24 KB
/
template.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
%&latex
%
\documentclass[12pt]{report} %Modalità draft settata qui
%---General---%
\usepackage{subfiles} %Modular structure
\usepackage[ddmmyyyy,hhmmss]{datetime} %Compilation date
\usepackage[english]{babel}
\usepackage{microtype}
\usepackage[nointegrals]{wasysym} %fonts support
%---Encoding---%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
%---Math---%
\usepackage{amsmath,amsthm,amstext,amsbsy,amsfonts,amssymb}
\usepackage{mathrsfs}
\usepackage{cancel}
\usepackage{bm}
\usepackage{mathtools}
\usepackage{mathdots}
\usepackage{thmtools}
\usepackage{array}
\usepackage{yhmath}
\usepackage{gensymb}
%---Physics---%
\usepackage{physics}
\usepackage{siunitx}
\sisetup{
separate-uncertainty = true
}
%\usepackage{braket}
\usepackage[version=4]{mhchem}
\usepackage{hepnames}
%---Tables---%
\usepackage{booktabs}
\usepackage{multirow}
\setlength{\aboverulesep}{0pt} %removes annoying spaces in booktabs tables
\setlength{\belowrulesep}{0pt}
\setlength{\extrarowheight}{.75ex}
\setlength\parindent{0pt}
%---Graphics & Plots---%
\usepackage{graphicx}
\usepackage[usenames, dvipsnames, table]{xcolor} %colori
\usepackage{color}
\usepackage{float}
\usepackage{wrapfig}
\usepackage[font=footnotesize, labelfont=bf,
format=hang, labelformat=parens,
labelsep=endash, justification=raggedright,
singlelinecheck=on]{caption} %fancy captions
\usepackage{subcaption}
\captionsetup[sub]{font=footnotesize,
labelsep=endash, justification=centering}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{tikzmark}
\usetikzlibrary{patterns}
\usepackage{epstopdf}
\usepackage{gnuplottex}
\usepackage{soul}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{fancybox}
\usepackage{framed}
%---(Inkscape imports)---%
\usepackage{import}
\usepackage{xifthen}
\usepackage{pdfpages}
\usepackage{transparent}
\newcommand{\incfig}[1]{%
\def\svgwidth{\columnwidth}
\import{./figures/}{#1.pdf_tex}
}
\definecolor{mygray}{gray}{0.6}
%---Indeces, links, bibliography---%
\usepackage{makeidx} %Indice analitico
\usepackage[stable]{footmisc}
\usepackage{hyperref} %hyperref va caricato sempre dopo footmisc, altrimenti le footnotes si buggano e riportano tutte alla prima pagina
\usepackage[symbol=$\wedge$,numberlinked=false]{footnotebackref}
%---Utilities---%
\usepackage{comment}
\usepackage{xspace}
\usepackage{marginnote}
\usepackage{ragged2e}
\usepackage{enumerate}
\usepackage{enumitem}
\usepackage{etoolbox}
\usepackage{xargs} % Use more than one optional parameter in a new commands
\usepackage{lipsum}
%---Additional symbols---%
%\bigcdot
\makeatletter
\newcommand*\bigcdot{\mathpalette\bigcdot@{.5}}
\newcommand*\bigcdot@[2]{\mathbin{\vcenter{\hbox{\scalebox{#2}{$\m@th#1\bullet$}}}}}
\makeatother
%Circled symbols
\makeatletter
\newcommand{\ogeneric}[2][0.7]{%
\vphantom{\oplus}\mathpalette\o@generic{{#1}{#2}}%
}
\newcommand{\o@generic}[2]{\o@@generic#1#2}
\newcommand{\o@@generic}[3]{%
\begingroup
\sbox\z@{$\m@th#1\oplus$}%
\dimen@=\dimexpr\ht\z@+\dp\z@\relax
\savebox\tw@[\totalheight]{$\m@th#1\bigcirc$}%
\makebox[\wd\z@]{%
\ooalign{%
$#1\vcenter{\hbox{\resizebox{\dimen@}{!}{\usebox\tw@}}}$\cr
\hidewidth
$#1\vcenter{\hbox{\resizebox{#2\dimen@}{!}{$#1\vphantom{\oplus}{#3}$}}}$%
\hidewidth
\cr
}%
}%
\endgroup
}
\makeatother
\newcommand{\ole}{\mathrel{\ogeneric{<}}}
\newcommand{\oleq}{\mathrel{\ogeneric[0.6]{\leq}}}
\newcommand{\osubseteq}{\mathrel{\ogeneric[0.6]{\subseteq}}}
%---New environments---%
%Exercises + Examples
\newenvironment{myleftbar}{%
\def\FrameCommand{\hspace{0.6em}\vrule width 2pt\hspace{0.6em}}%
\MakeFramed{\advance\hsize-\width \FrameRestore}}%
{\endMakeFramed}
\declaretheoremstyle[
spaceabove=6pt,
spacebelow=6pt
headfont=\normalfont\bfseries,
headpunct={} ,
headformat={\cornersize*{2pt}\ovalbox{\NAME~\NUMBER\ifstrequal{\NOTE}{}{\relax}{\NOTE}:}},
bodyfont=\normalfont,
]{exobreak}
\declaretheorem[style=exobreak, name=Exercise,%
postheadhook=\leavevmode\myleftbar, %
prefoothook = \endmyleftbar]{exo}
\declaretheorem[style=exobreak, name=Example,%
postheadhook=\leavevmode\myleftbar, %
prefoothook = \endmyleftbar]{example}
%---Custom commands---%
\newcommand{\q}[1]{``#1''} %quotes
\newcommand{\hlc}[2]{%
\colorbox{#1!50}{$\displaystyle#2$}} %highlight
\newcommand{\bb}[1]{\mathbb{#1}} %faster \mathbb
\newcommand{\breakpage}{\begin{center}
$\ast$~$\ast$~$\ast$
\end{center}} %fancy page separator
\newcommand{\lesson}[2]{\marginpar{(Lesson #1 of #2)\\Compiled: \today}} %Lesson number, date and compilation
%---Dots---%
\newcommand{\danger}{{\textcolor{Red}{\fontencoding{U}\fontfamily{futs}\selectfont\char 66\relax}}}
\newcommand{\reddot}{\href{http://bit.ly/2Tj5OEj}{\tikz\draw[red,fill=red] (0,0) circle (.5ex);}}
\newcommand{\bluedot}{\href{\tikz\draw[blue,fill=blue] (0,0) circle (.5ex);}{http://bit.ly/2Tj5OEj}}
\newcommand{\greendot}{\href{http://bit.ly/2Tj5OEj}{\tikz\draw[green,fill=green] (0,0) circle (.5ex);}}
\newcommand{\orangedot}{\href{http://bit.ly/2Tj5OEj}{\tikz\draw[orange,fill=orange] (0,0) circle (.5ex);}}
%---Fancy stuff---%
\usepackage[Bjornstrup]{fncychap}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\renewcommand{\headrulewidth}{0pt} % no line in header area
\fancyfoot{} % clear all footer fields
%\fancyfoot[R]{A.A. 2018/19} % other info in "inner" position of footer line
\cfoot{\thepage}
%---Theorems---%
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}{Lemma}[section]
\newtheorem{prop}{Proposition}[section]
\newtheorem{axi}{Axiom}
\newtheorem{pst}{Postulato}
\theoremstyle{definition}
\newtheorem{dfn}{Definition}
%---Colored blocks---%
\newenvironment{expl}{\begin{mdframed}[hidealllines=true,backgroundcolor=green!20,innerleftmargin=3pt,innerrightmargin=3pt,leftmargin=-3pt,rightmargin=-3pt]}{\end{mdframed}} %Box di colore verde
\newenvironment{appr}{\begin{mdframed}[hidealllines=true,backgroundcolor=blue!10,innerleftmargin=3pt,innerrightmargin=3pt,leftmargin=-3pt,rightmargin=-3pt]}{\end{mdframed}} %Approfondimenti matematici (box di colore blu)
%---Geometry (Normal pages)---%
\usepackage[a4paper]{geometry}
\newgeometry{inner=20mm,
outer=49mm,% = marginparsep + marginparwidth
% + 5mm (between marginpar and page border)
top=20mm,
bottom=25mm,
marginparsep=6mm,
marginparwidth=30mm}
%Raggedright marginpar
\makeatletter
\renewcommand{\@marginparreset}{%
\reset@font\small
\raggedright
\slshape
\@setminipage
}
\makeatother
\makeindex
\begin{document}
%---Frontpage---%
%Custom geometry for the frontpage
\newgeometry{total={170mm,257mm}, left=20mm, top=20mm}
\begin{center}
\line (1,0){350} \\
\textsc{\normalsize Trascrizione degli appunti delle lezioni di}\\
[0.25in]
\huge{\bfseries Istituzioni di fisica nucleare e subnucleare}\\
[2mm]
\textsc{\normalsize Tenute dal Prof.ssa \textit{Donatella Lucchesi}}
\vspace{-0.5em}\\
\textsc{\normalsize Presso l'Università di Padova}\\
\vspace{-1em}
\line (1,0){350} \\
[0.2cm]
\textsc{\normalsize A cura di: \textit{Francesco Manzali}}\\
\textsc{\normalsize Anno accademico 2018-2019}\\
{\scriptsize Compilato il \today}
\end{center}
%---Frontpage End---%
%---Geometry (Normal pages)---%
\newgeometry{inner=20mm,
outer=49mm,% = marginparsep + marginparwidth
% + 5mm (between marginpar and page border)
top=20mm,
bottom=25mm,
marginparsep=6mm,
marginparwidth=30mm}
\makeatletter
\renewcommand{\@marginparreset}{%
\reset@font\small
\raggedright
\slshape
\@setminipage
}
\makeatother
\tableofcontents
\clearpage
\chapter*{Introduzione}
Buonsalve!\\
In questo documento ho cercato di riordinare gli appunti del corso di Istituzioni di fisica nucleare e subnucleare tenuto dalla professoressa Donatella Lucchesi presso il Dipartimento di Fisica dell'Università di Padova nel corso del secondo semestre del 2018-19.\\
Potrebbero esserci errori di formattazione, parentesi saltate, o peggio, coefficienti/esponenti/segni errati in giro (ma non dovrebbero essere tanti). Se ne sgamate qualcuno, fatemi sapere. Ditemi anche (se avete tempo e non vi scoccia) se ci sono passaggi non chiari.\\
Prima di iniziare, ultimo disclaimer (che dovrebbe essere scontato dato che non ho una laurea): questi appunti non sono da intendere come sostituzione delle lezioni, o di altre dispense già presenti.\\
Buon viaggio! :)
\begin{flushright}
\textit{Francesco Manzali}, 20/02/2019
\end{flushright}
\clearpage
\section*{Aggiornamenti}
\begin{table}[hb]
\centering
\begin{tabular}{|cm{3cm}m{5cm}m{3cm}|}\toprule
Data & Aggiunte & Errata corrige & Commenti\\\midrule
\textbf{23/10/2018} & Prima pubblicazione & & \\
\bottomrule
\end{tabular}
\caption{Cronologia di modifiche/aggiornamenti agli appunti}
\label{updates}
\end{table}
\clearpage
\chapter{Test}
\missingfigure{Test}
%---Bibliography---%
\clearpage
\begin{thebibliography}{9}
\end{thebibliography}
%---Analytical Index---%
\printindex
\end{document}