Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-media9.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `media9')
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@ProvidesPackageDrop{media9}[2019/02/21]
19 \LWR@origRequirePackage{lwarp-common-multimedia}
20
21 \RequirePackage{xkeyval}
22 \newcommand*{\LWR@medianine@path}{}
23
24 \newcommand*{\addmediapath}[1]{\appto\LWR@medianine@path{{#1}}}
25 \newcommand*{\LWR@medianine@postertext}{}
26 \newcommand*{\LWR@medianine@options}{}
27 \define@key{LWR@medianine}{addresource}{%
28 \expandafter\LWR@multimedia\expandafter[\LWR@medianine@options]
29 {\LWR@medianine@postertext}
30 {#1}
31 }
32 \newcommand*{\LWR@medianine@flashvarsb}[1]{%
33 \IfBeginWith{#1}{source=}{%
34 \StrGobbleLeft{#1}{7}[\LWR@tempone]%
35 \expandafter\LWR@multimedia\expandafter[\LWR@medianine@options]%
36 {\LWR@medianine@postertext}%
37 {\LWR@tempone}%
38 }{}%
39 \IfBeginWith{#1}{src=}{%
40 \StrGobbleLeft{#1}{4}[\LWR@tempone]%
41 \expandafter\LWR@multimedia\expandafter[\LWR@medianine@options]%
42 {\LWR@medianine@postertext}%
43 {\LWR@tempone}%
44 }{}%
45 }
46
47 \NewDocumentCommand{\LWR@medianine@flashvars}{ >{\SplitList{&}} m }{%
48 \ProcessList {#1}{\LWR@medianine@flashvarsb}%
49 }
50
51 \define@key{LWR@medianine}{flashvars}{%
52 \LWR@medianine@flashvars{#1}%
53 }
54 \newcommand*{\LWR@includemediab}[3][]{%
55 \let\input@path\LWR@medianine@path%
56 \renewcommand*{\LWR@medianine@options}{#1}%
57 \renewcommand*{\LWR@medianine@postertext}{#2}%
58 \setkeys*{LWR@medianine}{#1}%
59 \IfBeginWith{#3}{http}{\LWR@multimedia[#1]{#2}{#3}}{%
60 \IfBeginWith{#3}{HTTP}{\LWR@multimedia[#1]{#2}{#3}}{%
61 \IfBeginWith{#3}{ftp}{\LWR@multimedia[#1]{#2}{#3}}{%
62 \IfBeginWith{#3}{FTP}{\LWR@multimedia[#1]{#2}{#3}}{%
63 }}}}%
64 \endgroup%
65 }
66
67 \newrobustcmd*{\includemedia}{%
68 \begingroup%
69 \LWR@linkmediacatcodes%
70 \LWR@includemediab%
71 }
72 \newcommand*{\mediabutton}[2][]{}
73
74 \endinput
75 %%
76 %% End of file `lwarp-media9.sty'.