Debian Codegraph @

texmf-dist/source/latex/beamersubframe/beamersubframe.ins

raw
1 %%
2 %% This file will generate fast loadable files and documentation
3 %% driver files from the doc files in this package when run through
4 %% LaTeX or TeX.
5 %%
6 %% Copyright (c) 2011 Mike Kaufmann, all rights reserved
7 %%
8 %% This program is provided under the terms of the
9 %% LaTeX Project Public License distributed from CTAN
10 %% archives in directory macros/latex/base/lppl.txt.
11 %%
12 %% Author: Mike Kaufmann
13 %% [email protected]
14 %%
15 %% --------------- start of docstrip commands ------------------
16 %%
17
18 \input docstrip.tex
19
20 % some macros for conditional generation of example files
21 \newif\ifaskforexample
22 \newif\ifgenerateexample
23 \generateexampletrue
24 \askforexampletrue
25 % \generateexample \askforexample then
26 % true false generate example
27 % true true ask and generate only if answer is y/yes
28 % false don' care do not generate
29 \def\generateExample#1{%
30 \ifgenerateexample
31 \ifaskforexample
32 \Ask\answer{^^JThere is an example file in \jobname.dtx.^^JGenerate it? [y/n]}
33 \ifx\answer\y \generate{#1}\else
34 \ifx\answer\yes \generate{#1}\fi\fi
35 \else\generate{#1}\fi\fi}
36
37 \preamble
38
39 Copyright (c) 2011 Mike Kaufmann, all rights reserved
40
41 This program is provided under the terms of the
42 LaTeX Project Public License distributed from CTAN
43 archives in directory macros/latex/base/lppl.txt.
44
45 Author: Mike Kaufmann
46 [email protected]
47
48 \endpreamble
49
50 \generate{\file{beamersubframe.sty}{\from{beamersubframe.dtx}{package}}}
51 \generateExample{\file{bsf-example.tex}{\from{beamersubframe.dtx}{example}}}
52
53 \Msg{***********************************************************}
54 \Msg{*}
55 \Msg{* To finish the installation you have to move the following}
56 \Msg{* file into a directory searched by TeX:}
57 \Msg{*}
58 \Msg{* \space\space beamersubframe.sty}
59 \Msg{*}
60 \Msg{* To produce the documentation run the files ending with}
61 \Msg{* `.dtx' through PDFLaTeX.}
62 \Msg{*}
63 \Msg{* Happy TeXing}
64 \Msg{***********************************************************}
65
66
67 \endbatchfile