| 1 |
% |
| 2 |
% This is file `halloweenmath.ins'. |
| 3 |
% |
| 4 |
% This file is part of a work named "halloweenmath package". |
| 5 |
% |
| 6 |
% Copyright (C) 2019 by Gustavo MEZZETTI. |
| 7 |
% |
| 8 |
% The halloweenmath package may be distributed and/or modified under |
| 9 |
% the conditions of the LaTeX Project Public License, either version 1.3 |
| 10 |
% of this license or (at your option) any later version. |
| 11 |
% The latest version of this license is in |
| 12 |
% http://www.latex-project.org/lppl.txt |
| 13 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 14 |
% version 2005/12/01 or later. |
| 15 |
% |
| 16 |
% The halloweenmath package has the LPPL maintenance status |
| 17 |
% "author-maintained". |
| 18 |
% |
| 19 |
% The file `manifest.txt' that comes along with this file specifies |
| 20 |
% what the halloweenmath package consists of; more precisely, it explains |
| 21 |
% how the locutions "Work" and "Compiled Work", used in the LaTeX Project |
| 22 |
% Public License, are to be interpreted in the case of this work. |
| 23 |
% |
| 24 |
% Note that the distribution of this file alone is "distribution of |
| 25 |
% only part of the Work" in the sense of the LaTeX Project Public |
| 26 |
% License, and should be avoided. |
| 27 |
% |
| 28 |
% November 1, 2019 (vers. 0.11) |
| 29 |
% |
| 30 |
\input docstrip |
| 31 |
|
| 32 |
\def\filename{halloweenmath.dtx} |
| 33 |
|
| 34 |
\newif\ifWritingToDirectoryOfTDS |
| 35 |
\WritingToDirectoryOfTDSfalse |
| 36 |
|
| 37 |
\edef\WriteToDir{\WriteToDir} |
| 38 |
\def\TryToUseMyDir{% |
| 39 |
\usedir{tex/latex/halloweenmath} |
| 40 |
\ifx \destdir\WriteToDir \else |
| 41 |
\WritingToDirectoryOfTDStrue |
| 42 |
\fi |
| 43 |
} |
| 44 |
\def\Y{Y} |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
\Msg{----------------------------------------------------------------} |
| 49 |
\Msg{} |
| 50 |
\Msg{Unpacking the halloweenmath package.} |
| 51 |
\Msg{} |
| 52 |
\Msg{Please note: \space I will now try to install the generated files into} |
| 53 |
\Msg{their own TeX directory, using the \string\usedir\space facility of DocStrip;} |
| 54 |
\Msg{if that fails, they will be just saved in the current directory.} |
| 55 |
\Msg{In this case, in order to finish the installation, you will have} |
| 56 |
\Msg{to move them into a directory where LaTeX can find them: see the} |
| 57 |
\Msg{documentation specific to your TeX implementation to learn where} |
| 58 |
\Msg{such directories are located on your system.} |
| 59 |
\Msg{} |
| 60 |
|
| 61 |
\catcode`\@ = 11 |
| 62 |
|
| 63 |
\ifx \usedir\alt@usedir |
| 64 |
|
| 65 |
\Msg{On your system, the name of the installation directory should be} |
| 66 |
\Msg{} |
| 67 |
\Msg{\space\space\space\space\showdirectory{tex/latex/halloweenmath}} |
| 68 |
\Msg{} |
| 69 |
\Msg{Please make sure that the above directory exists on your system,} |
| 70 |
\Msg{and that you have permission to create or overwrite files in it;} |
| 71 |
\Msg{if so, you may choose to put the generated files directly there.} |
| 72 |
\Msg{} |
| 73 |
\Msg{----------------------------------------------------------------} |
| 74 |
\Msg{} |
| 75 |
\Msg{Put files directly in suggested directory} |
| 76 |
\Msg{\space\space\space\space\showdirectory{tex/latex/halloweenmath}} |
| 77 |
\Ask\answer{or not? [y/n]} |
| 78 |
|
| 79 |
\ifx \answer\yes |
| 80 |
\TryToUseMyDir |
| 81 |
\else \ifx \answer\y |
| 82 |
\TryToUseMyDir |
| 83 |
\else \ifx \answer\Y |
| 84 |
\TryToUseMyDir |
| 85 |
\fi \fi \fi |
| 86 |
|
| 87 |
\else % of \ifx \usedir\alt@usedir |
| 88 |
|
| 89 |
\Msg{It seems that the configuration of your system does not allow us} |
| 90 |
\Msg{to use the \string\usedir\space facility: writing files to current directory.} |
| 91 |
|
| 92 |
\fi % of \ifx \usedir\alt@usedir |
| 93 |
|
| 94 |
\catcode`\@ = 12 |
| 95 |
|
| 96 |
\Msg{} |
| 97 |
|
| 98 |
\ifWritingToDirectoryOfTDS |
| 99 |
|
| 100 |
\Msg{Trying to install files directly in the proposed directory.} |
| 101 |
\Msg{} |
| 102 |
|
| 103 |
\else |
| 104 |
|
| 105 |
\Msg{Either you chose NOT to install files in the proposed directory,} |
| 106 |
\Msg{or, despite your choice, your system is not configured to permit} |
| 107 |
\Msg{you to do so. \space Therefore all files will be placed in the current} |
| 108 |
\Msg{directory and you will have to move them to a suitable directory} |
| 109 |
\Msg{by hand. \space At the end of this run, you will be presented with the} |
| 110 |
\Msg{complete list of the files you need to move.} |
| 111 |
\Msg{} |
| 112 |
\Ask\answer{Press \space <return> \space to continue |
| 113 |
(your \string\answer\space will be ignored).} |
| 114 |
|
| 115 |
\fi |
| 116 |
|
| 117 |
\preamble |
| 118 |
|
| 119 |
This is a generated file. |
| 120 |
It is part of a work named "halloweenmath package". |
| 121 |
|
| 122 |
Copyright (C) 2019 by Gustavo MEZZETTI. |
| 123 |
|
| 124 |
The halloweenmath package may be distributed and/or modified under |
| 125 |
the conditions of the LaTeX Project Public License, either version 1.3 |
| 126 |
of this license or (at your option) any later version. |
| 127 |
The latest version of this license is in |
| 128 |
http://www.latex-project.org/lppl.txt |
| 129 |
and version 1.3 or later is part of all distributions of LaTeX |
| 130 |
version 2005/12/01 or later. |
| 131 |
|
| 132 |
The halloweenmath package has the LPPL maintenance status |
| 133 |
"author-maintained". |
| 134 |
|
| 135 |
The file `manifest.txt' that comes along with this file specifies |
| 136 |
what the halloweenmath package consists of; more precisely, it explains |
| 137 |
how the locutions "Work" and "Compiled Work", used in the LaTeX Project |
| 138 |
Public License, are to be interpreted in the case of this work. |
| 139 |
|
| 140 |
Note that the distribution of this file alone is "distribution of |
| 141 |
only part of the Work" in the sense of the LaTeX Project Public |
| 142 |
License, and should be avoided. |
| 143 |
|
| 144 |
November 1, 2019 (vers. 0.11) |
| 145 |
|
| 146 |
\endpreamble |
| 147 |
|
| 148 |
\askonceonly |
| 149 |
|
| 150 |
\generate{ |
| 151 |
\file{halloweenmath.sty}{\from{\filename}{halloweenmath}} |
| 152 |
} |
| 153 |
|
| 154 |
\Msg{} |
| 155 |
|
| 156 |
\ifWritingToDirectoryOfTDS |
| 157 |
|
| 158 |
\Msg{Installation finished. \space Check that the proposed directory} |
| 159 |
\Msg{\space\space\space\space\showdirectory{tex/latex/halloweenmath}} |
| 160 |
\Msg{has been correctly updated.} |
| 161 |
|
| 162 |
\else |
| 163 |
|
| 164 |
\Msg{To finish the installation, please move the following files into} |
| 165 |
\Msg{a directory where LaTeX looks for inputs files:} |
| 166 |
\Msg{} |
| 167 |
\Msg{\space\space\space\space halloweenmath.sty} |
| 168 |
|
| 169 |
\fi |
| 170 |
|
| 171 |
\Msg{} |
| 172 |
\Msg{Happy TeXing!} |
| 173 |
|
| 174 |
\endbatchfile |