Commit 333d648c authored by Loïc Barrault's avatar Loïc Barrault
Browse files

more macros

parent 84b1b09d
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
\usepackage{bbding} \usepackage{bbding}
\usepackage{multirow} \usepackage{multirow}
\usepackage{bm} \usepackage{bm}
%\usepackage{enumitem}
\usepackage[absolute,showboxes,overlay]{textpos} \usepackage[absolute,showboxes,overlay]{textpos}
\textblockorigin{10mm}{10mm} % origine des positions \textblockorigin{10mm}{10mm} % origine des positions
...@@ -107,6 +108,9 @@ ...@@ -107,6 +108,9 @@
\newcommand{\annot}[2]{[#1]$_{#2}$} \newcommand{\annot}[2]{[#1]$_{#2}$}
%\newcommand{\annot}[2]{#1\_#2} %\newcommand{\annot}[2]{#1\_#2}
\newcommand{\B}[1]{B$_{#1}$}
\newcommand{\I}[1]{I$_{#1}$}
\graphicspath{{../}{../figures/}{./figures/}} \graphicspath{{../}{../figures/}{./figures/}}
%{../figures/figures.pivot}{../figures/figures.dataselection}} %{../figures/figures.pivot}{../figures/figures.dataselection}}
...@@ -26,13 +26,11 @@ ...@@ -26,13 +26,11 @@
} }
\newcommand{\source}[1]{{\color{lightgray} \tiny{[Source: #1]}}} \newcommand{\source}[1]{{\color{darkgray} \tiny{[Source: #1]}}}
% My highlight % My highlight
%\newcommand{\myhl}[2]{\colorbox{#1}{\strut #2}} %usage \myhl{color}{text} %\newcommand{\myhl}[2]{\colorbox{#1}{\strut #2}} %usage \myhl{color}{text}
%\newcommand<>\hlbox[2]{\only#3{\colorbox{#1}{#2}}}
\newcommand<>{\myhl}[2]{% \newcommand<>{\myhl}[2]{%
\alt#3{\begingroup\setlength{\fboxsep}{0pt}% \alt#3{\begingroup\setlength{\fboxsep}{0pt}%
\colorbox{#1}{\vphantom{Ay}#2}% \colorbox{#1}{\vphantom{Ay}#2}%
...@@ -41,15 +39,6 @@ ...@@ -41,15 +39,6 @@
\colorbox{white}{\vphantom{Ay}#2}% \colorbox{white}{\vphantom{Ay}#2}%
\endgroup} \endgroup}
} }
% \colorbox{#1}{\hspace*{2pt}\vphantom{Ay}#2\hspace*{2pt}}%
%\newcommand<>{\myhlol}[2]{%
% \only#3{ \begingroup\setlength{\fboxsep}{1pt}%
% \colorbox{#1}{\vphantom{Ay}#2}%
% \endgroup
% }
%}
\setbeamercolor{alerted text}{fg=cyan} \setbeamercolor{alerted text}{fg=cyan}
......
...@@ -25,5 +25,9 @@ ...@@ -25,5 +25,9 @@
\newcommand{\liumlightgray}[1]{{\color{liumlightgray} #1}} \newcommand{\liumlightgray}[1]{{\color{liumlightgray} #1}}
\newcommand{\myemph}[1]{\liumcyan{\textbf{#1}}} \newcommand{\myemph}[1]{\liumcyan{\textbf{#1}}}
\newcommand{\myemphb}[1]{\orange{\textbf{#1}}}
\newcommand<>{\mycolor}[2]{%
\alt#3{{\color{#1}{#2}}}{#2}%
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment