summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/thmtools/thm-beamer.dtx
blob: 7c56099ce699fe3a4e174ffb4e2918708285a445 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% \iffalse meta-comment
%
% Copyright (C) 2010 by Ulrich M. Schwarz
% See file COPYING for more details.
%\fi
%
%\iffalse (hide this from DocInput)
%<*beamer>
%\fi
%    \begin{macrocode}
\newif\ifthmt@hasoverlay
\def\thmt@parsetheoremargs#1{%
  \parse{%
    {\parseOpt<>{\thmt@hasoverlaytrue\def\thmt@overlay{##1}}{}}%
    {\parseOpt[]{\def\thmt@optarg{##1}}{%
      \let\thmt@shortoptarg\@empty
      \let\thmt@optarg\@empty}}%
    {\ifthmt@hasoverlay\expandafter\@gobble\else\expandafter\@firstofone\fi
        {\parseOpt<>{\thmt@hasoverlaytrue\def\thmt@overlay{##1}}{}}%
    }%
    {%
      \def\thmt@local@preheadhook{}%
      \def\thmt@local@postheadhook{}%
      \def\thmt@local@prefoothook{}%
      \def\thmt@local@postfoothook{}%
      \thmt@local@preheadhook
      \csname thmt@#1@preheadhook\endcsname
      \thmt@generic@preheadhook
      \protected@edef\tmp@args{%
        \ifthmt@hasoverlay <\thmt@overlay>\fi
        \ifx\@empty\thmt@optarg\else [{\thmt@optarg}]\fi
      }%
      \csname thmt@original@#1\@xa\endcsname\tmp@args
      \thmt@local@postheadhook
      \csname thmt@#1@postheadhook\endcsname
      \thmt@generic@postheadhook
      \let\@parsecmd\@empty
    }%
  }
}%
%    \end{macrocode}
%\iffalse (hide this from DocInput)
%</beamer>
%\fi