Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
polimi-cheatsheet
GitHub Repository: polimi-cheatsheet/GAL-cheatsheet
Path: blob/master/header.tex
185 views
1
\documentclass[10pt,landscape]{article}
2
\usepackage[italian]{babel}
3
\usepackage[utf8]{inputenc}
4
\usepackage{multicol}
5
\usepackage{calc}
6
\usepackage{ifthen}
7
\usepackage[landscape]{geometry}
8
\usepackage{hyperref}
9
\usepackage{amsmath}
10
\usepackage{amssymb}
11
\usepackage{tabularx}
12
\usepackage{caption}
13
\usepackage{verbatim}
14
\usepackage{systeme}
15
\usepackage{nicefrac}
16
\usepackage{accents}
17
\usepackage{enumitem}
18
\usepackage[printwatermark]{xwatermark}
19
\usepackage{tikz}
20
\usetikzlibrary{calc,matrix}
21
\usepackage[compact]{titlesec}
22
\usepackage{microtype}
23
\usepackage[flushleft]{threeparttable}
24
\usepackage{textcomp}
25
\usepackage{pifont}
26
\usepackage{pgfplots}
27
28
% This sets page margins to .5 inch if using letter paper, and to 1cm
29
% if using A4 paper. (This probably isn't strictly necessary.)
30
% If using another size paper, use default 1cm margins.
31
\ifthenelse{\lengthtest { \paperwidth = 11in}}
32
{ \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} }
33
{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}}
34
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }
35
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }
36
}
37
38
% Turn off header and footer
39
\pagestyle{empty}
40
41
% Reduce size of \section e \subsection
42
\titleformat{\section}{\normalfont\large\bfseries}{\thesection}{1em}{}
43
\titleformat{\subsection}{\normalfont\normalsize\bfseries}{\thesubsection}{1em}{}
44
\titlespacing{\section}{0pt}{0ex}{-0.5ex}
45
\titlespacing{\subsection}{0pt}{0ex}{-0.5ex}
46
47
% Define BibTeX command
48
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
49
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
50
51
% Don't print section numbers
52
\setcounter{secnumdepth}{0}
53
54
55
\setlength{\parindent}{0pt}
56
\setlength{\parskip}{0pt plus 0.5ex}
57
58
% <v,w> prodotto scalare
59
\newcommand{\product}[2]{\langle\,#1,#2\,\rangle}
60
% sottolinea i vettori
61
\renewcommand{\vec}[1]{\underline{#1}}
62
% funzioni non defininte
63
\newcommand{\tr}{\mathrm{tr}}
64
\newcommand{\diag}{\mathrm{diag}}
65
\newcommand{\rk}{\mathrm{rk}}
66
\newcommand{\sgn}{\mathrm{sgn}}
67
\newcommand{\Col}{\mathrm{Col}}
68
\newcommand{\Row}{\mathrm{Row}}
69
\newcommand{\Imm}{\mathrm{Im}}
70
71
\setlist[itemize]{noitemsep, nolistsep}
72
73
% numeri cerchiati
74
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
75
\node[shape=circle,draw,inner sep=2pt] (char) {#1};}}
76
77
\newcommand{\Lin}{\mathcal{L}}
78
\newcommand{\Base}{\mathcal{B}}
79
\newcommand{\Case}{\mathcal{C}}
80
81
\newcommand{\cmark}{\ding{51}}%
82
\newcommand{\xmark}{\ding{55}}%
83