diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-01 20:59:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-01 20:59:13 +0000 |
commit | 1eea7ddd33803c5945bc4b2b2654c960d42aa0c2 (patch) | |
tree | 20ca9cfec58c4428922e78b69c1f92606db8b7c9 /Master/texmf-dist/source/latex/halloweenmath | |
parent | 4f7a2c33e49915f226131d182a2762f3467e5831 (diff) |
halloweenmath (1nov19)
git-svn-id: svn://tug.org/texlive/trunk@52602 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/halloweenmath')
3 files changed, 171 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/halloweenmath/Makefile b/Master/texmf-dist/source/latex/halloweenmath/Makefile new file mode 100644 index 00000000000..aeb4b561524 --- /dev/null +++ b/Master/texmf-dist/source/latex/halloweenmath/Makefile @@ -0,0 +1,147 @@ +# makefile +# +# 2019 Nov 01 +# +# Macro definitions +# +# - parameters: +ROOT_NAME = halloweenmath +# (the following need not be redefined, although it can be) +BUNDLE_NAME = $(ROOT_NAME) package +# +# - all the rest: +DTX_NAME = $(ROOT_NAME).dtx +INS_NAME = $(ROOT_NAME).ins +LOG_FILE = $(ROOT_NAME).log +DOC_AUX_FIL = $(LOG_FILE) $(ROOT_NAME).aux \ + $(ROOT_NAME).glo $(ROOT_NAME).gls \ + $(ROOT_NAME).idx $(ROOT_NAME).ind \ + $(ROOT_NAME).ilg $(ROOT_NAME).glg \ + $(ROOT_NAME).toc $(ROOT_NAME).lof \ + $(ROOT_NAME).hd $(ROOT_NAME).out +DOCUM_FILE = $(ROOT_NAME).pdf +CODE_FILES = $(ROOT_NAME).sty +# +LATEX = pdflatex +MAKEINDEX = makeindex +REMOVE = -rm + +# +define GEN_FAKE_INDEX + @echo '\\begin{theindex}' > $(ROOT_NAME).ind + @echo '\\end{theindex}' >> $(ROOT_NAME).ind + @echo "Generating fake .ind file." +endef +# +define GEN_FAKE_GLOSSARY + @echo '\\begin{theglossary}' > $(ROOT_NAME).gls + @echo '\\end{theglossary}' >> $(ROOT_NAME).gls + @echo "Generating fake .gls file." +endef + + + +.PHONY: default +.PHONY: code doc +.PHONY: clean cleandoc cleanaux cleancode cleanlog cleanall +.PHONY: help + +# Default target +default: doc code + +# Generating the code +################################################################ +# # +# PLEASE NOTE THAT THE INSTALLER SCRIPT IS EXECUTED WITH # +# openout_any=r # +# # +################################################################ +code: + openout_any=r tex $(INS_NAME) + +# Generating the documentation +doc: $(DOCUM_FILE) + +$(DOCUM_FILE): $(DTX_NAME) +# Hack for getting index and glossary in the toc since first run: + $(GEN_FAKE_INDEX) + $(GEN_FAKE_GLOSSARY) +# We know how many runs are needed: + $(LATEX) $(DTX_NAME) + $(LATEX) $(DTX_NAME) + $(MAKEINDEX) -s gind.ist -t $(ROOT_NAME).ilg -o $(ROOT_NAME).ind \ + $(ROOT_NAME).idx + $(MAKEINDEX) -s gglo.ist -t $(ROOT_NAME).glg -o $(ROOT_NAME).gls \ + $(ROOT_NAME).glo + $(LATEX) $(DTX_NAME) + $(LATEX) $(DTX_NAME) +# Hyperlinks in the indexes seem not to work properly without the +# following additional run: + $(MAKEINDEX) -s gind.ist -t $(ROOT_NAME).ilg -o $(ROOT_NAME).ind \ + $(ROOT_NAME).idx + $(MAKEINDEX) -s gglo.ist -t $(ROOT_NAME).glg -o $(ROOT_NAME).gls \ + $(ROOT_NAME).glo + $(LATEX) $(DTX_NAME) + +# Cleaning up: command "make clean" defaults to "make cleanall" +clean: cleanall + +# Cleaning the code files +cleancode: + $(REMOVE) $(CODE_FILES) + +# Cleaning the documentation files +cleandoc: cleanaux + $(REMOVE) $(DOCUM_FILE) + +# Cleaning just the auxiliary files used in producing the documentation +cleanaux: + $(REMOVE) $(DOC_AUX_FIL) + +# Cleaning only the transcript file (e.g., after "make code") +cleanlog: + $(REMOVE) $(LOG_FILE) + +# Cleaning up all the generated files +cleanall: cleancode cleandoc + +# Giving help +help: + @echo "Here is a list of the available commands:" + @echo + @echo " make" + @echo " Generate both the code and the documentation (see below)." + @echo + @echo " make code" + @echo " Generate all the LaTeX \"executables\" (e.g., \`.sty' files)" + @echo " of the $(BUNDLE_NAME);" + @echo " these files go into the LaTeX input directories." + @echo + @echo " make doc" + @echo " Generate the documentation (in PDF); the resulting PDF file" + @echo " goes into the LaTeX documentation directories (the auxiliary" + @echo " files may be discarded)." + @echo + @echo " make clean" + @echo " make cleanall" + @echo " These two commands are synonyms; they remove all of the" + @echo " generated files (both code and documentation)." + @echo + @echo " make cleancode" + @echo " Remove the LaTeX source files (the \"code files\")." + @echo + @echo " make cleandoc" + @echo " Remove the documentation, together with all the auxiliary" + @echo " files used to generate it." + @echo + @echo " make cleanaux" + @echo " Remove only the auxiliary files used to generate the" + @echo " documentation." + @echo + @echo " make cleanlog" + @echo " Remove just the transcript file (e.g., after \"make doc\")." + @echo + @echo " make help" + @echo " Print this help message." + @echo + diff --git a/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.dtx b/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.dtx index 83e0f21fb01..44739dc2ee1 100644 --- a/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.dtx +++ b/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.dtx @@ -5,7 +5,7 @@ % % This file is part of a work named "halloweenmath package". % -% Copyright (C) 2017 by Gustavo MEZZETTI. +% Copyright (C) 2019 by Gustavo MEZZETTI. % % This file may be distributed and/or modified under the conditions % of the LaTeX Project Public License, either version 1.3 of this @@ -32,12 +32,12 @@ % \fi % % \def\filename{halloweenmath.dtx} -% \def\fileversion{0.10a} -% \def\filedate{2017/04/25} -% \def\docdate {2017/04/25} -% \def\doclongdate{April~25, 2017} +% \def\fileversion{0.11} +% \def\filedate{2019/11/01} +% \def\docdate {2019/11/01} +% \def\doclongdate{November~1, 2019} % -% \CheckSum{2259} +% \CheckSum{2262} % % \changes{0.01}{2017 Jan 06}{First writing of the code} % \changes{0.10}{2017 Apr 16}{Changed the look of the broom in the extensible @@ -197,7 +197,7 @@ % integration\thanks{This file has % version~\fileversion, release date \filedate; % last documentation update: \docdate. -% Copyright \copyright~2017 by G.~Mezzetti +% Copyright \copyright~2019 by G.~Mezzetti % (see page~\pageref{S:Copy}).} % } % \author{G. Mezzetti} @@ -210,8 +210,8 @@ % pdfauthor = {G. Mezzetti}, % pdfsubject = {Documentation of the halloweenmath package}, % pdfkeywords = {Halloween, math, scary mathematical symbols}, -% pdfcreationdate = {D:20170425120000}, -% pdfmoddate = {D:20170425120000}, +% pdfcreationdate = {D:20191101120000}, +% pdfmoddate = {D:20191101120000}, % bookmarksopen, % bookmarksopenlevel = 1 % } @@ -300,7 +300,7 @@ % \label{S:Copy} % \vspace{-\parskip} % -% Copyright \copyright~2017 by Gustavo \textsc{Mezzetti}. +% Copyright \copyright~2019 by Gustavo \textsc{Mezzetti}. % All rights are reserved, except as noted below. % % This document has been produced by feeding to a \LaTeX\ typesetting engine @@ -347,7 +347,7 @@ % % \begin{list}{\setlength{\topsep}{0pt}}\item\relax % Gustavo \textsc{Mezzetti}\\ -% L.~S.~U. ``A.~di Savoia Duca degli Abruzzi''\\ +% L.~S.~U. ``A.~di Savoia Duca d'Aosta''\\ % Via del Santo, 57\\ % I--35123\quad PADOVA\quad PD\\ % Italy @@ -1219,7 +1219,7 @@ % The usual identification: % \begin{macrocode} \ProvidesPackage{halloweenmath} - [2017/04/25 v0.10a (development)] + [2019/11/01 v0.11 (development)] % \end{macrocode} % % \subsection{Initial code} @@ -1338,11 +1338,16 @@ % \end{macro} % % \begin{macro}{\@HwM@right@or@left} +% \changes{0.11}{2019 Nov 01}{Corrected bug: \cs{@HwM@right@or@left} +% now defaults to \cs{@gobbletwo}} % Used to pass information about the orientation of left\slash right -% symmetric figures. Here we just check that the name can be used, at the -% same time reserving it. +% symmetric figures. More precisely, it is a switch that selects +% between two branches according to the current orientation. Here we +% set the global default (no current orientation defined) so that it +% ignores \emph{both} branches, thus correcting a bug in versions +% prior to 0.11. % \begin{macrocode} -\@ifdefinable\@HwM@right@or@left{} +\@ifdefinable\@HwM@right@or@left{\let \@HwM@right@or@left=\@gobbletwo} % \end{macrocode} % \end{macro} % diff --git a/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.ins b/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.ins index 6a40a552263..1aced78b5b5 100644 --- a/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.ins +++ b/Master/texmf-dist/source/latex/halloweenmath/halloweenmath.ins @@ -3,7 +3,7 @@ % % This file is part of a work named "halloweenmath package". % -% Copyright (C) 2017 by Gustavo MEZZETTI. +% 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 @@ -25,7 +25,7 @@ % only part of the Work" in the sense of the LaTeX Project Public % License, and should be avoided. % -% April 25, 2017 (vers. 0.10a) +% November 1, 2019 (vers. 0.11) % \input docstrip @@ -119,7 +119,7 @@ This is a generated file. It is part of a work named "halloweenmath package". -Copyright (C) 2017 by Gustavo MEZZETTI. +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 @@ -141,7 +141,7 @@ 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. -April 25, 2017 (vers. 0.10a) +November 1, 2019 (vers. 0.11) \endpreamble |