Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Loïc Barrault
supports_cours
Commits
6af995b5
Commit
6af995b5
authored
Nov 06, 2019
by
Loïc Barrault
Browse files
updated macros
parent
24413906
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
LatexColors.incl.tex
0 → 100644
View file @
6af995b5
This diff is collapsed.
Click to expand it.
macros.tex
View file @
6af995b5
...
...
@@ -9,44 +9,21 @@
\usepackage
{
listings
}
\usepackage
[utf8]
{
inputenc
}
\usepackage
[T1]
{
fontenc
}
\usepackage
[francais]
{
babel
}
\usepackage
{
bbding
}
\usepackage
{
multirow
}
\usepackage
[absolute,showboxes,overlay]
{
textpos
}
\textblockorigin
{
10mm
}{
10mm
}
% origine des positions
\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
}}
\definecolor
{
liumbrown
}{
HTML
}{
996633
}
\newcommand
{
\liumbrown
}
[1]
{{
\color
{
liumbrown
}
#1
}}
%
\definecolor
{
liumgreen
}{
rgb
}{
0.010,0.350,0.188
}
\newcommand
{
\liumgreen
}
[1]
{{
\color
{
liumgreen
}
#1
}}
\definecolor
{
liumcyan
}{
HTML
}{
19C1BF
}
\newcommand
{
\liumcyan
}
[1]
{{
\color
{
liumcyan
}
#1
}}
\newcommand
{
\bos
}{
\textnormal
{
<s>
}}
\newcommand
{
\eos
}{
\textnormal
{
</s>
}}
\newcommand
{
\unk
}{
\textnormal
{
<unk>
}}
\newcommand
{
\hs
}{
\hspace
{
1cm
}}
\newcommand
{
\cad
}{
c'est-à-dire
}
% math
\newcommand
{
\ds
}{
\displaystyle
}
...
...
@@ -82,7 +59,7 @@
\newcommand
{
\MC
}{
\multicolumn
}
\newcommand
{
\MR
}
[3]
{
\multirow
{
#1
}{
#2
}{
#3
}}
\newcommand
{
\ul
}{
\underline
}
%
\newcommand{\ul}{\underline}
% for MT
\newcommand
{
\XX
}{
x
}
...
...
@@ -102,6 +79,8 @@
\newcommand
{
\Ra
}{$
\Rightarrow
$}
\newcommand
{
\la
}{$
\leftarrow
$}
\newcommand
{
\La
}{$
\Leftarrow
$}
\newcommand
{
\ua
}{$
\uparrow
$}
\newcommand
{
\Ua
}{$
\Uparrow
$}
\newcommand
{
\eg
}{
e.g.
}
...
...
@@ -114,9 +93,11 @@
\DeclareMathOperator*
{
\argmin
}{
argmin
}
\DeclarePairedDelimiter\floor
{
\lfloor
}{
\rfloor
}
%\newcommand{\ieme}{$i^{\mbox{\tiny{ème}}}$
}
\
newcommand
{
\jeme
}{$
j
^{
\mbox
{
\tiny
{
ème
}}}$
}
\usepackage
{
tikz
}
\
usetikzlibrary
{
arrows.meta, calc, quotes, tikzmark
}
\usepackage
{
fontspec
}
\newfontfamily\DejaSans
{
DejaVu Sans
}
\graphicspath
{{
../
}{
../figures/
}{
./figures/
}}
...
...
macros_beamer.tex
View file @
6af995b5
...
...
@@ -24,3 +24,19 @@
\end{beamercolorbox}
\endgroup
}
\newcommand
{
\source
}
[1]
{{
\color
{
lightgray
}
\tiny
{
[Source: #1]
}}}
% My highlight
%\newcommand{\myhl}[2]{\colorbox{#1}{\strut #2}} %usage \myhl{color}{text}
\newcommand
{
\myhl
}
[2]
{
%
\begingroup\setlength
{
\fboxsep
}{
1pt
}
%
\colorbox
{
#1
}{
\vphantom
{
Ay
}
#2
}
%
\endgroup
}
% \colorbox{#1}{\hspace*{2pt}\vphantom{Ay}#2\hspace*{2pt}}%
\setbeamercolor
{
alerted text
}{
fg=cyan
}
macros_en.tex
View file @
6af995b5
\usepackage
{
ulem
}
\usepackage
{
amssymb
}
\usepackage
{
booktabs
}
\usepackage
{
mathtools
}
\usepackage
{
lmodern
}
\usepackage
{
color
}
\usepackage
{
xcolor
}
\usepackage
{
listings
}
\usepackage
{
tikz
}
\usepackage
[absolute,showboxes,overlay]
{
textpos
}
\textblockorigin
{
10mm
}{
10mm
}
% origine des positions
\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
}}
\definecolor
{
liumbrown
}{
HTML
}{
996633
}
\newcommand
{
\liumbrown
}
[1]
{{
\color
{
liumbrown
}
#1
}}
%
\definecolor
{
liumgreen
}{
rgb
}{
0.010,0.350,0.188
}
\newcommand
{
\liumgreen
}
[1]
{{
\color
{
liumgreen
}
#1
}}
\definecolor
{
liumcyan
}{
HTML
}{
19C1BF
}
\newcommand
{
\liumcyan
}
[1]
{{
\color
{
liumcyan
}
#1
}}
\newcommand
{
\bos
}{
\textnormal
{$
<
$
s
$
>
$}}
\newcommand
{
\eos
}{
\textnormal
{$
<
$
/s
$
>
$}}
\newcommand
{
\unk
}{
\textnormal
{$
<
$
unk
$
>
$}}
\newcommand
{
\hs
}{
\hspace
{
1cm
}}
\newcommand
{
\cad
}{
c'est-à-dire
}
% math
\newcommand
{
\ds
}{
\displaystyle
}
\newcommand
{
\mO
}{{
\bf
O
}}
\newcommand
{
\mR
}{{
\bf
R
}}
\newcommand
{
\mS
}{{
\bf
\Sigma
}}
\newcommand
{
\mW
}{{
\bf
W
}}
\newcommand
{
\vm
}
[1]
{
\mathbf
{
#1
}}
\newcommand
{
\va
}{{
\bf
a
}}
\newcommand
{
\vb
}{{
\bf
b
}}
\newcommand
{
\vo
}{{
\bf
o
}}
\newcommand
{
\vr
}{{
\bf
r
}}
\newcommand
{
\vt
}{{
\bf
t
}}
\newcommand
{
\vw
}{{
\bf
w
}}
\newcommand
{
\vx
}{{
\bf
x
}}
\newcommand
{
\vy
}{{
\bf
y
}}
\newcommand
{
\vz
}{{
\bf
z
}}
\newcommand
{
\vmu
}{{
\bf
\mu
}}
\newcommand*\colvec
[1]
{
\begin{bmatrix}
#1
\end{bmatrix}
}
% 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
$}
%\DeclareMathOperator*{\argmax}{argmax}
\newcommand
{
\argmaxx
}{
\operatornamewithlimits
{
argmax
}}
\newcommand
{
\argmax
}{
\ds
\argmaxx
}
\renewcommand
{
\max
}{
\ds
\operatornamewithlimits
{
max
}}
\renewcommand
{
\min
}{
\ds
\operatornamewithlimits
{
min
}}
\DeclareMathOperator*
{
\argmin
}{
argmin
}
\DeclarePairedDelimiter\floor
{
\lfloor
}{
\rfloor
}
\newcommand
{
\ith
}{$
i
^{
\mbox
{
\tiny
{
th
}}}$}
\newcommand
{
\jth
}{$
j
^{
\mbox
{
\tiny
{
th
}}}$}
\newcommand
{
\ieme
}{$
i
^{
\mbox
{
\tiny
{
th
}}}$}
\newcommand
{
\jeme
}{$
j
^{
\mbox
{
\tiny
{
th
}}}$}
\graphicspath
{{
../
}{
../figures/
}{
./figures/
}}
%{../figures/figures.pivot}{../figures/figures.dataselection}}
macros_fr.tex
0 → 100644
View file @
6af995b5
\usepackage
[french]
{
babel
}
\newcommand
{
\cad
}{
c'est-à-dire
}
\newcommand
{
\ith
}{$
i
^{
\mbox
{
\tiny
{
th
}}}$}
\newcommand
{
\jth
}{$
j
^{
\mbox
{
\tiny
{
th
}}}$}
%\newcommand{\ieme}{$i^{\mbox{\tiny{ème}}}$}
\newcommand
{
\jeme
}{$
j
^{
\mbox
{
\tiny
{
ème
}}}$}
mycolors.tex
0 → 100644
View file @
6af995b5
%see http://latexcolor.com/
%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
}}
\definecolor
{
liumbrown
}{
HTML
}{
996633
}
\newcommand
{
\liumbrown
}
[1]
{{
\color
{
liumbrown
}
#1
}}
\definecolor
{
liumgreen
}{
rgb
}{
0.010,0.350,0.188
}
\newcommand
{
\liumgreen
}
[1]
{{
\color
{
liumgreen
}
#1
}}
\definecolor
{
liumcyan
}{
HTML
}{
19C1BF
}
\newcommand
{
\liumcyan
}
[1]
{{
\color
{
liumcyan
}
#1
}}
\definecolor
{
liumlightgray
}{
rgb
}{
0.9,0.9,0.9
}
\newcommand
{
\liumlightgray
}
[1]
{{
\color
{
liumlightgray
}
#1
}}
\newcommand
{
\myemph
}
[1]
{{
\liumcyan
{
\bf
#1
}}}
\newcommand
{
\green
}
[1]
{{
\color
{
darkpastelgreen
}
#1
}}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment