% % This is file `halloweenmath.ins'. % % This file is part of a work named "halloweenmath package". % % Copyright (C) 2019 by Gustavo MEZZETTI. % % The halloweenmath package may be distributed and/or modified under % the conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % The halloweenmath package has the LPPL maintenance status % "author-maintained". % % The file `manifest.txt' that comes along with this file specifies % what the halloweenmath package consists of; more precisely, it explains % how the locutions "Work" and "Compiled Work", used in the LaTeX Project % Public License, are to be interpreted in the case of this work. % % Note that the distribution of this file alone is "distribution of % only part of the Work" in the sense of the LaTeX Project Public % License, and should be avoided. % % November 1, 2019 (vers. 0.11) % \input docstrip \def\filename{halloweenmath.dtx} \newif\ifWritingToDirectoryOfTDS \WritingToDirectoryOfTDSfalse \edef\WriteToDir{\WriteToDir} \def\TryToUseMyDir{% \usedir{tex/latex/halloweenmath} \ifx \destdir\WriteToDir \else \WritingToDirectoryOfTDStrue \fi } \def\Y{Y} \Msg{----------------------------------------------------------------} \Msg{} \Msg{Unpacking the halloweenmath package.} \Msg{} \Msg{Please note: \space I will now try to install the generated files into} \Msg{their own TeX directory, using the \string\usedir\space facility of DocStrip;} \Msg{if that fails, they will be just saved in the current directory.} \Msg{In this case, in order to finish the installation, you will have} \Msg{to move them into a directory where LaTeX can find them: see the} \Msg{documentation specific to your TeX implementation to learn where} \Msg{such directories are located on your system.} \Msg{} \catcode`\@ = 11 \ifx \usedir\alt@usedir \Msg{On your system, the name of the installation directory should be} \Msg{} \Msg{\space\space\space\space\showdirectory{tex/latex/halloweenmath}} \Msg{} \Msg{Please make sure that the above directory exists on your system,} \Msg{and that you have permission to create or overwrite files in it;} \Msg{if so, you may choose to put the generated files directly there.} \Msg{} \Msg{----------------------------------------------------------------} \Msg{} \Msg{Put files directly in suggested directory} \Msg{\space\space\space\space\showdirectory{tex/latex/halloweenmath}} \Ask\answer{or not? [y/n]} \ifx \answer\yes \TryToUseMyDir \else \ifx \answer\y \TryToUseMyDir \else \ifx \answer\Y \TryToUseMyDir \fi \fi \fi \else % of \ifx \usedir\alt@usedir \Msg{It seems that the configuration of your system does not allow us} \Msg{to use the \string\usedir\space facility: writing files to current directory.} \fi % of \ifx \usedir\alt@usedir \catcode`\@ = 12 \Msg{} \ifWritingToDirectoryOfTDS \Msg{Trying to install files directly in the proposed directory.} \Msg{} \else \Msg{Either you chose NOT to install files in the proposed directory,} \Msg{or, despite your choice, your system is not configured to permit} \Msg{you to do so. \space Therefore all files will be placed in the current} \Msg{directory and you will have to move them to a suitable directory} \Msg{by hand. \space At the end of this run, you will be presented with the} \Msg{complete list of the files you need to move.} \Msg{} \Ask\answer{Press \space \space to continue (your \string\answer\space will be ignored).} \fi \preamble This is a generated file. It is part of a work named "halloweenmath package". Copyright (C) 2019 by Gustavo MEZZETTI. The halloweenmath package may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later. The halloweenmath package has the LPPL maintenance status "author-maintained". The file `manifest.txt' that comes along with this file specifies what the halloweenmath package consists of; more precisely, it explains how the locutions "Work" and "Compiled Work", used in the LaTeX Project Public License, are to be interpreted in the case of this work. Note that the distribution of this file alone is "distribution of only part of the Work" in the sense of the LaTeX Project Public License, and should be avoided. November 1, 2019 (vers. 0.11) \endpreamble \askonceonly \generate{ \file{halloweenmath.sty}{\from{\filename}{halloweenmath}} } \Msg{} \ifWritingToDirectoryOfTDS \Msg{Installation finished. \space Check that the proposed directory} \Msg{\space\space\space\space\showdirectory{tex/latex/halloweenmath}} \Msg{has been correctly updated.} \else \Msg{To finish the installation, please move the following files into} \Msg{a directory where LaTeX looks for inputs files:} \Msg{} \Msg{\space\space\space\space halloweenmath.sty} \fi \Msg{} \Msg{Happy TeXing!} \endbatchfile