diff options
Diffstat (limited to 'macros/latex/contrib/fgruler/fgruler.dtx')
-rw-r--r-- | macros/latex/contrib/fgruler/fgruler.dtx | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/macros/latex/contrib/fgruler/fgruler.dtx b/macros/latex/contrib/fgruler/fgruler.dtx index 18d16a6260..dd7ec0ba06 100644 --- a/macros/latex/contrib/fgruler/fgruler.dtx +++ b/macros/latex/contrib/fgruler/fgruler.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% 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 @@ -20,8 +20,8 @@ %<*driver> \ProvidesFile{fgruler.dtx} %</driver> -%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] -%<package>\ProvidesPackage{fgruler}[2017/01/16 v1.0 Package for drawing rulers on the foreground or in the text] +%<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01] +%<package>\ProvidesPackage{fgruler}[2020/10/22 v1.1 Package for drawing rulers on the foreground or in the text] % %<*driver> \documentclass{ltxdoc} @@ -60,7 +60,7 @@ keepspaces]} % % \GetFileInfo{fgruler.sty} % -% \title{The {\bfseries\sffamily fgruler} package\\{\large v1.0 (2017/01/16)}} +% \title{The {\bfseries\sffamily fgruler} package\\{\large v1.1 (2020/10/22)}} % \author{Tibor T\'{o}m\'{a}cs\\{\normalsize\url{tomacs.tibor@uni-eszterhazy.hu}}} % \date{} % \maketitle @@ -1053,7 +1053,7 @@ keepspaces]} \else -\@ifpackageloaded{eso-pic}{}{\RequirePackage{eso-pic}} +\@ifpackageloaded{eso-pic}{}{\RequirePackage{eso-pic}[2020/10/14]} \def\fgruler@frame{% \begingroup @@ -1085,30 +1085,27 @@ keepspaces]} \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 |