texlive[64572] Master/texmf-dist: flexipage (1oct22)
commits+karl at tug.org
commits+karl at tug.org
Sat Oct 1 21:50:16 CEST 2022
Revision: 64572
http://tug.org/svn/texlive?view=revision&revision=64572
Author: karl
Date: 2022-10-01 21:50:16 +0200 (Sat, 01 Oct 2022)
Log Message:
-----------
flexipage (1oct22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/flexipage/README.txt
trunk/Master/texmf-dist/doc/latex/flexipage/flexipage.pdf
trunk/Master/texmf-dist/source/latex/flexipage/flexipage.dtx
trunk/Master/texmf-dist/tex/latex/flexipage/flexipage.sty
Modified: trunk/Master/texmf-dist/doc/latex/flexipage/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/flexipage/README.txt 2022-10-01 19:50:02 UTC (rev 64571)
+++ trunk/Master/texmf-dist/doc/latex/flexipage/README.txt 2022-10-01 19:50:16 UTC (rev 64572)
@@ -2,6 +2,7 @@
Copyright (c) Anton Vrba, 2022
-------------------------------------------------------------------
Version:
+ 2022/10/01 1.01 added the option: extrafirstfoot
2022/07/09 1.00 Initial release
Licence:
This work may be distributed and/or modified under the conditions
@@ -14,7 +15,8 @@
The package flexipage allows easy page layout if marginalia is
required. Mid document changes are possible such as: new marginal
width, full width text, and landscape text without marginal.
- Partners well with the package sidenotesplus. The package also
- aids the layout for book printing, adding binding corrections
- and adding page bleed, if required by the printers
+ The first page textheight can be reduced to allow for more
+ footerheight. Partners well with the package sidenotesplus. The
+ package also aids the layout for book printing, adding binding
+ corrections and adding page bleed, if required by the printers
-------------------------------------------------------------------
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/flexipage/flexipage.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/flexipage/flexipage.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/flexipage/flexipage.dtx 2022-10-01 19:50:02 UTC (rev 64571)
+++ trunk/Master/texmf-dist/source/latex/flexipage/flexipage.dtx 2022-10-01 19:50:16 UTC (rev 64572)
@@ -26,7 +26,8 @@
%<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
%<package>\ProvidesPackage{flexipage}
%<*package>
- [2022/07/09 1.00 Easy page geometry]
+% [2022/07/09 1.00 Easy page geometry]
+ [2022/10/01 1.01 First Page different footer]
%</package>
%
%<*driver>
@@ -190,6 +191,7 @@
% % headsep = , % inherits from class
% % headheight = , % inherits from class
% % footskip= , % inherits from class
+% % extrafirstfoot= , % 0pt, first page extra footer, reduces textheight
% % show , % a switch to show frames around the printable areas.
% % fancyhdrOff , % Do not use the fancyhdr package
% % NoFixMargin % a possible future requirement
@@ -201,8 +203,12 @@
% \paragraph{Known Issue:} If using the option |show| and the package \textsf{xcolor}
% is loaded later with options, an error will occur. The reason
% is that when option |show| is specified the package \textsf{eso-pic} is loaded
-% whch in turns loads \textsf{xcolor} without options.
+% which in turns loads \textsf{xcolor} without options. Remedy, load \textsf{xcolor}
+% with options before loading \textsf{flexipage}
%
+% If the option |extrafirstfoot| is used, and |show| is used then the frames for the
+% first page do not show the effect of |extrafirstfoot|.
+%
% \paragraph{Marginalia Position Issue:} When doing mid document changes to |\textwidth|
% and |\marginparwidth| then |\marginpar{content}| renders the marginalia to the correct
% width but places it at the old position. A patch is provided here
@@ -312,6 +318,8 @@
\newlength{\flx at printarea}
\newlength{\flx at outerbleed}
\newlength{\flx at innerbleed}
+\newlength{\flx at extrafirstfoot}
+\setlength{\flx at extrafirstfoot} {0pt}
\setlength{\flx at binding} {9pt}
\setlength{\flx at inner} {36pt}
\setlength{\flx at outer} {36pt}
@@ -359,6 +367,7 @@
headsep .code:n = \setlength{\headsep}{#1},
headheight .code:n = \setlength{\headheight}{#1},
footskip .code:n = \setlength{\footskip}{#1},
+ extrafirstfoot .code:n = \setlength{\flx at extrafirstfoot}{#1},
fancyhdrOff .code:n = \Use at fancyhdrfalse,
a4paper .code:n = \flx at setpapersize[210][297]{mm},
a5paper .code:n = \flx at setpapersize[148][210]{mm},
@@ -423,7 +432,9 @@
\setlength{\flx at temp}{\paperheight - \flx at top %
- \headheight - \headsep -\footskip - \flx at bot - 2\flx at outerbleed}
- \setlength{\textheight}{\flx at temp}
+ \setlength{\flx at textheigt}{\flx at temp}
+ \setlength{\textheight}{\flx at textheigt-\flx at extrafirstfoot}
+%******************************************************************
}
% \end{macrocode}
% \end{macro}
@@ -430,7 +441,12 @@
%
% \begin{macrocode}
\flx at setpagevertical
-\setlength{\flx at textheigt}{\textheight}
+\AddToHook{shipout/firstpage}{%
+\global\textheight=\flx at textheigt
+}
+
+
+
\newlength{\flx at linewidth}
% \end{macrocode}
%
Modified: trunk/Master/texmf-dist/tex/latex/flexipage/flexipage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/flexipage/flexipage.sty 2022-10-01 19:50:02 UTC (rev 64571)
+++ trunk/Master/texmf-dist/tex/latex/flexipage/flexipage.sty 2022-10-01 19:50:16 UTC (rev 64572)
@@ -25,7 +25,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\ProvidesPackage{flexipage}
- [2022/07/09 1.00 Easy page geometry]
+ [2022/10/01 1.01 First Page different footer]
\RequirePackage{xparse} % new LaTeX3 syntax to define macros and environments
@@ -59,6 +59,8 @@
\newlength{\flx at printarea}
\newlength{\flx at outerbleed}
\newlength{\flx at innerbleed}
+\newlength{\flx at extrafirstfoot}
+\setlength{\flx at extrafirstfoot} {0pt}
\setlength{\flx at binding} {9pt}
\setlength{\flx at inner} {36pt}
\setlength{\flx at outer} {36pt}
@@ -100,6 +102,7 @@
headsep .code:n = \setlength{\headsep}{#1},
headheight .code:n = \setlength{\headheight}{#1},
footskip .code:n = \setlength{\footskip}{#1},
+ extrafirstfoot .code:n = \setlength{\flx at extrafirstfoot}{#1},
fancyhdrOff .code:n = \Use at fancyhdrfalse,
a4paper .code:n = \flx at setpapersize[210][297]{mm},
a5paper .code:n = \flx at setpapersize[148][210]{mm},
@@ -160,10 +163,14 @@
\setlength{\flx at temp}{\paperheight - \flx at top %
- \headheight - \headsep -\footskip - \flx at bot - 2\flx at outerbleed}
- \setlength{\textheight}{\flx at temp}
+ \setlength{\flx at textheigt}{\flx at temp}
+ \setlength{\textheight}{\flx at textheigt-\flx at extrafirstfoot}
}
\flx at setpagevertical
-\setlength{\flx at textheigt}{\textheight}
+\AddToHook{shipout/firstpage}{%
+\global\textheight=\flx at textheigt
+}
+
\newlength{\flx at linewidth}
\NewDocumentCommand \flx at setpage {} {
More information about the tex-live-commits
mailing list.