Debian Codegraph @

texmf-dist/tex/latex/caption/caption-beamer.sto

raw
1 %%
2 %% This is file `caption-beamer.sto',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% caption-beamer.dtx (with options: `package')
8 %%
9 %% Copyright (C) 1994-2022 Axel Sommerfeldt ([email protected])
10 %%
11 %% https://gitlab.com/axelsommerfeldt/caption
12 %%
13 %% --------------------------------------------------------------------------
14 %%
15 %% This work may be distributed and/or modified under the
16 %% conditions of the LaTeX Project Public License, either version 1.3
17 %% of this license or (at your option) any later version.
18 %% The latest version of this license is in
19 %% http://www.latex-project.org/lppl.txt
20 %% and version 1.3 or later is part of all distributions of LaTeX
21 %% version 2003/12/01 or later.
22 %%
23 %% This work has the LPPL maintenance status "maintained".
24 %%
25 %% This Current Maintainer of this work is Axel Sommerfeldt.
26 %%
27 %% This work consists of the files
28 %% caption.ins, caption.dtx, caption-light.dtx, caption2.dtx, caption3.dtx,
29 %% caption-ams-smf.dtx, caption-beamer.dtx, caption-elsarticle.dtx,
30 %% caption-koma.dtx, caption-memoir.dtx, caption-ntg.dtx,
31 %% caption-thesis.dtx, bicaption.dtx, ltcaption.dtx, subcaption.dtx,
32 %% the derived files
33 %% caption.sty, caption-light.sty, caption2.sty, caption3.sty,
34 %% caption-ams-smf.sto, caption-beamer.sto, caption-elsarticle.sto,
35 %% caption-koma.sto, caption-memoir.sto, caption-ntg.sto,
36 %% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
37 %%
38 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
39 \ProvidesFile{caption-beamer.sto}[2022/01/06 v2.0c Adaption of the caption package to the beamer document classes (AR)]
40 \newcommand*\caption@ifbeamertemplate[1]{%
41 \begingroup
42 \let\beamer@@tmpl@caption@ORI\beamer@@tmpl@caption
43 \@nameuse{beamer@@tmpop@caption@#1}%
44 \ifx\beamer@@tmpl@caption@ORI\beamer@@tmpl@caption
45 \endgroup\expandafter\@firstoftwo
46 \else
47 \endgroup\expandafter\@secondoftwo
48 \fi}
49 \DeclareCaptionSinglelinecheck{default}{%
50 \caption@ifbeamertemplate{caption name own line}%
51 \@secondoftwo % \@secondoftwo -> singlelinecheck=off
52 \@firstoftwo} % \@firstoftwo -> singlelinecheck=on
53 \providecommand*\AtCaptionSingleLineCheck{\g@addto@macro\caption@prepareslc} % for caption v3.5
54 \let\caption@footnote@ORI\footnote
55 \AtCaptionSingleLineCheck{%
56 \def\footnote{%
57 \begingroup
58 \let\stepcounter\caption@l@stepcounter
59 \renewcommand<>\beamer@framefootnotetext[1]{%
60 \endgroup}%
61 \let\@footnotetext\beamer@framefootnotetext
62 \caption@footnote@ORI}}
63 \DeclareCaptionLabelFormat{default}{%
64 \caption@ifbeamertemplate{numbered}%
65 \caption@labelformat@simple
66 \caption@labelformat@unnumbered
67 {#1}{#2}}
68 \DeclareCaptionLabelFormat{simpleMagyar}{%
69 \caption@ifbeamertemplate{numbered}%
70 {#2.\bothIfSecond{\nobreakspace}{#1}}%
71 {\caption@labelformat@unnumbered{#1}{#2}}}
72 \let\@@magyar@captionfix\relax
73 \AtBeginDocument{\let\@@magyar@captionfix\relax}
74 \DeclareCaptionLabelSeparator**{default}%
75 {\caption@ifbeamertemplate{caption name own line}}%
76 {\caption@ifbeamertemplate{caption name own line}%
77 {\\}%
78 {\usebeamertemplate{caption label separator}}}
79 \DeclareCaptionFont{beamer@font}{%
80 \usebeamerfont*{caption}%
81 \usebeamercolor[fg]{caption}}
82 \SetCaptionDefault{font}{beamer@font}
83 \DeclareCaptionFont{beamer@labelfont}{%
84 \setbeamercolor*{caption}{}% avoid setting "caption" color additionally
85 \usebeamercolor[fg]{caption name}%
86 \setbeamerfont*{caption}{}% avoid setting "caption" font additionally
87 \usebeamerfont{caption name}}
88 \SetCaptionDefault{labelfont}{beamer@labelfont}
89 \DeclareCaptionFont{beamer@textfont}{}
90 \SetCaptionDefault{textfont}{beamer@textfont}
91 \SetCaptionDefault{justification}{raggedright}
92 \captionsetup{list=off}
93 \AfterCaptionPackage{%
94 \expandafter\let\expandafter\caption@beamer@figure
95 \csname\string\figure\endcsname
96 \@namedef{\string\figure}[#1]{%
97 \caption@beamer@figure[#1]% use original beamer code first
98 \caption@settype{figure}} % set "type=figure" afterwards
99 \expandafter\let\expandafter\caption@beamer@table
100 \csname\string\table\endcsname
101 \@namedef{\string\table}[#1]{%
102 \caption@beamer@table[#1]% use original beamer code first
103 \caption@settype{table}} % set "type=table" afterwards
104 \def\caption@nobreak{\nobreak}
105 }
106 \endinput
107 %%
108 %% End of file `caption-beamer.sto'.