diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/fgruler')
-rw-r--r-- | Master/texmf-dist/tex/latex/fgruler/fgruler.sty | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/fgruler/fgruler.sty b/Master/texmf-dist/tex/latex/fgruler/fgruler.sty index c76775e9dd5..0a397fd46a0 100644 --- a/Master/texmf-dist/tex/latex/fgruler/fgruler.sty +++ b/Master/texmf-dist/tex/latex/fgruler/fgruler.sty @@ -7,7 +7,7 @@ %% ./fgruler.dtx (with options: `package') %% This is a generated file. %% -%% Copyright 2017- by Tibor Tomacs +%% Copyright 2017-2020 by Tibor Tomacs %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -21,8 +21,8 @@ %% %% The Current Maintainer of this work is Tibor Tomacs. %% -\NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{fgruler}[2017/01/16 v1.0 Package for drawing rulers on the foreground or in the text] +\NeedsTeXFormat{LaTeX2e}[2020/10/01] +\ProvidesPackage{fgruler}[2020/10/22 v1.1 Package for drawing rulers on the foreground or in the text] %% \@ifpackageloaded{kvoptions}{}{\RequirePackage{kvoptions}} \@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} @@ -305,7 +305,7 @@ \else -\@ifpackageloaded{eso-pic}{}{\RequirePackage{eso-pic}} +\@ifpackageloaded{eso-pic}{}{\RequirePackage{eso-pic}[2020/10/14]} \def\fgruler@frame{% \begingroup @@ -337,30 +337,27 @@ \endgroup } -\let\fgruler@shipout\AtBeginShipoutUpperLeftForeground \def\fgruler@output@{} + \ESO@isMEMOIR{% -\def\AtBeginShipoutUpperLeftForeground#1{% - \fgruler@shipout{#1% - \put(\fgruler@lentounit{\@tempdima},\fgruler@lentounit{\@tempdimb}){% - \iffgruler@showframe\fgruler@frame\fi% - \fgruler@output% - \fgruler@output@% - \global\let\fgruler@output@\@empty% - }% - }% + \AddToHook{shipout/foreground}{% + \ESO@MEMOIR@corr + \put(\ESO@tempdima,\ESO@tempdimb){% + \iffgruler@showframe\fgruler@frame\fi% + \fgruler@output% + \fgruler@output@% + \global\let\fgruler@output@\@empty% }% + }% }{% -\def\AtBeginShipoutUpperLeftForeground#1{% - \fgruler@shipout{#1% - \put(0,\fgruler@lentounit{\ESO@yoffsetI}){% - \iffgruler@showframe\fgruler@frame\fi% - \fgruler@output% - \fgruler@output@% - \global\let\fgruler@output@\@empty% - }% - }% + \AddToHook{shipout/foreground}{% + \put(0,\ESO@yoffsetI){% + \iffgruler@showframe\fgruler@frame\fi% + \fgruler@output% + \fgruler@output@% + \global\let\fgruler@output@\@empty% }% + }% } \fgruler@activate@type |