Debian Codegraph @

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

raw
1 %% notespages.ins
2 %% Copyright 2016 Mike Kaufmann
3 %% [email protected]
4 %%
5 %% This work may be distributed and/or modified under the
6 %% conditions of the LaTeX Project Public License, either version 1.3
7 %% of this license or (at your option) any later version.
8 %% The latest version of this license is in
9 %% http://www.latex-project.org/lppl.txt
10 %% and version 1.3 or later is part of all distributions of LaTeX
11 %% version 2005/12/01 or later.
12 %%
13 %% This work has the LPPL maintenance status `maintained'.
14 %%
15 %% The Current Maintainer of this work is Mike Kaufmann.
16 %%
17 %% This work consists of the files notespages.dtx and notespages.ins
18 %% and the derived files notespages.sty and np-test.tex.
19 %%
20 %%
21 %% This file will generate fast loadable files and documentation
22 %% driver files from the doc files in this package when run through
23 %% LaTeX or TeX.
24 %%
25 %% --------------- start of docstrip commands ------------------
26 %%
27
28 \input docstrip.tex
29
30 % some macros for conditional generation of example files
31 \newif\ifaskforexample
32 \newif\ifgenerateexample
33 \generateexampletrue
34 \askforexampletrue
35 % \generateexample \askforexample then
36 % true false generate example
37 % true true ask and generate only if answer is y/yes
38 % false don' care do not generate
39 \def\generateExample#1{%
40 \ifgenerateexample
41 \ifaskforexample
42 \Ask\answer{^^JThere is an example file in \jobname.dtx.^^JGenerate it? [y/n]}
43 \ifx\answer\y \generate{#1}\else
44 \ifx\answer\yes \generate{#1}\fi\fi
45 \else\generate{#1}\fi\fi}
46
47 \preamble
48
49 Copyright 2016 Mike Kaufmann
50 [email protected]
51
52 This work may be distributed and/or modified under the
53 conditions of the LaTeX Project Public License, either version 1.3
54 of this license or (at your option) any later version.
55 The latest version of this license is in
56 http://www.latex-project.org/lppl.txt
57 and version 1.3 or later is part of all distributions of LaTeX
58 version 2005/12/01 or later.
59
60 This work has the LPPL maintenance status `maintained'.
61
62 The Current Maintainer of this work is Mike Kaufmann.
63
64 This work consists of the files notespages.dtx and notespages.ins
65 and the derived files notespages.sty and np-test.tex.
66
67 \endpreamble
68
69 \generate{\file{notespages.sty}{\from{notespages.dtx}{package}}}
70 \generateExample{\file{np-test.tex}{\from{notespages.dtx}{example}}}
71
72 \Msg{***********************************************************}
73 \Msg{*}
74 \Msg{* To finish the installation you have to move the following}
75 \Msg{* file into a directory searched by TeX:}
76 \Msg{*}
77 \Msg{* \space\space notespages.sty}
78 \Msg{*}
79 \Msg{* To produce the documentation run the files ending with}
80 \Msg{* `.dtx' through PDFLaTeX.}
81 \Msg{*}
82 \Msg{* Happy TeXing}
83 \Msg{***********************************************************}
84
85
86 \endbatchfile