macros_beamer.tex 1.22 KB
Newer Older
Loïc Barrault's avatar
Loïc Barrault committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

\setbeamersize{description width=0.57cm}

\newenvironment<>{varblock}[2][.9\textwidth]{%
  \setlength{\textwidth}{#1}
  \begin{actionenv}#3%
    \def\insertblocktitle{#2}%
    \par%
    \usebeamertemplate{block begin}}
  {\par%
    \usebeamertemplate{block end}%
  \end{actionenv}}


\defbeamertemplate*{section page}{*}[1][]
{
  \begingroup
    %\centering{
    %\usebeamerfont{section name}\usebeamercolor[fg]{section name}\sectionname~\insertsectionnumber}
%    \vskip4em%\par
    \begin{beamercolorbox}[sep=14pt,center,#1]{part title}
      \vskip6em
      \usebeamerfont{section title}\usebeamercolor[fg]{section name}\insertsection\par
    \end{beamercolorbox}
  \endgroup
}
Loïc Barrault's avatar
Loïc Barrault committed
27
28


Loïc Barrault's avatar
Loïc Barrault committed
29
\newcommand{\source}[1]{{\color{darkgray} \tiny{[Source: #1]}}}
Loïc Barrault's avatar
Loïc Barrault committed
30
31
32
33

% My highlight
%\newcommand{\myhl}[2]{\colorbox{#1}{\strut #2}} %usage \myhl{color}{text}

Loïc Barrault's avatar
Loïc Barrault committed
34
35
\newcommand<>{\myhl}[2]{%
  \alt#3{\begingroup\setlength{\fboxsep}{0pt}%
Loïc Barrault's avatar
Loïc Barrault committed
36
  \colorbox{#1}{\vphantom{Ay}#2}%
Loïc Barrault's avatar
Loïc Barrault committed
37
38
39
40
  \endgroup%
  }{\begingroup\setlength{\fboxsep}{0pt}%
  \colorbox{white}{\vphantom{Ay}#2}%
  \endgroup}
Loïc Barrault's avatar
Loïc Barrault committed
41
}
Loïc Barrault's avatar
Loïc Barrault committed
42
43


Loïc Barrault's avatar
Loïc Barrault committed
44
45
\setbeamercolor{alerted text}{fg=cyan}

Loïc Barrault's avatar
Loïc Barrault committed
46
47
48
\newcommand*\circled[2]{\tikz[baseline=(char.base)]{
            \node[circle,ball color=#2, shade, 
 color=white,inner sep=1pt] (char) {\tiny #1};}}