macros.tex 3.47 KB
Newer Older
Loïc Barrault's avatar
Loïc Barrault committed
1
2

\usepackage{ulem}
Loïc Barrault's avatar
Loïc Barrault committed
3
4
5
\usepackage{ amssymb }
\usepackage{booktabs}
\usepackage{mathtools}
Loïc Barrault's avatar
Loïc Barrault committed
6
\usepackage{lmodern}
7
\usepackage{color}
Loïc Barrault's avatar
Loïc Barrault committed
8
\usepackage{xcolor}
9
\usepackage{listings}
10
11
12
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
Loïc Barrault's avatar
Loïc Barrault committed
13
14
15

\usepackage[absolute,showboxes,overlay]{textpos}
\textblockorigin{10mm}{10mm} % origine des positions
Loïc Barrault's avatar
Loïc Barrault committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

\normalem

%colors
\newcommand{\red}[1]{{\color{red} #1}}
\newcommand{\blue}[1]{{\color{blue} #1}}
\newcommand{\cyan}[1]{{\color{cyan} #1}}
\newcommand{\orange}[1]{{\color{orange} #1}}

\newcommand{\edinblue}[1]{{\color{edinblue} #1}}
\newcommand{\edinred}[1]{{\color{edinred} #1}}
\newcommand{\edinorange}[1]{{\color{edinorange} #1}}
\newcommand{\edinmagenta}[1]{{\color{edinmagenta} #1}}
\newcommand{\edingreen}[1]{{\color{edingreen} #1}}
\newcommand{\liumlightgray}[1]{{\color{liumlightgray} #1}}

32
33
34
\definecolor{liumbrown}{HTML}{996633}
\newcommand{\liumbrown}[1]{{\color{liumbrown} #1}}
%
Loïc Barrault's avatar
Loïc Barrault committed
35
36
37
38

\definecolor{liumgreen}{rgb}{0.010,0.350,0.188}
\newcommand{\liumgreen}[1]{{\color{liumgreen} #1}}

39
40
41
42
\definecolor{liumcyan}{HTML}{19C1BF}
\newcommand{\liumcyan}[1]{{\color{liumcyan} #1}}


Loïc Barrault's avatar
Loïc Barrault committed
43
44
45
\newcommand{\bos}{\textnormal{<s>}}
\newcommand{\eos}{\textnormal{</s>}}
\newcommand{\unk}{\textnormal{<unk>}}
46

Loïc Barrault's avatar
Loïc Barrault committed
47
48
49
50
51
\newcommand{\hs}{\hspace{1cm}}

\newcommand{\cad}{c'est-à-dire}

% math
52
\newcommand{\ds}{\displaystyle}
Loïc Barrault's avatar
Loïc Barrault committed
53
54
55
\newcommand{\mO}{{\bf O}}
\newcommand{\mR}{{\bf R}}
\newcommand{\mS}{{\bf \Sigma}}
56
\newcommand{\mW}{{\bf W}}
Loïc Barrault's avatar
Loïc Barrault committed
57

58
\newcommand{\vm}[1]{ \mathbf{#1}}
Loïc Barrault's avatar
Loïc Barrault committed
59
60
61
62
63
\newcommand{\va}{{\bf a}}
\newcommand{\vb}{{\bf b}}
\newcommand{\vo}{{\bf o}}
\newcommand{\vr}{{\bf r}}
\newcommand{\vt}{{\bf t}}
Loïc Barrault's avatar
Loïc Barrault committed
64
\newcommand{\vw}{{\bf w}}
Loïc Barrault's avatar
Loïc Barrault committed
65
66
\newcommand{\vx}{{\bf x}}
\newcommand{\vy}{{\bf y}}
67
\newcommand{\vz}{{\bf z}}
Loïc Barrault's avatar
Loïc Barrault committed
68
69
\newcommand{\vmu}{{\bf \mu}}

70
\newcommand*\colvec[1]{\begin{bmatrix}#1\end{bmatrix}}
Loïc Barrault's avatar
Loïc Barrault committed
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

% handy shortcuts for tables
\newcommand{\tabcr}[1]{ \begin{tabular}[c]{r} #1 \end{tabular} }
\newcommand{\tabcc}[1]{ \begin{tabular}[c]{c} #1 \end{tabular} }
\newcommand{\tabcl}[1]{ \begin{tabular}[c]{l} #1 \end{tabular} }
\newcommand{\tabclS}[1]{\begin{tabular}[c]{@{}l@{}} #1 \end{tabular}}
\newcommand{\tabtc}[1]{ \begin{tabular}[t]{c} #1 \end{tabular} }
\newcommand{\tabtl}[1]{ \begin{tabular}[t]{l} #1 \end{tabular} }
\newcommand{\tabtlS}[1]{\begin{tabular}[t]{@{}l@{}} #1 \end{tabular}}
\newcommand{\tabtrl}[1]{ \begin{tabular}[t]{rl} #1 \end{tabular} }
\newcommand{\tabcrl}[1]{ \begin{tabular}[c]{rl} #1 \end{tabular} }

\newcommand{\MC}{\multicolumn}
\newcommand{\MR}[3]{\multirow{#1}{#2}{#3}}
\newcommand{\ul}{\underline}

% for MT
\newcommand{\XX}{x}
\newcommand{\EE}{e}
\newcommand{\FF}{f}
\newcommand{\AAA}{{\cal{A}}}
\newcommand{\PFAE}{\Pr(\FF,\AAA|\EE)}
\newcommand{\NUL}{{\sc NUL}}
\newcommand{\hopt}{h_\textrm{opt}}
\newcommand{\bleu}{\textsc{Bleu}}

\newcommand{\tis}{\tilde{s}}
\newcommand{\tit}{\tilde{t}}
\newcommand{\tip}{\tilde{p}}

\newcommand{\ra}{$\rightarrow$}
\newcommand{\Ra}{$\Rightarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
103
104
\newcommand{\la}{$\leftarrow$}
\newcommand{\La}{$\Leftarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
105

Loïc Barrault's avatar
Loïc Barrault committed
106
\newcommand{\eg}{e.g.}
Loïc Barrault's avatar
Loïc Barrault committed
107
108
109
110

%\DeclareMathOperator*{\argmax}{argmax}
\newcommand{\argmaxx}{\operatornamewithlimits{argmax}}
\newcommand{\argmax}{ \ds \argmaxx}
111
112
113
114
115
\renewcommand{\max}{ \ds \operatornamewithlimits{max}}
\renewcommand{\min}{ \ds \operatornamewithlimits{min}}

\DeclareMathOperator*{\argmin}{argmin}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
Loïc Barrault's avatar
Loïc Barrault committed
116

Loïc Barrault's avatar
Loïc Barrault committed
117
%\newcommand{\ieme}{$i^{\mbox{\tiny{ème}}}$}
Loïc Barrault's avatar
Loïc Barrault committed
118
119
120
121
122
123
\newcommand{\jeme}{$j^{\mbox{\tiny{ème}}}$}



\graphicspath{{../}{../figures/}{./figures/}}
%{../figures/figures.pivot}{../figures/figures.dataselection}}