Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-beamerarticle.sty

raw
1 %%
2 %% This is file `lwarp-beamerarticle.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `beamerarticle')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackagePass{beamerarticle}[2021/05/26]
19 \renewcommand<>{\textcolor}{\only#1{\beameroriginal{\textcolor}}}
20
21 \AtBeginDocument{
22
23 \renewcommand<>{\LWR@listitem}{%
24 \only#1{%
25 \beameroriginal{\LWR@listitem}%
26 }%
27 }
28
29 \renewcommand<>{\LWR@itemizeitem}{%
30 \only#1{%
31 \beameroriginal{\LWR@itemizeitem}%
32 }%
33 }
34
35 \renewcommand<>{\LWR@descitem}{%
36 \only#1{%
37 \beameroriginal{\LWR@descitem}%
38 }%
39 }
40
41 \renewcommand<>{\abstract}{%
42 \only#1{%
43 \beameroriginal{\abstract}%
44 }%
45 }
46
47 \renewcommand<>{\LWR@includegraphicsb}{%
48 \only#1{%
49 \beameroriginal{\LWR@includegraphicsb}%
50 }%
51 }
52
53 \xpretocmd\frame
54 {
55 \LWR@forcenewpage
56 \BlockClass{beamerframe}%
57 }
58 {}
59 {\LWR@patcherror{beamerarticle}{frame}}
60
61 \xapptocmd\beamer@endframe
62 {\endBlockClass}
63 {}
64 {\LWR@patcherror{beamerarticle}{beamer@endframe}}
65 \xpretocmd\beamer@article@startframe
66 {\LWR@nulllistfills}
67 {}
68 {\LWR@patcherror{beamerarticle}{beamer@article@startframe}}
69
70 }% AtBeginDocument
71
72 \let\beamer@@tmpop@frametitle@default\relax
73 \defbeamertemplate<article>*{frametitle}{default}{%
74 \paragraph*{\insertframetitle}\ \par%
75 \ifdefempty{\insertframesubtitle}{}{%
76 \noindent\emph{\insertframesubtitle}\par%
77 }%
78 }
79
80 \NewDocumentCommand{\LWR@beamer@itemize}{o}{%
81 \LWR@itemizestart\LWR@origitemize%
82 }%
83 \NewDocumentCommand{\LWR@beamer@description}{o o}{%
84 \LWR@descriptionstart\LWR@origdescription%
85 }%
86
87 \xapptocmd{\LWR@patchlists}
88 {%
89 \LetLtxMacro\itemize\LWR@beamer@itemize%
90 \LetLtxMacro\description\LWR@beamer@description%
91 }
92 {}
93 {\LWR@patcherror{beamerarticle}{LWR@patchlists}}
94
95 \LetLtxMacro\maketitle\LWR@maketitle
96
97 \renewcommand{\subtitle}[2][]{
98 \gdef\@subtitle{#2}
99 \def\insertsubtitle{#2}
100 }
101 \AtBeginDocument{
102 \IfPackageLoadedTF{lwarp-scrextend}
103 {}% komascript already has subtitle
104 {% not komascript
105 \xpatchcmd{\@maketitle}
106 {%
107 \LWR@htmltag{\LWR@tagtitleend}%
108 \LWR@startpars%
109 }%
110 {%
111 \LWR@htmltag{\LWR@tagtitleend}%
112 \ifdefvoid{\@subtitle}{}{%
113 \begin{BlockClass}{subtitle}%
114 \@subtitle%
115 \end{BlockClass}%
116 }%
117 \LWR@startpars%
118 }%
119 {}
120 {\LWR@patcherror{beamerarticle}{@maketitle}}
121 }% not komascript
122 }
123
124 \RequirePackage{fancyvrb}
125 \DefineVerbatimEnvironment{semiverbatim}{Verbatim}{commandchars=\\\{\}}
126
127 \endinput
128 %%
129 %% End of file `lwarp-beamerarticle.sty'.