Debian Codegraph @

texmf-dist/source/latex/thmtools/thm-beamer.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2010-2014 by Ulrich M. Schwarz
4 % Copyright (C) 2019 by Frank Mittelbach
5 % Copyright (C) 2020- by Yukai Chou
6 %
7 % This file may be distributed and/or modified under the conditions of
8 % the LaTeX Project Public License, version 1.3c.
9 % The license can be obtained from
10 % http://www.latex-project.org/lppl/lppl-1-3c.txt
11 %
12 %\fi
13 %
14 %\iffalse (hide this from DocInput)
15 %<*beamer>
16 %\fi
17 % \begin{macrocode}
18 \newif\ifthmt@hasoverlay
19 \def\thmt@parsetheoremargs#1{%
20 \parse{%
21 {\parseOpt<>{\thmt@hasoverlaytrue\def\thmt@overlay{##1}}{}}%
22 {\parseOpt[]{\def\thmt@optarg{##1}}{%
23 \let\thmt@shortoptarg\@empty
24 \let\thmt@optarg\@empty}}%
25 {\ifthmt@hasoverlay\expandafter\@gobble\else\expandafter\@firstofone\fi
26 {\parseOpt<>{\thmt@hasoverlaytrue\def\thmt@overlay{##1}}{}}%
27 }%
28 {%
29 \def\thmt@local@preheadhook{}%
30 \def\thmt@local@postheadhook{}%
31 \def\thmt@local@prefoothook{}%
32 \def\thmt@local@postfoothook{}%
33 \thmt@local@preheadhook
34 \csname thmt@#1@preheadhook\endcsname
35 \thmt@generic@preheadhook
36 \protected@edef\tmp@args{%
37 \ifthmt@hasoverlay <\thmt@overlay>\fi
38 \ifx\@empty\thmt@optarg\else [{\thmt@optarg}]\fi
39 }%
40 \csname thmt@original@#1\@xa\endcsname\tmp@args
41 \thmt@local@postheadhook
42 \csname thmt@#1@postheadhook\endcsname
43 \thmt@generic@postheadhook
44 \let\@parsecmd\@empty
45 }%
46 }
47 }%
48 % \end{macrocode}
49 %\iffalse (hide this from DocInput)
50 %</beamer>
51 %\fi