macros.tex 3.65 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}
Loïc Barrault's avatar
Loïc Barrault committed
7
8
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
9
\usepackage{color}
Loïc Barrault's avatar
Loïc Barrault committed
10
\usepackage{xcolor}
11
\usepackage{listings}
Loïc Barrault's avatar
Loïc Barrault committed
12
13
\usepackage{bbding}
\usepackage{multirow}
Loïc Barrault's avatar
Loïc Barrault committed
14
\usepackage{bm}
Loïc Barrault's avatar
Loïc Barrault committed
15
%\usepackage{enumitem} 
16
17
18
19
20
21
\usepackage{algorithm,algorithmicx}
\usepackage[noend]{algpseudocode}
\usepackage{multicol}
\usepackage{array}
\usepackage{rotating}
\usepackage{hyperref}
Loïc Barrault's avatar
Loïc Barrault committed
22

Loïc Barrault's avatar
Loïc Barrault committed
23
24
%\usepackage[dvips,xetex]{graphicx}

25
26
27
28
29
30
31
32
33
34
\usepackage{tikz}
\usetikzlibrary{arrows.meta, calc, quotes, tikzmark}
\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows}
\usepackage{pgfplots}

\usepackage{fontspec}
\newfontfamily\DejaSans{DejaVu Sans}



Loïc Barrault's avatar
Loïc Barrault committed
35
36
\usepackage[absolute,showboxes,overlay]{textpos}
\textblockorigin{10mm}{10mm} % origine des positions
Loïc Barrault's avatar
Loïc Barrault committed
37
38

\normalem
Loïc Barrault's avatar
Loïc Barrault committed
39
 
Loïc Barrault's avatar
Loïc Barrault committed
40
41
42
\newcommand{\bos}{\textnormal{<s>}}
\newcommand{\eos}{\textnormal{</s>}}
\newcommand{\unk}{\textnormal{<unk>}}
43

Loïc Barrault's avatar
Loïc Barrault committed
44
45
\newcommand{\hs}{\hspace{1cm}}

Loïc Barrault's avatar
Loïc Barrault committed
46

Loïc Barrault's avatar
Loïc Barrault committed
47
% math
48
\newcommand{\ds}{\displaystyle}
Loïc Barrault's avatar
Loïc Barrault committed
49
50
51
\newcommand{\mO}{{\bf O}}
\newcommand{\mR}{{\bf R}}
\newcommand{\mS}{{\bf \Sigma}}
52
\newcommand{\mW}{{\bf W}}
Loïc Barrault's avatar
Loïc Barrault committed
53

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

\newcommand{\half}{\frac{1}{2}}         % fraction un demi
Loïc Barrault's avatar
Loïc Barrault committed
69

70
71
\newcommand{\R}{\mathbb{R}}

72
\newcommand*\colvec[1]{\begin{bmatrix}#1\end{bmatrix}}
Loïc Barrault's avatar
Loïc Barrault committed
73
74
75
76
77
78
79
80
81
82
83
84
85
86

% 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}}
Loïc Barrault's avatar
Loïc Barrault committed
87
%\newcommand{\ul}{\underline}
Loïc Barrault's avatar
Loïc Barrault committed
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

% 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
105
106
\newcommand{\la}{$\leftarrow$}
\newcommand{\La}{$\Leftarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
107
108
\newcommand{\da}{$\downarrow$}
\newcommand{\Da}{$\Downarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
109
110
\newcommand{\ua}{$\uparrow$}
\newcommand{\Ua}{$\Uparrow$}
Loïc Barrault's avatar
Loïc Barrault committed
111
112
\newcommand{\lra}{$\leftrightarrow$}
\newcommand{\Lra}{$\Leftrightarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
113

Loïc Barrault's avatar
Loïc Barrault committed
114
\newcommand{\eg}{e.g.}
Loïc Barrault's avatar
Loïc Barrault committed
115

Loïc Barrault's avatar
Loïc Barrault committed
116
117
118
\newcommand{\todo}[1]{{\color{red} @@ #1 @@}}


Loïc Barrault's avatar
Loïc Barrault committed
119
120
121
%\DeclareMathOperator*{\argmax}{argmax}
\newcommand{\argmaxx}{\operatornamewithlimits{argmax}}
\newcommand{\argmax}{ \ds \argmaxx}
122
123
124
125
126
\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
127
128
129



Loïc Barrault's avatar
Loïc Barrault committed
130
131
132
\newcommand{\annot}[2]{[#1]$_{#2}$}
%\newcommand{\annot}[2]{#1\_#2}

133
134
\newcommand{\tuple}[1]{\textlangle#1\textrangle}

Loïc Barrault's avatar
Loïc Barrault committed
135
136
137
\newcommand{\B}[1]{B$_{#1}$}
\newcommand{\I}[1]{I$_{#1}$}

Loïc Barrault's avatar
Loïc Barrault committed
138

Loïc Barrault's avatar
Loïc Barrault committed
139
140
\graphicspath{{../}{../figures/}{./figures/}}
%{../figures/figures.pivot}{../figures/figures.dataselection}}
Loïc Barrault's avatar
Loïc Barrault committed
141