macros.tex 3.34 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} 
Loïc Barrault's avatar
Loïc Barrault committed
16
17
18

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

\normalem
Loïc Barrault's avatar
Loïc Barrault committed
21
 
Loïc Barrault's avatar
Loïc Barrault committed
22
23
24
\newcommand{\bos}{\textnormal{<s>}}
\newcommand{\eos}{\textnormal{</s>}}
\newcommand{\unk}{\textnormal{<unk>}}
25

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

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

Loïc Barrault's avatar
Loïc Barrault committed
29
30

% math
31
\newcommand{\ds}{\displaystyle}
Loïc Barrault's avatar
Loïc Barrault committed
32
33
34
\newcommand{\mO}{{\bf O}}
\newcommand{\mR}{{\bf R}}
\newcommand{\mS}{{\bf \Sigma}}
35
\newcommand{\mW}{{\bf W}}
Loïc Barrault's avatar
Loïc Barrault committed
36

37
\newcommand{\vm}[1]{ \mathbf{#1}}
Loïc Barrault's avatar
Loïc Barrault committed
38
39
\newcommand{\va}{{\bf a}}
\newcommand{\vb}{{\bf b}}
Loïc Barrault's avatar
Loïc Barrault committed
40
\newcommand{\vc}{\mathbf{c}}
Loïc Barrault's avatar
Loïc Barrault committed
41
42
43
\newcommand{\vo}{{\bf o}}
\newcommand{\vr}{{\bf r}}
\newcommand{\vt}{{\bf t}}
Loïc Barrault's avatar
Loïc Barrault committed
44
\newcommand{\vw}{{\bf w}}
Loïc Barrault's avatar
Loïc Barrault committed
45
46
\newcommand{\vx}{{\bf x}}
\newcommand{\vy}{{\bf y}}
47
\newcommand{\vz}{{\bf z}}
Loïc Barrault's avatar
Loïc Barrault committed
48
\newcommand{\vmu}{{\bf \mu}}
Loïc Barrault's avatar
Loïc Barrault committed
49
50
51
\newcommand{\wij}{w_{ij}}                       % poids w_ij

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

53
\newcommand*\colvec[1]{\begin{bmatrix}#1\end{bmatrix}}
Loïc Barrault's avatar
Loïc Barrault committed
54
55
56
57
58
59
60
61
62
63
64
65
66
67

% 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
68
%\newcommand{\ul}{\underline}
Loïc Barrault's avatar
Loïc Barrault committed
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

% 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
86
87
\newcommand{\la}{$\leftarrow$}
\newcommand{\La}{$\Leftarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
88
89
\newcommand{\da}{$\downarrow$}
\newcommand{\Da}{$\Downarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
90
91
\newcommand{\ua}{$\uparrow$}
\newcommand{\Ua}{$\Uparrow$}
Loïc Barrault's avatar
Loïc Barrault committed
92
93
\newcommand{\lra}{$\leftrightarrow$}
\newcommand{\Lra}{$\Leftrightarrow$}
Loïc Barrault's avatar
Loïc Barrault committed
94

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

Loïc Barrault's avatar
Loïc Barrault committed
97
98
99
\newcommand{\todo}[1]{{\color{red} @@ #1 @@}}


Loïc Barrault's avatar
Loïc Barrault committed
100
101
102
%\DeclareMathOperator*{\argmax}{argmax}
\newcommand{\argmaxx}{\operatornamewithlimits{argmax}}
\newcommand{\argmax}{ \ds \argmaxx}
103
104
105
106
107
\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
108

Loïc Barrault's avatar
Loïc Barrault committed
109
110
\usepackage{tikz}
\usetikzlibrary{arrows.meta, calc, quotes, tikzmark}
Loïc Barrault's avatar
Loïc Barrault committed
111

Loïc Barrault's avatar
Loïc Barrault committed
112
113
\usepackage{fontspec}
\newfontfamily\DejaSans{DejaVu Sans}
Loïc Barrault's avatar
Loïc Barrault committed
114
115


Loïc Barrault's avatar
Loïc Barrault committed
116
117
118
\newcommand{\annot}[2]{[#1]$_{#2}$}
%\newcommand{\annot}[2]{#1\_#2}

119
120
\newcommand{\tuple}[1]{\textlangle#1\textrangle}

Loïc Barrault's avatar
Loïc Barrault committed
121
122
123
\newcommand{\B}[1]{B$_{#1}$}
\newcommand{\I}[1]{I$_{#1}$}

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

Loïc Barrault's avatar
Loïc Barrault committed
125
126
\graphicspath{{../}{../figures/}{./figures/}}
%{../figures/figures.pivot}{../figures/figures.dataselection}}
Loïc Barrault's avatar
Loïc Barrault committed
127