summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/flexipage/flexipage.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/flexipage/flexipage.dtx')
-rw-r--r--macros/latex/contrib/flexipage/flexipage.dtx24
1 files changed, 20 insertions, 4 deletions
diff --git a/macros/latex/contrib/flexipage/flexipage.dtx b/macros/latex/contrib/flexipage/flexipage.dtx
index 2188b2790f..0315c1c102 100644
--- a/macros/latex/contrib/flexipage/flexipage.dtx
+++ b/macros/latex/contrib/flexipage/flexipage.dtx
@@ -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,7 +203,11 @@
% \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
@@ -312,6 +318,8 @@
\newlength{\flx@printarea}
\newlength{\flx@outerbleed}
\newlength{\flx@innerbleed}
+\newlength{\flx@extrafirstfoot}
+\setlength{\flx@extrafirstfoot} {0pt}
\setlength{\flx@binding} {9pt}
\setlength{\flx@inner} {36pt}
\setlength{\flx@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@extrafirstfoot}{#1},
fancyhdrOff .code:n = \Use@fancyhdrfalse,
a4paper .code:n = \flx@setpapersize[210][297]{mm},
a5paper .code:n = \flx@setpapersize[148][210]{mm},
@@ -423,14 +432,21 @@
\setlength{\flx@temp}{\paperheight - \flx@top %
- \headheight - \headsep -\footskip - \flx@bot - 2\flx@outerbleed}
- \setlength{\textheight}{\flx@temp}
+ \setlength{\flx@textheigt}{\flx@temp}
+ \setlength{\textheight}{\flx@textheigt-\flx@extrafirstfoot}
+%******************************************************************
}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\flx@setpagevertical
-\setlength{\flx@textheigt}{\textheight}
+\AddToHook{shipout/firstpage}{%
+\global\textheight=\flx@textheigt
+}
+
+
+
\newlength{\flx@linewidth}
% \end{macrocode}
%