-
Notifications
You must be signed in to change notification settings - Fork 6
/
draftwatermark.ins
108 lines (92 loc) · 3.54 KB
/
draftwatermark.ins
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%% draftwatermark.ins
%% Copyright 2006-2020
%% Sergio Callegari <[email protected]>
%%
%% ---------------------------------------------
%% This file is part of the draftwatermark package,
%% a contribution to the LaTeX2e system.
%% ---------------------------------------------
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, version 1.3c.
%% This license is in
%% https://www.latex-project.org/lppl/lppl-1-3c/
%% and is part of all distributions of LaTeX later than
%% 2008-05-04.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% This program consists of the files listed in the README.md file
%% included in the package.
%%
%% This file will generate fast loadable files and documentation
%% from the dtx file when run through LaTeX.
%%
%%
%% --------------- start of docstrip commands ------------------
%%
\input docstrip.tex
\keepsilent
%\showprogress
\preamble
IMPORTANT NOTICE:
Copyright 2006, 2020
Sergio Callegari <[email protected]>
------------------------------------------------
This file is part of the draftwatermark package,
a contribution to the LaTeX2e system.
------------------------------------------------
This program consists of the files listed in the README.md file included
in the package.
Any modified versions of this file must be renamed with new filenames
distinct from \outFileName.
For distribution of the original source see the terms for copying and
modification in the file \inFileName.
This generated file may be distributed as long as the original source files,
as listed above, are part of the same distribution. (The sources need not
necessarily be in the same archive or directory.)
\endpreamble
\Msg{*** Generating the LaTeX2e package files ***}
\usedir{tex/latex/draftwatermark}
\generate{\file{draftwatermark.sty}{%
\from{draftwatermark.dtx}{draftwatermark}}}
\generate{\file{draftwatermark-2x.sty}{%
\from{draftwatermark.dtx}{draftwatermark-2x}}}
\preamble
\endpreamble
\Msg{*** Generating the example files ***}
\usedir{doc/latex/draftwatermark/examples}
\generate{\file{test_draftwatermark-1.tex}{%
\from{draftwatermark.dtx}{samplecode-modern}}}
\generate{\file{test_draftwatermark-2.tex}{%
\from{draftwatermark.dtx}{samplecode-legacy}}}
\generate{\file{test_draftwatermark-3.tex}{%
\from{draftwatermark.dtx}{samplecode-anchor}}}
\generate{\file{test_draftwatermark-4.tex}{%
\from{draftwatermark.dtx}{samplecode-dynamic}}}
\generate{\file{test_draftwatermark-5.tex}{%
\from{draftwatermark.dtx}{samplecode-custom}}}
%\ReportTotals
\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* file(s) into a directory searched by TeX:}
\Msg{*}
\Msg{* \space\space draftwatermark.sty}
\Msg{*}
\Msg{*}
\Msg{* To produce the documentation:
run draftwatermark.dtx}
\Msg{* - run draftwatermark.dtx through LaTeX}
\Msg{* Process draftwatermark.idx file by:}
\Msg{* \space\space\space\space makeindex -s gind.ist draftwatermark}
\Msg{* Process draftwatermark.glo file by:}
\Msg{* \space\space\space\space makeindex -s gglo.ist -o draftwatermark.gls
draftwatermark.glo}
\Msg{* Re run through LaTeX the draftwatermark.dtx file as necessary}
\Msg{* You may then want to move the test_draftwatermark*.tex files produced by}
\Msg{* processing this ins file together with the documentation (e.g., in an}
\Msg{* examples subdirectory}
\Msg{*}
\Msg{***********************************************************}
\endbatchfile