diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-01 19:50:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-01 19:50:16 +0000 |
commit | 0a46aa26bbb1da727bb1d9b0489d37b427d2a364 (patch) | |
tree | 17c6b63f45d0adadb0a14e332e90503c87869987 /Master/texmf-dist | |
parent | 0e652dfddfac8df3d4bfdcbf93fa0630ecab618b (diff) |
flexipage (1oct22)
git-svn-id: svn://tug.org/texlive/trunk@64572 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/flexipage/README.txt | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/flexipage/flexipage.pdf | bin | 267815 -> 269146 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/flexipage/flexipage.dtx | 24 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/flexipage/flexipage.sty | 13 |
4 files changed, 35 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/flexipage/README.txt b/Master/texmf-dist/doc/latex/flexipage/README.txt index 92a9499b932..64936e8a484 100644 --- a/Master/texmf-dist/doc/latex/flexipage/README.txt +++ b/Master/texmf-dist/doc/latex/flexipage/README.txt @@ -2,6 +2,7 @@ LaTeX package flexipage 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 @@ Abstract: 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 diff --git a/Master/texmf-dist/doc/latex/flexipage/flexipage.pdf b/Master/texmf-dist/doc/latex/flexipage/flexipage.pdf Binary files differindex 50018e6bfd2..290f8f7b161 100644 --- a/Master/texmf-dist/doc/latex/flexipage/flexipage.pdf +++ b/Master/texmf-dist/doc/latex/flexipage/flexipage.pdf diff --git a/Master/texmf-dist/source/latex/flexipage/flexipage.dtx b/Master/texmf-dist/source/latex/flexipage/flexipage.dtx index 2188b2790f9..0315c1c102d 100644 --- a/Master/texmf-dist/source/latex/flexipage/flexipage.dtx +++ b/Master/texmf-dist/source/latex/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} % diff --git a/Master/texmf-dist/tex/latex/flexipage/flexipage.sty b/Master/texmf-dist/tex/latex/flexipage/flexipage.sty index d6341cbc354..32354e947c0 100644 --- a/Master/texmf-dist/tex/latex/flexipage/flexipage.sty +++ b/Master/texmf-dist/tex/latex/flexipage/flexipage.sty @@ -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@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} @@ -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@extrafirstfoot}{#1}, fancyhdrOff .code:n = \Use@fancyhdrfalse, a4paper .code:n = \flx@setpapersize[210][297]{mm}, a5paper .code:n = \flx@setpapersize[148][210]{mm}, @@ -160,10 +163,14 @@ \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} } \flx@setpagevertical -\setlength{\flx@textheigt}{\textheight} +\AddToHook{shipout/firstpage}{% +\global\textheight=\flx@textheigt +} + \newlength{\flx@linewidth} \NewDocumentCommand \flx@setpage {} { |