texlive[73372] Master: fillpages (8jan25)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 8 22:11:44 CET 2025


Revision: 73372
          https://tug.org/svn/texlive?view=revision&revision=73372
Author:   karl
Date:     2025-01-08 22:11:44 +0100 (Wed, 08 Jan 2025)
Log Message:
-----------
fillpages (8jan25)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/fillpages/
    trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.pdf
    trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.svg
    trunk/Master/texmf-dist/doc/latex/fillpages/README.md
    trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.pdf
    trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.tex
    trunk/Master/texmf-dist/tex/latex/fillpages/
    trunk/Master/texmf-dist/tex/latex/fillpages/fillpages.sty
    trunk/Master/tlpkg/tlpsrc/fillpages.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.pdf	2025-01-08 21:11:09 UTC (rev 73371)
+++ trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.pdf	2025-01-08 21:11:44 UTC (rev 73372)

Property changes on: trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.svg
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.svg	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/fillpages/GFM-FP-LogoS.svg	2025-01-08 21:11:44 UTC (rev 73372)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="12.802"
+   height="14.495"
+   viewBox="0 0 12.802 14.495"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.91 r13725"
+   sodipodi:docname="GFM-FP-LogoS.svg">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="5.6"
+     inkscape:cx="-4.8038846"
+     inkscape:cy="14.476093"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     units="px"
+     inkscape:showpageshadow="false"
+     inkscape:window-width="1920"
+     inkscape:window-height="1028"
+     inkscape:window-x="-8"
+     inkscape:window-y="-8"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Ebene 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1037.8672)">
+    <path
+       style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:6.0999999;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="m 6.2940256,1049.3204 5.3608584,0 -4.0000004,2.6918 -6.160715,0 z"
+       id="rect4140-8-3"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="ccccc" />
+    <path
+       style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:6.0999999;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="m 6.2940266,1047.0973 5.3608584,0 -4.0000004,2.6918 -6.160715,0 z"
+       id="rect4140-6-6"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="ccccc" />
+    <path
+       style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:6.0999999;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="m 6.1394976,1044.8746 5.3608584,0 -4.0000004,2.6918 -6.160715,0 z"
+       id="rect4140-0"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="ccccc" />
+  </g>
+</svg>

Added: trunk/Master/texmf-dist/doc/latex/fillpages/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fillpages/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/fillpages/README.md	2025-01-08 21:11:44 UTC (rev 73372)
@@ -0,0 +1,16 @@
+# fillpages package
+This package fills your document with blank or predefined pages to match a page count, that is suitable for printing (i.e. dividable by 4).
+
+There are three commands:
+\pagesDividableBy{<most likely 4, 8 or 16>}[<some optional offset i.e. 2>]
+\setFillPage{<put something in here, if you don't like blank pages>}
+\insertFillPages
+
+The last one defines the insertion point. There can be an arbitrary number of insertion points. Before every insertFillPages command there should be a clearpage command to assert, that there is a page break before, and avoid strange behaviour.
+
+# license, version, author
+This work is published under the LaTeX project public license 1.3.
+ 
+2025-01-07: version 1.0.0
+
+Created by Gabriel Ruprecht.
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/fillpages/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.pdf	2025-01-08 21:11:09 UTC (rev 73371)
+++ trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.pdf	2025-01-08 21:11:44 UTC (rev 73372)

Property changes on: trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.tex	2025-01-08 21:11:44 UTC (rev 73372)
@@ -0,0 +1,201 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                   %
+%      Made by Gabriel Ruprecht     %
+%                                   %
+% This work is published under the  %
+% LaTeX project public license 1.3  %
+%                                   %
+%       Package version 1.0.0       %
+%            2025-01-07             %
+%                                   %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\documentclass[11pt,a4paper]{scrartcl}
+\usepackage[utf8]{inputenc}
+\usepackage[english]{babel}
+\usepackage{graphicx}
+\usepackage{listings}
+\lstset
+{ %Formatting for code in appendix
+    language=TeX,
+    numbers=left,
+    stepnumber=1,
+    showstringspaces=false,
+    tabsize=1,
+    breaklines=true,
+    breakatwhitespace=false,
+    basicstyle=\ttfamily}
+
+
+\usepackage{xcolor}
+\usepackage{hyperref}
+\usepackage{parskip}
+
+\makeatletter
+%\def\FillPages{\makebox{\vspace*{50pt} \includegraphics[height=\f at size pt]{./GFM-FP-Logo}} }
+\def\FillPagesTiny{\includegraphics[height=\f at size pt]{./GFM-FP-LogoTiny}\hspace*{-3pt}}
+\def\FillPagesS{\hspace*{3pt}\includegraphics[height=\f at size pt]{./GFM-FP-LogoS}\hspace*{3pt}}
+\makeatother
+\title{Fill\FillPagesS Pages\FillPagesS Package\vskip 9pt\relax}
+\subtitle{Version 1.0.0}
+\author{Gabriel Ruprecht}
+
+
+\begin{document}
+\maketitle
+\section{Introduction}
+\subsection{About}
+The \textsf{Fill\FillPagesS Pages\FillPagesS Package} can be used, if you create a book, booklet or similar. In these cases you often print something, where your page count must be dividable by 4, 8 or 16. This package fills your document with the needed pages. By default, they are blank, but they may also have a pre-defined content. If you use this package, you have to compile at least two times. The first run counts the pages and inserting positions. This information is then used in the second run, to calculate the number of pages to be inserted. 
+
+\subsection{License}
+This package is subject to the LaTeX Project Public License 1.3. You may do whatever you want with.  If you change the package and redistribute it, please keep the credits.
+
+\section{Example document}
+The fastest way to see, how it works, is copying this document and play around a little bit:
+
+\begin{lstlisting}[numbers=none]
+\documentclass{report}
+\usepackage[utf8]{inputenc}
+\usepackage[latin,english]{babel}
+\usepackage{lipsum}
+
+\usepackage{fillpages}
+
+\pagesDividableBy{4}
+%\pagesDividableBy{4}[2] % with optional offset
+
+\setFillPage{2}{
+ABC
+
+DEF
+}
+
+\setFillPage{3}{
+123
+
+456
+}
+
+
+\begin{document}
+
+\lipsum
+
+\clearpage
+\insertFillPages
+\insertFillPages
+
+\lipsum
+\lipsum
+\pagenumbering{Roman}
+\lipsum
+\lipsum
+
+\clearpage
+\insertFillPages
+
+\lipsum
+
+\end{document}
+\end{lstlisting}
+
+\section{Commands}
+You have to define the number which the total page number should be devideable by. Then you define the insertion points for the fill pages. You can define content for any of these pages. After that, you have to run the document at least two times for a proper result. In the first run, the insertion points are counted and the regular page number is collected. On the second run, the pages are inserted.\bigskip
+
+\noindent\verb&\insertFillPages&\\ This command must be placed at the points, where insertion is allowed (insertion points). This can be done at multiple points. The total number of pages to be inserted is divided by the number of insertion points. If there are three insertion points and five pages will be inserted, the insertion will be \verb#1 1 2#. Previous to every \verb+\inserFillPages+ there should be a \verb+\clearpage+. Otherwise the page count will be miscalculated and might toggle.
+
+\noindent\verb&\pagesDividableBy{number}[offset]&\\ This defines the number the page number must be dividable by (default~=~4). If \verb+number+ is 4 and page count is 13, 3 pages will be inserted~(4*4=16; 13+3=16). If \verb+number+ is~4 and \verb+offset+ is 2, the same example will lead to 1 inserted page (3*4=12; 12+2=14; 13+1=14). You can make the page numbers also dividable by 5 with an offset of 3. There is no limitation. The result will always be the minimal number of inserted pages. Dividable by 4, offset 1 has the same result as dividable by 4, offset 5.
+
+\noindent\verb&\setFillPage{pagenumber}{content}&\\
+This creates a custom page, which will be used, if needed. By default all inserted pages are white, but if they shouldn't be white, you can define a content. I.e.
+\begin{lstlisting}[numbers=none]
+    \setFillPage{3}{This is the insert page three}
+\end{lstlisting}\vskip -8pt\relax
+will create a page with the text ''This is the insert page three''. If only 2 pages are needed, it won't be used. If more than 2 are used, it will be. You can define as many fill pages as you want, but only the required amount will appear in your document. The command is defined as long, which means, you are allowed to use paragraphs inside. It behaves almost like any other page in \LaTeX .
+
+\section{What the package uses}
+The package relies solely on standard \LaTeX -core functions.
+
+\section{How it works}
+The principle is really straight forward. The difficulty was to implement it bug free and robust (especially the idempotency).
+
+\begin{enumerate}
+\item First run: 
+\begin{enumerate}
+\item Count all places, where pages can be inserted.
+\end{enumerate}
+\item Second run: 
+\begin{enumerate}
+\item Calculate the number of total pages without the fill pages, that were inserted.
+\item Do a modulo division on this page count by target divisor (offset must be considered). It is actually not a modulo operation, but this is the principle behind it. Page count is 15, must be dividable by 4 (offset 0), 15\%4=3 $\rightarrow$ 1 page too less.
+\item This number of pages to be inserted is distributed across all insertion points.\\Example 1: 3 insertion points and 3 pages, each gets one page.\\Example 2: 3 insertion points and 4 pages, first two get one page, third one gets two pages. This is done by the total limit. At the first point total limit is 1.33 $\rightarrow$ 1 inserted. At the second point, limit is 2.66, 1 already inserted $\rightarrow$ insert 1. At the third insertion point the total limit is 4, 2 already inserted  $\rightarrow$  insert 2.
+\end{enumerate}
+\end{enumerate}
+
+\section{References and interferences}
+To avoid any interference with other packages, I listed the most probable causes for interference.
+
+The package uses the \verb+\AtBeginDocument+ and \verb+\AtEndDocument+ document hook. If there is some issue with them, it won't work. I experienced some weird behaviour in koma classes with a beta-version of this package, which I couldn't explain. Therefore, it is mentioned here.
+
+The package writes the following lines to the aux-file:\begin{lstlisting}[breaklines, numbers=none]
+    \global\GFM at FiPa@numberOfFillPagePositions=<Number of fill page positions>}
+
+    \global\GFM at FiPa@numberOfInsertedPages=<Page count of fill pages>}
+\end{lstlisting}\vskip -8pt\relax
+\noindent Make sure, that they don't interfere with anything of other packages or with any of your counters. Due to the naming this shouldn't happen at all.
+
+
+\section{Known problems}
+\subsection{Page number toggles}
+If you have i.e. 10 pages and define dividable by 4, it should be 12 pages, which makes 2 fill pages. If the page number toggles between 11 and 13 every two runs, there are two possible reasons:
+\begin{enumerate}
+\item You didn't put a clearpage before the \verb+\insertFillPages+
+\item You defined a custom fill page which is bigger than one page and will result in two fill pages, though one should be inserted
+\end{enumerate}
+
+
+\section{Bug reports}
+Nothing to say here. You can post any bug reports on bitbucket, if you find some:
+\begin{quote}
+\url{https://bitbucket.org/maestro-glanz/fillpages/src/main/}
+\end{quote}
+If you don't have a bitbucket account and don't want to create one, you can post an email to \mbox{text\color{white}.\color{black}\hspace*{-7.5pt} inkerer.1904$@$gmail.com} and hope, that I read it within 3 month. Note:~Copying the mail address will fail. This is for spam precautions. You have to type it off your screen. This is a good memory exercise to keep your mind vital a flexible.
+
+\section{Revision history}
+\noindent
+\begin{tabular}{l l}
+2017/11/01:& version 0.1.0\\
+2025/01/07:& version 1.0.0
+\end{tabular}
+
+
+\end{document}
+
+\section{Before upload}
+Is the license in 
+- the sty- and tex-files?
+- readme?
+
+Is the author name in 
+- the sty- and tex-files?
+- readme?
+
+Is the version number in 
+- the docu text?
+- the sty- and tex-files (+provides package param)?
+- readme?
+  
+Is the correct revision date in 
+- the docu text?
+- the sty- and tex-files?
+- readme?
+
+Is the repo link in
+- the docu text?
+- the sty- and tex-files? -> no
+- readme? -> no
+
+
+
+
+
+\chapter{fillpages}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/fillpages/fillpages-documentation.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/fillpages/fillpages.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fillpages/fillpages.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/fillpages/fillpages.sty	2025-01-08 21:11:44 UTC (rev 73372)
@@ -0,0 +1,192 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                   %
+%      Made by Gabriel Ruprecht     %
+%                                   %
+% This work is published under the  %
+% LaTeX project public license 1.3  %
+%                                   %
+%       Package version 1.0.0       %
+%            2025-01-07             %
+%                                   %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\ProvidesPackage{fillpages}[version 1.0.0]
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% Number definitions %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% How many pages were inserted in the last run
+% (at begin document) and how many pages are already
+% inserted in this run (after begin document). The
+% default value is overwritten with the content from
+% the aux file (if there had ever be a run).
+\newcount\GFM at FiPa@numberOfInsertedPages\relax
+\GFM at FiPa@numberOfInsertedPages=0\relax
+
+% To distribute the fill pages on evenly on all 
+% insertion points, they must be counted. Default
+% value must be 1 to avoid division by 0. It will
+% be overwritten by the aux file value.
+\newcount\GFM at FiPa@numberOfFillPagePositions\relax
+\GFM at FiPa@numberOfFillPagePositions=1\relax
+
+% Number of pages, if there weren't any fill pages.
+\newcount\GFM at FiPa@pageCountWithoutFillPages\relax
+\GFM at FiPa@pageCountWithoutFillPages=0\relax
+
+% Self-explaining. Will be calculated. It is a
+% float number, therefore realized as a length.
+\newdimen\GFM at FiPa@pagesPerFillPosition\relax
+\GFM at FiPa@pagesPerFillPosition=0pt\relax
+
+% The currentLimit defines, how many new fill pages
+% are inserted. If there were over all 3 and current
+% limit is 5, 2 fill pages will be inserted at the
+% current insertion point.
+\newdimen\GFM at FiPa@currentLimit\relax
+\GFM at FiPa@currentLimit=0pt\relax
+
+% The number, by which the page number must be
+% dividable.
+\newcount\GFM at FiPa@Divisor\relax
+\GFM at FiPa@Divisor=4\relax
+
+% An offset, if the numbers must be i.e. dividable
+% by 4 and have 2 extra pages.
+\newcount\GFM at FiPa@DivideableOffset\relax
+\GFM at FiPa@DivideableOffset=0\relax
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% Set the number by which the  %%%
+%%% page count must be dividable %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\NewDocumentCommand\pagesDividableBy{m O{0}}{%
+\GFM at FiPa@Divisor=#1\relax%
+\ifnum\GFM at FiPa@Divisor<1\relax%
+    \PackageError{fillpages.sty}{line 31: Illegal number}{You can't divide a page count by zero. Replaced with 1.}%
+    \GFM at FiPa@Divisor=1\relax%
+\fi%
+\ifnum\GFM at FiPa@Divisor>50\relax%
+    \PackageWarning{fillpages.sty}{Strange number. You want your pages dividable by a number greater than 50}%
+\fi%
+\GFM at FiPa@DivideableOffset=#2\relax%
+}
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% Defines a custom fillpage              %%%
+%%%                                        %%%
+%%% i.e. \setFillPage{1}{custom Text} lets %%%
+%%% appear "custom Text" on fillpage no. 1 %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\long\def\setFillPage#1#2{
+\expandafter\global\expandafter\def\csname GFM at FiPa@AusgleichSeite#1\endcsname {
+#2%
+}%\def\csname...
+}%\def\setFillPage
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% Do the calculations, after  %%%
+%%% the aux file had been read. %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\AtBeginDocument{
+% From aux-file: 
+% GFM at FiPa@numberOfFillPagePositions
+% GFM at FiPa@numberOfInsertedPages
+
+% Calculate pagesCountWithoutFillPages
+\GFM at FiPa@pageCountWithoutFillPages=\PreviousTotalPages\relax
+\advance\GFM at FiPa@pageCountWithoutFillPages by -\GFM at FiPa@numberOfInsertedPages\relax
+% Reset to 0 for the next counting round.
+\GFM at FiPa@numberOfInsertedPages=0\relax
+
+\GFM at FiPa@pagesPerFillPosition=\the\GFM at FiPa@pageCountWithoutFillPages pt\relax
+\advance\GFM at FiPa@pagesPerFillPosition by -\GFM at FiPa@DivideableOffset pt\relax
+
+\ifdim\GFM at FiPa@pagesPerFillPosition>0 pt%
+\loop%
+\advance\GFM at FiPa@pagesPerFillPosition by -\GFM at FiPa@Divisor pt\relax%
+\ifdim\GFM at FiPa@pagesPerFillPosition>0 pt\repeat%
+%loop%
+\fi
+
+\multiply\GFM at FiPa@pagesPerFillPosition by -1\relax%
+
+\divide\GFM at FiPa@pagesPerFillPosition by \GFM at FiPa@numberOfFillPagePositions\relax%
+
+\GFM at FiPa@numberOfFillPagePositions=0\relax
+}%AtBeginDocument
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% This defines an insertion point   %%%
+%%% where the fill pages will appear. %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\insertFillPages{%
+% i++ for GFM at FiPa@numberOfFillPagePositions%
+\advance\GFM at FiPa@numberOfFillPagePositions by 1\relax%
+%
+% calculate the GFM at FiPa@currentLimit for insertion%
+\GFM at FiPa@currentLimit=\GFM at FiPa@pagesPerFillPosition\relax%
+\multiply\GFM at FiPa@currentLimit by \GFM at FiPa@numberOfFillPagePositions\relax%
+\advance\GFM at FiPa@currentLimit by -0.98pt\relax%
+%
+% insert pages%
+\ifdim\GFM at FiPa@numberOfInsertedPages pt<\GFM at FiPa@currentLimit%
+    \loop%
+        \advance\GFM at FiPa@numberOfInsertedPages by 1\relax%
+        \clearpage%
+        % choose the content of a predefined page. If it doesn't exist, csname expands to nothing.
+        \csname % 
+        GFM at FiPa@AusgleichSeite\the\GFM at FiPa@numberOfInsertedPages
+        \endcsname%
+        \mbox{}%
+        \clearpage%
+        \ifnum\GFM at FiPa@numberOfInsertedPages>1000\relax%
+            \PackageError{fillpages.sty}{line 101: More than 1000 fill pages produced.}{You tried to insert more than 1000 fill pages. This must be an infinite loop.}%
+            \errmessage{Infinite loop detected}
+        \fi%
+    \ifdim\GFM at FiPa@numberOfInsertedPages pt<\GFM at FiPa@currentLimit\repeat%
+    %end loop%
+\fi%ifdim
+}%insertFillPages
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% Do a calculation and write %%%
+%%% numbers to the aux file.   %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\AtEndDocument{
+% Write to aux
+\ifnum\GFM at FiPa@numberOfFillPagePositions > 0\relax
+    \write\@auxout{%
+            \noexpand\global%
+            \noexpand\GFM at FiPa@numberOfFillPagePositions=%
+            \the\GFM at FiPa@numberOfFillPagePositions%
+            \noexpand\relax}
+\fi
+
+\write\@auxout{%
+        \noexpand\global%
+        \noexpand\GFM at FiPa@numberOfInsertedPages=%
+        \the\GFM at FiPa@numberOfInsertedPages%
+        \noexpand\relax}
+
+% Write to log:
+\wlog{Number of fill page positions: \the\GFM at FiPa@pagesPerFillPosition\relax}%
+\wlog{Number of inserted fill pages: \the\GFM at FiPa@numberOfInsertedPages\relax}%
+
+}%AtEndDocument
+


Property changes on: trunk/Master/texmf-dist/tex/latex/fillpages/fillpages.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2025-01-08 21:11:09 UTC (rev 73371)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2025-01-08 21:11:44 UTC (rev 73372)
@@ -343,7 +343,8 @@
     ffcode ffslides fge fgruler
     fifinddo-info fifo-stack
     fig4latex figbas figbib figchild figflow figput figsize
-    filecontents filecontentsdef filedate filehook fileinfo filemod fillwith
+    filecontents filecontentsdef filedate filehook fileinfo filemod
+    fillpages fillwith
     findhyph fink finstrut fira firamath firamath-otf
     first-latex-doc firstaid fistrum fitbox fitch fithesis
     fix2col fixcmex fixdif fixfoot fixjfm fixlatvian

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2025-01-08 21:11:09 UTC (rev 73371)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2025-01-08 21:11:44 UTC (rev 73372)
@@ -542,6 +542,7 @@
 depend filedate
 depend fileinfo
 depend filemod
+depend fillpages
 depend fillwith
 depend fink
 depend finstrut

Added: trunk/Master/tlpkg/tlpsrc/fillpages.tlpsrc
===================================================================


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