texlive[65022] Master/texmf-dist: photobook (15nov22)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 15 21:52:12 CET 2022


Revision: 65022
          http://tug.org/svn/texlive?view=revision&revision=65022
Author:   karl
Date:     2022-11-15 21:52:12 +0100 (Tue, 15 Nov 2022)
Log Message:
-----------
photobook (15nov22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/photobook/Makefile
    trunk/Master/texmf-dist/doc/latex/photobook/photobook.pdf
    trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls

Modified: trunk/Master/texmf-dist/doc/latex/photobook/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/photobook/Makefile	2022-11-15 20:51:59 UTC (rev 65021)
+++ trunk/Master/texmf-dist/doc/latex/photobook/Makefile	2022-11-15 20:52:12 UTC (rev 65022)
@@ -119,13 +119,19 @@
 #DIST_NAME := $(MODULE)-$(VERSION)
 DIST_NAME := $(MODULE)-$(VERSION)-$(DATE)
 DIST_DIR := dist
-DIST_FILES = \
+DIST_SCRIPTS = \
+	$(wildcard scripts/*)
+# NOTE: these are separate to unset the x bit...
+DIST_NORMAL_FILES = \
 	README.md \
 	LICENSE \
 	Makefile \
-	$(wildcard scripts/*) \
 	$(MODULE).cls \
 	$(MODULE).pdf
+DIST_FILES = \
+	$(DIST_SCRIPTS) \
+	$(DIST_NORMAL_FILES) \
+
 # Add these when ready...
 #	$(wildcard examples/*) \
 #	$(wildcard manual/*) \
@@ -270,6 +276,7 @@
 .PHONY: dist
 dist: $(DIST_FILES)
 	$(MD) $(DIST_DIR)
+	chmod 644 $(DIST_NORMAL_FILES)
 	zip -Drq $(DIST_DIR)/$(DIST_NAME).zip $(DIST_FILES)
 	# Place everything in the module dir as per CTAN spec...
 	zipnote $(DIST_DIR)/$(DIST_NAME).zip \
@@ -287,15 +294,15 @@
 .PHONY: tag
 tag:
 	@echo "Will create and publish git tag:"
-	@echo "    $(VERSION)"
+	@echo "    v$(VERSION)"
 	@echo "Last 5 tags:"
-	@git tag -l '[0-9]*'\
+	@git tag -l 'v[0-9]*'\
 		| tail -n 5 \
 		| sed 's/^/    /'
 	@echo "Note that this must be done after a commit."
 	@read -p "(press any key to continue or ctrl-c to cancel)"
-	git tag "$(VERSION)"
-	git commit origin "$(VERSION)"
+	git tag "v$(VERSION)"
+	git push origin "v$(VERSION)"
 
 
 #.PHONY: publish

Modified: trunk/Master/texmf-dist/doc/latex/photobook/photobook.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls	2022-11-15 20:51:59 UTC (rev 65021)
+++ trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls	2022-11-15 20:52:12 UTC (rev 65022)
@@ -58,8 +58,8 @@
 
 %%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the 
 %%%		code and the generated docs...
-\edef\photobook at FILEVERSION{v0.1.3}
-\edef\photobook at FILEDATE{2021-07-28}
+\edef\photobook at FILEVERSION{v0.1.5}
+\edef\photobook at FILEDATE{2022-11-14}
 
 
 %% \documentclass{ltxdoc}
@@ -404,6 +404,10 @@
 %% \end{verbatim}
 %% \end{minipage}
 %%
+%% Note that for |cover|, |endpaper|, and |jacket|, 
+%% \href{https://ctan.org/pkg/fancyhdr}{fancyhdr}'s |\pagestyle{..}| is 
+%% set to |empty| by default.
+%%
 %
 % XXX in cover layout setup pdf boxes in a way to use \bleed as foldover...
 % 		...see hyperref docs to set pdf view/print area (???)
@@ -550,47 +554,83 @@
 
 
 %----------------------------------------------------------------------
-% Packages...
+%%%% Packages
 %
-% NOTE: imports are after \LoadClass{ .. } to avoid figting over macro
+%% |photobook| adds and uses internally the following packages: 
+%
+% NOTE: imports are after \LoadClass{ .. } to avoid fighting over macro
 %		names...
 
+%% \href{https://ctan.org/pkg/geometry}{geometry},
+%% \href{https://ctan.org/pkg/kvoptions}{kvoptions},
+
+%% \href{https://ctan.org/pkg/calc}{calc},
 \RequirePackage{calc}
+%% \href{https://ctan.org/pkg/xargs}{xargs},
 \RequirePackage{xargs}
+%% \href{https://ctan.org/pkg/ifthen}{ifthen},
 \RequirePackage{ifthen}
+%% \href{https://ctan.org/pkg/iftex}{iftex},
 \RequirePackage{iftex}
+%% \href{https://ctan.org/pkg/pgffor}{pgffor},
 \RequirePackage{pgffor}
+%% \href{https://ctan.org/pkg/xint}{xint},
 \RequirePackage{xint}
+%% \href{https://ctan.org/pkg/xinttools}{xinttools},
 \RequirePackage{xinttools}
+%% \href{https://ctan.org/pkg/listofitems}{listofitems},
 \RequirePackage{listofitems}
+%% \href{https://ctan.org/pkg/xkeyval}{xkeyval},
 \RequirePackage{xkeyval} 
+%% \href{https://ctan.org/pkg/etoolbox}{etoolbox},
 \RequirePackage{etoolbox}
+%% \href{https://ctan.org/pkg/atbegshi}{atbegshi},
 \RequirePackage{atbegshi}
 %\RequirePackage{afterpage}
 %\RequirePackage{changepage}
+%% \href{https://ctan.org/pkg/hyperref}{hyperref},
 \RequirePackage[unicode]{hyperref}
 %\RequirePackage{pdfcomment}
+%% \href{https://ctan.org/pkg/eso-pic}{eso-pic},
 \RequirePackage{eso-pic}
+%% \href{https://ctan.org/pkg/environ}{environ},
 \RequirePackage{environ}
+%% \href{https://ctan.org/pkg/numprint}{numprint},
 \RequirePackage{numprint}
+%% \href{https://ctan.org/pkg/trimclip}{trimclip},
 \RequirePackage{trimclip}
+%% \href{https://ctan.org/pkg/xcolor}{xcolor},
 \RequirePackage{xcolor}
+%% \href{https://ctan.org/pkg/colorspace}{colorspace},
 \RequirePackage{colorspace}
+%% \href{https://ctan.org/pkg/graphicx}{graphicx},
 \RequirePackage{graphicx}
+%% \href{https://ctan.org/pkg/adjustbox}{adjustbox},
 \RequirePackage{adjustbox}
+%% \href{https://ctan.org/pkg/adjustbox}{adjustbox},
 \RequirePackage[absolute]{textpos}
+%% \href{https://ctan.org/pkg/fancyvrb}{fancyvrb},
 \RequirePackage{fancyvrb}
+%% \href{https://ctan.org/pkg/tikz}{tikz},
 \RequirePackage{tikz}
 %\RequirePackage[linewidth=1pt]{mdframed}
 % XXX flow text frames...
 % XXX this messes with geometry....
 %\RequirePackage{flowfram}
+%% \href{https://ctan.org/pkg/rotating}{rotating},
 \RequirePackage{rotating}
+%% \href{https://ctan.org/pkg/fancyhdr}{fancyhdr}, and
 \RequirePackage{fancyhdr}
+%% \href{https://ctan.org/pkg/pdfpages}{pdfpages}.
 \RequirePackage{pdfpages}
 
 
+%% \newline
+%% Most of these packages can be used by the book author without explicitly
+%% importing them.
+%%
 
+
 %----------------------------------------------------------------------
 %%%% Globals
 % XXX move these out to relevant sections + add a separate globals glossary...
@@ -646,6 +686,7 @@
 %%	Cover flap
 %%
 \newlength\coverflap
+\setlength\coverflap{\photobook at coverflap}
 
 %% \DescribeMacro{\jacketwrap=<len>}
 %% \DescribeMacro{\jacketflap=<len>}
@@ -655,9 +696,13 @@
 %%	Jacker configuration
 %%
 \newlength\jacketwrap
+\setlength\jacketwrap{\photobook at jacketwrap}
 \newlength\jacketflap
+\setlength\jacketflap{\photobook at jacketflap}
 \newlength\jacketflapfront
+\setlength\jacketflapfront{\photobook at jacketflapfront}
 \newlength\jacketflapback
+\setlength\jacketflapback{\photobook at jacketflapback}
 
 %% \DescribeMacro{\blockwidth=<len>}
 %% \DescribeMacro{\blockheight=<len>}
@@ -926,26 +971,9 @@
 	\else
 		\def\pdfpagelayout{\photobook at pdfpagelayout}\fi
 	% items to ignore in different layouts...
-	\ifcoverlayout
-		\setlength\coverflap{
-			\ifx\coverflap\empty
-				\photobook at coverflap
-			\else
-				\coverflap \fi}
-	\else
+	\ifcoverlayout\else
 		\setlength\coverflap{0pt}\fi
-	\ifjacketlayout
-		\setlength\jacketwrap{
-			\ifx\jacketwrap\empty
-				\photobook at jacketwrap
-			\else
-				\jacketwrap \fi}
-		\setlength\jacketflap{
-			\ifx\jacketflap\empty
-				\photobook at jacketflap
-			\else
-				\jacketflap \fi}
-	\else
+	\ifjacketlayout\else
 		\setlength\jacketwrap{0pt}
 		\setlength\jacketflap{0pt}\fi
 	% flaps...
@@ -966,6 +994,7 @@
 		\setlength\pageblockwidth{\blockwidth}
 		% layout: cover...
 		\ifcoverlayout
+			\pagestyle{empty}%
 			\setsepchar{,}%
 			\readlist*\pagefoldpanels{%
 				\the\coverflap,
@@ -992,6 +1021,7 @@
 		% layout: jacket...
 		% XXX this seems to be about 6mm off -- what are we missing here???
 		\ifjacketlayout
+			\pagestyle{empty}%
 			\setsepchar{,}%
 			\readlist*\pagefoldpanels{%
 				\the\jacketflapback,
@@ -1019,6 +1049,7 @@
 					+ \jacketflapback \relax}\fi
 		% layout: endpaper...
 		\ifendpaperlayout
+			\pagestyle{empty}%
 			\readlist*\pagefoldpanels{%
 				\the\pageblockwidth,
 				\the\pageblockwidth}%



More information about the tex-live-commits mailing list.