texlive[63653] Master/texmf-dist: fgruler (19jun22)
commits+karl at tug.org
commits+karl at tug.org
Sun Jun 19 22:35:58 CEST 2022
Revision: 63653
http://tug.org/svn/texlive?view=revision&revision=63653
Author: karl
Date: 2022-06-19 22:35:58 +0200 (Sun, 19 Jun 2022)
Log Message:
-----------
fgruler (19jun22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/fgruler/README
trunk/Master/texmf-dist/doc/latex/fgruler/fgruler.pdf
trunk/Master/texmf-dist/source/latex/fgruler/fgruler.dtx
trunk/Master/texmf-dist/source/latex/fgruler/fgruler.ins
trunk/Master/texmf-dist/tex/latex/fgruler/fgruler.sty
Modified: trunk/Master/texmf-dist/doc/latex/fgruler/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fgruler/README 2022-06-19 13:31:24 UTC (rev 63652)
+++ trunk/Master/texmf-dist/doc/latex/fgruler/README 2022-06-19 20:35:58 UTC (rev 63653)
@@ -1,6 +1,6 @@
fgruler.sty package
-Copyright 2017-2020 by Tibor Tomacs
+Copyright 2017-2022 by Tibor Tomacs
Package for drawing rulers on the foreground or in the text
Modified: trunk/Master/texmf-dist/doc/latex/fgruler/fgruler.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/fgruler/fgruler.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fgruler/fgruler.dtx 2022-06-19 13:31:24 UTC (rev 63652)
+++ trunk/Master/texmf-dist/source/latex/fgruler/fgruler.dtx 2022-06-19 20:35:58 UTC (rev 63653)
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 2017-2020 by Tibor Tomacs
+% Copyright 2017-2022 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,7 +21,7 @@
\ProvidesFile{fgruler.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-%<package>\ProvidesPackage{fgruler}[2020/11/04 v1.3 Package for drawing rulers on the foreground or in the text]
+%<package>\ProvidesPackage{fgruler}[2022/06/19 v1.4 Package for drawing rulers on the foreground or in the text]
%
%<*driver>
\documentclass{ltxdoc}
@@ -66,7 +66,7 @@
%
% \GetFileInfo{fgruler.sty}
%
-% \title{The {\bfseries\sffamily fgruler} package\\{\large v1.3 (2020/11/04)}}
+% \title{The {\bfseries\sffamily fgruler} package\\{\large v1.4 (2022/06/19)}}
% \author{Tibor T\'{o}m\'{a}cs\\{\normalsize\url{tomacs.tibor at uni-eszterhazy.hu}}}
% \date{}
% \maketitle
@@ -79,7 +79,7 @@
%
% \section{Introduction}
% The \texttt{fgruler} is an abbreviation for the \emph{foreground ruler}.
-% This package draws a horizontal and a vertical ruler on the foreground of every (or a given) page at absolute position.
+% This package draws horizontal and vertical rulers on the foreground of every (or a given) page at absolute position.
% In this way, you can check the page layout dimensions.
%
% \medskip\noindent
@@ -113,36 +113,48 @@
% \item\commandinline|type=!<type name>!|\\
% Origin, directions and lengths of the ruler. The \commandinline|!<type name>!| legal values:
% \begin{description}
-% \item\commandinline|upperleft | Default value. Origin: upper left corner of the paper. Directions: down and right. Lengths: paper sizes.
-% \item\commandinline|upperright | Origin: upper right corner of the paper. Directions: down and left. Lengths: paper sizes.
-% \item\commandinline|lowerleft | Origin: lower left corner of the paper. Directions: up and right. Lengths: paper sizes.
-% \item\commandinline|lowerright | Origin: lower right corner of the paper. Directions: up and left. Lengths: paper sizes.
-% \item\commandinline|upperleftT | Origin: upper left corner of the text area. Directions: down and right. Lengths: text area sizes.
-% \item\commandinline|upperrightT| Origin: upper right corner of the text area. Directions: down and left. Lengths: text area sizes.
-% \item\commandinline|lowerleftT | Origin: lower left corner of the text area. Directions: up and right. Lengths: text area sizes.
-% \item\commandinline|lowerrightT| Origin: lower right corner of the text area. Directions: up and left. Lengths: text area sizes.
+% \item\commandinline|upperleft| Default value. Origin: upper left corner of the paper. Directions: down and right. Lengths: paper sizes. See \ref{example:upperleft} example.
+% \item\commandinline|upperright| Origin: upper right corner of the paper. Directions: down and left. Lengths: paper sizes. See \ref{example:upperright} example.
+% \item\commandinline|lowerleft| Origin: lower left corner of the paper. Directions: up and right. Lengths: paper sizes. See \ref{example:lowerleft} example.
+% \item\commandinline|lowerright| Origin: lower right corner of the paper. Directions: up and left. Lengths: paper sizes. See \ref{example:lowerright} example.
+% \item\commandinline|upperleftT| Origin: upper left corner of the text area. Directions: down and right. Lengths: text area sizes. See \ref{example:upperleftT} example.
+% \item\commandinline|upperrightT| Origin: upper right corner of the text area. Directions: down and left. Lengths: text area sizes. See \ref{example:upperrightT} example.
+% \item\commandinline|lowerleftT| Origin: lower left corner of the text area. Directions: up and right. Lengths: text area sizes. See \ref{example:lowerleftT} example.
+% \item\commandinline|lowerrightT| Origin: lower right corner of the text area. Directions: up and left. Lengths: text area sizes. See \ref{example:lowerrightT} example.
+% \item\commandinline|alledges| There are rulers on all edges of the paper.
+% Top ruler origin: upper left corner of the paper (direction: right).
+% Bottom ruler origin: lower left corner of the paper (direction: right).
+% Left ruler origin: upper left corner of the paper (direction: down).
+% Right ruler origin: upper right corner of the paper (direction: down). Lengths: paper sizes. See \ref{example:alledges} example.
+% \item\commandinline|alledges*| It is similar to \verb|alledges| option, but bottom ruler origin is lower right corner of the paper (direction: left),
+% and left ruler origin is lower left corner of the paper (direction: up).
+% See \ref{example:alledges*} example.
+% \item\commandinline|alledgesT| It is similar to \verb|alledges| option, but on the edges of the text area. See \ref{example:alledgesT} example.
+% \item\commandinline|alledgesT*| It is similar to \verb|alledges*| option, but on the edges of the text area. See \ref{example:alledgesT*} example.
% \item\commandinline|none| Not drawing ruler.
-% \item\commandinline|user| Each \commandinline|!<unit>!|--\commandinline|!<type name>!| pair activates an \commandinline|\fgruler@!<unit>!@!<type name>!@fg| command, which is equivalent to \commandinline|\fgrulertype{!<unit>!}{!<type name>!}|.\\
-% You can control the effect of this option by redefining the \commandinline|\fgruler@!<unit>!@user at fg| commands, which are empty in the default case.\\
-% \commandinline|\def\fgruler at cm@user at fg{!<code>!}| is equivalent to \commandinline|\fgrulerdefusercm{!<code>!}|.\\
-% Similarly, \commandinline|\def\fgruler at in@user at fg{!<code>!}| is equivalent to \commandinline|\fgrulerdefuserin{!<code>!}|.\\
+% \item\commandinline|user| Each \commandinline|!<unit>!|--\commandinline|!<type name>!| pair activates an \commandinline|\fgrulertype{!<unit>!}{!<type name>!}| command.
+% After \commandinline|\fgrulerdefuser!<unit>!{!<code>!}| the expansion of \commandinline|\fgrulertype{!<unit>!}{user}| is \commandinline|!<code>!|,
+% which determines the effect of this option.
% See \ref{example:user-first}--\ref{example:user-last} examples.
% \end{description}
%
% \item\commandinline|hshift=!<length>!|\\
-% Horizontal shift of the ruler, if the \commandinline|!<type name>!| is \verb|upperleft|, \verb|lowerleft|, \verb|upperright| or \verb|lowerright|.
+% Horizontal shift of the ruler, if the \commandinline|!<type name>!| is \verb|upperleft|, \verb|lowerleft|, \verb|upperright|, or \verb|lowerright|.
% The shift direction is right, if the \commandinline|!<type name>!| is \verb|upperleft| or \verb|lowerleft|.
% The shift direction is left, if the \commandinline|!<type name>!| is \verb|upperright| or \verb|lowerright|.
% Default: \verb|hshift=0cm|.
+% See \ref{example:shift-first}--\ref{example:shift-last} examples.
%
% \item\commandinline|vshift=!<length>!|\\
-% Vertical shift of the ruler, if the \commandinline|!<type name>!| is \verb|upperleft|, \verb|lowerleft|, \verb|upperright| or \verb|lowerright|.
+% Vertical shift of the ruler, if the \commandinline|!<type name>!| is \verb|upperleft|, \verb|lowerleft|, \verb|upperright|, or \verb|lowerright|.
% The shift direction is down, if the \commandinline|!<type name>!| is \verb|upperleft| or \verb|upperright|.
% The shift direction is up, if the \commandinline|!<type name>!| is \verb|lowerleft| or \verb|lowerright|.
% Default: \verb|vshift=0cm|.
+% See \ref{example:shift-first}--\ref{example:shift-last} examples.
%
% \item\commandinline|color=!<color name>!|\\
-% Ruler color (see \texttt{xcolor} package). Default: \verb|color=black|.
+% Ruler color (see \texttt{xcolor} package). Default: \verb|color=black|.
+% See \ref{example:showframe-color} example.
%
% \item\commandinline|numsep=!<length>!|\\
% Separation between number and ruler. Default: \verb|numsep=3pt|.
@@ -161,6 +173,7 @@
% \item\commandinline|showframe| or \commandinline|showframe=true|\\
% It draws visible frames for the text and margin area, and lines for the head and foot.
% Their color and thickness are determined by the \texttt{color} and the \texttt{markthick} options.
+% See \ref{example:showframe-color} example.
%
% \item\commandinline|showframe=false|\\
% It deactivates the \texttt{showframe} option.
@@ -528,7 +541,7 @@
%
% \newpage\fgrulerreset
% \section{Examples}
-% \subsection{Deafult case}
+% \subsection{Deafult case}\label{example:upperleft}
% The output of the following example is the ruler in this page. It is the default case.
% \begin{examplelst}
% \documentclass{article}
@@ -539,7 +552,7 @@
% \end{examplelst}
%
% \newpage\fgrulerreset
-% \subsection{The \texttt{showframe} and \texttt{color} options}
+% \subsection{The \texttt{showframe} and \texttt{color} options}\label{example:showframe-color}
% \setfgruler{color=red,showframe}
% \begin{examplelst}
% \documentclass{article}
@@ -550,7 +563,40 @@
% \end{examplelst}
%
% \newpage\fgrulerreset
-% \subsection{Shift in default case}
+% \subsection{The \texttt{type=upperright} option}\label{example:upperright}
+% \setfgruler{type=upperright}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=upperright]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=lowerleft} option}\label{example:lowerleft}
+% \setfgruler{type=lowerleft}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=lowerleft]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=lowerright} option}\label{example:lowerright}
+% \setfgruler{type=lowerright}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=lowerright]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{Shift in default case}\label{example:shift-first}
% \setfgruler{hshift=1cm,vshift=2cm}
% \begin{examplelst}
% \documentclass{article}
@@ -583,7 +629,7 @@
% \end{examplelst}
%
% \newpage\fgrulerreset
-% \subsection{Shift in case \texttt{type=lowerright} option}
+% \subsection{Shift in case \texttt{type=lowerright} option}\label{example:shift-last}
% \setfgruler{type=lowerright,hshift=1cm,vshift=2cm}
% \begin{examplelst}
% \documentclass{article}
@@ -594,7 +640,29 @@
% \end{examplelst}
%
% \newpage\fgrulerreset
-% \subsection{The \texttt{type=upperleftT} option}
+% \subsection{The \texttt{type=alledges} option}\label{example:alledges}
+% \setfgruler{type=alledges}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=alledges]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=alledges*} option}\label{example:alledges*}
+% \setfgruler{type=alledges*}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=alledges*]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=upperleftT} option}\label{example:upperleftT}
% \setfgruler{type=upperleftT}
% \begin{examplelst}
% \documentclass{article}
@@ -605,6 +673,61 @@
% \end{examplelst}
%
% \newpage\fgrulerreset
+% \subsection{The \texttt{type=upperrightT} option}\label{example:upperrightT}
+% \setfgruler{type=upperrightT}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=upperrightT]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=lowerleftT} option}\label{example:lowerleftT}
+% \setfgruler{type=lowerleftT}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=lowerleftT]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=lowerrightT} option}\label{example:lowerrightT}
+% \setfgruler{type=lowerrightT}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=lowerrightT]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=alledgesT} option}\label{example:alledgesT}
+% \setfgruler{type=alledgesT}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=alledgesT]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
+% \subsection{The \texttt{type=alledgesT*} option}\label{example:alledgesT*}
+% \setfgruler{type=alledgesT*}
+% \begin{examplelst}
+% \documentclass{article}
+% \usepackage[type=alledgesT*]{fgruler}
+% \begin{document}
+% ...
+% \end{document}
+% \end{examplelst}
+%
+% \newpage\fgrulerreset
% \subsection{Setting the \texttt{type=user} option}\label{example:user-first}
% In the next example the \texttt{type=user} option activates \texttt{type=upperright} or \texttt{type=upperleft}, depending on the page number is odd or even.
% \setfgruler{type=none}
@@ -639,14 +762,14 @@
%
% \newpage\fgrulerreset
% \subsection{Setting the \texttt{type=user} option}
-% In this example the \texttt{type=user} option combines the effect of \texttt{type=upperleftT} and \texttt{type=lowerrightT}.
+% In this example the \texttt{type=user} option combines the effect of \texttt{type=alledges} and \texttt{type=alledgesT}.
% \setfgruler{type=user}
-% \fgrulerdefusercm{\fgrulertype{cm}{upperleftT}\fgrulertype{cm}{lowerrightT}}
+% \fgrulerdefusercm{\fgrulertype{cm}{alledges}\fgrulertype{cm}{alledgesT}}
% \begin{examplelst}
% \documentclass{article}
% \usepackage[type=user]{fgruler}
-% \fgrulerdefusercm{\fgrulertype{cm}{upperleftT}\fgrulertype{cm}{lowerrightT}}
-% \fgrulerdefuserin{\fgrulertype{in}{upperleftT}\fgrulertype{in}{lowerrightT}}
+% \fgrulerdefusercm{\fgrulertype{cm}{alledges}\fgrulertype{cm}{alledgesT}}
+% \fgrulerdefuserin{\fgrulertype{in}{alledges}\fgrulertype{in}{alledgesT}}
% \begin{document}
% ...
% \end{document}
@@ -998,6 +1121,10 @@
\def\fgruler at check{upperrightT}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{lowerleftT}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{lowerrightT}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledges}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledges*}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledgesT}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledgesT*}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{none}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{user}\ifx\fgruler at type\fgruler at check\else%
\PackageError{fgruler}{\fgruler at type\space is invalid type}%
@@ -1004,8 +1131,8 @@
{Valid types:\MessageBreak
upperleft, upperright, lowerleft, lowerright,\MessageBreak
upperleftT, upperrightT, lowerleftT, lowerrightT,\MessageBreak
-user, none}%
-\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
+alledges, alledges*, alledgesT, alledgesT*, user, none}%
+\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
\def\fgruler at output{\csname fgruler@\fgruler at unit @\fgruler at type @fg\endcsname}}
\def\fgrulerratiocm#1#2{%
@@ -2082,6 +2209,136 @@
\put(\fgruler at sep,0){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
\end{picture}}}
+%% ALLEDGES CM
+\def\fgruler at cm@alledges at fg{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at cm@rightdown{\paperwidth}%
+\fgruler at cm@downright{\paperheight}%
+\put(0,-\paperheight){\fgruler at cm@rightup{\paperwidth}}
+\put(\paperwidth,0){\fgruler at cm@downleft{\paperheight}}
+\put(5,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@cm}}
+\end{picture}}}
+
+%% ALLEDGES IN
+\def\fgruler at in@alledges at fg{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at in@rightdown{\paperwidth}%
+\fgruler at in@downright{\paperheight}%
+\put(0,-\paperheight){\fgruler at in@rightup{\paperwidth}}
+\put(\paperwidth,0){\fgruler at in@downleft{\paperheight}}
+\put(8,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@in}}
+\end{picture}}}
+
+%% ALLEDGES* CM
+\@namedef{fgruler at cm@alledges*@fg}{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at cm@rightdown{\paperwidth}%
+\fgruler at cm@downright{\paperheight}%
+\put(\paperwidth,-\paperheight){%
+\fgruler at cm@leftup{\paperwidth}%
+\fgruler at cm@upleft{\paperheight}}
+\put(5,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@cm}}
+\end{picture}}}
+
+%% ALLEDGES* IN
+\@namedef{fgruler at in@alledges*@fg}{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at in@rightdown{\paperwidth}%
+\fgruler at in@downright{\paperheight}%
+\put(\paperwidth,-\paperheight){%
+\fgruler at in@leftup{\paperwidth}%
+\fgruler at in@upleft{\paperheight}}
+\put(8,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@in}}
+\end{picture}}}
+
+%% ALLEDGEST CM
+\def\fgruler at cm@alledgesT at fg{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at cm@rightup{\textwidth}%
+\fgruler at cm@downleft{\textheight}%
+\put(0,-\textheight){\fgruler at cm@rightdown{\textwidth}}
+\put(\textwidth,0){\fgruler at cm@downright{\textheight}}
+\put(5,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@cm}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(0,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,0){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
+%% ALLEDGEST IN
+\def\fgruler at in@alledgesT at fg{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at in@rightup{\textwidth}%
+\fgruler at in@downleft{\textheight}%
+\put(0,-\textheight){\fgruler at in@rightdown{\textwidth}}
+\put(\textwidth,0){\fgruler at in@downright{\textheight}}
+\put(5,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@in}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(0,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,0){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
+%% ALLEDGEST* CM
+\@namedef{fgruler at cm@alledgesT*@fg}{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at cm@rightup{\textwidth}%
+\fgruler at cm@downleft{\textheight}%
+\put(\textwidth,-\textheight){\fgruler at cm@leftdown{\textwidth}}
+\put(\textwidth,-\textheight){\fgruler at cm@upright{\textheight}}
+\put(5,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@cm}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,-\textheight){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
+%% ALLEDGEST* IN
+\@namedef{fgruler at in@alledgesT*@fg}{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at in@rightup{\textwidth}%
+\fgruler at in@downleft{\textheight}%
+\put(\textwidth,-\textheight){\fgruler at in@leftdown{\textwidth}}
+\put(\textwidth,-\textheight){\fgruler at in@upright{\textheight}}
+\put(8,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@in}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,-\textheight){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
%% USER
\def\fgruler at cm@user at fg{}
\def\fgruler at in@user at fg{}
Modified: trunk/Master/texmf-dist/source/latex/fgruler/fgruler.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/fgruler/fgruler.ins 2022-06-19 13:31:24 UTC (rev 63652)
+++ trunk/Master/texmf-dist/source/latex/fgruler/fgruler.ins 2022-06-19 20:35:58 UTC (rev 63653)
@@ -1,5 +1,5 @@
-% Copyright 2017-2020 by Tibor Tomacs
+% Copyright 2017-2022 by Tibor Tomacs
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -19,7 +19,7 @@
\preamble
This is a generated file.
-Copyright 2017-2020 by Tibor Tomacs
+Copyright 2017-2022 by Tibor Tomacs
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
Modified: trunk/Master/texmf-dist/tex/latex/fgruler/fgruler.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fgruler/fgruler.sty 2022-06-19 13:31:24 UTC (rev 63652)
+++ trunk/Master/texmf-dist/tex/latex/fgruler/fgruler.sty 2022-06-19 20:35:58 UTC (rev 63653)
@@ -7,7 +7,7 @@
%% ./fgruler.dtx (with options: `package')
%% This is a generated file.
%%
-%% Copyright 2017-2020 by Tibor Tomacs
+%% Copyright 2017-2022 by Tibor Tomacs
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -22,7 +22,7 @@
%% The Current Maintainer of this work is Tibor Tomacs.
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesPackage{fgruler}[2020/11/04 v1.3 Package for drawing rulers on the foreground or in the text]
+\ProvidesPackage{fgruler}[2022/06/19 v1.4 Package for drawing rulers on the foreground or in the text]
%%
\@ifpackageloaded{kvoptions}{}{\RequirePackage{kvoptions}}
\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}}
@@ -91,6 +91,10 @@
\def\fgruler at check{upperrightT}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{lowerleftT}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{lowerrightT}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledges}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledges*}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledgesT}\ifx\fgruler at type\fgruler at check\else%
+\def\fgruler at check{alledgesT*}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{none}\ifx\fgruler at type\fgruler at check\else%
\def\fgruler at check{user}\ifx\fgruler at type\fgruler at check\else%
\PackageError{fgruler}{\fgruler at type\space is invalid type}%
@@ -97,8 +101,8 @@
{Valid types:\MessageBreak
upperleft, upperright, lowerleft, lowerright,\MessageBreak
upperleftT, upperrightT, lowerleftT, lowerrightT,\MessageBreak
-user, none}%
-\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
+alledges, alledges*, alledgesT, alledgesT*, user, none}%
+\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
\def\fgruler at output{\csname fgruler@\fgruler at unit @\fgruler at type @fg\endcsname}}
\def\fgrulerratiocm#1#2{%
@@ -1175,6 +1179,136 @@
\put(\fgruler at sep,0){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
\end{picture}}}
+%% ALLEDGES CM
+\def\fgruler at cm@alledges at fg{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at cm@rightdown{\paperwidth}%
+\fgruler at cm@downright{\paperheight}%
+\put(0,-\paperheight){\fgruler at cm@rightup{\paperwidth}}
+\put(\paperwidth,0){\fgruler at cm@downleft{\paperheight}}
+\put(5,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@cm}}
+\end{picture}}}
+
+%% ALLEDGES IN
+\def\fgruler at in@alledges at fg{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at in@rightdown{\paperwidth}%
+\fgruler at in@downright{\paperheight}%
+\put(0,-\paperheight){\fgruler at in@rightup{\paperwidth}}
+\put(\paperwidth,0){\fgruler at in@downleft{\paperheight}}
+\put(8,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@in}}
+\end{picture}}}
+
+%% ALLEDGES* CM
+\@namedef{fgruler at cm@alledges*@fg}{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at cm@rightdown{\paperwidth}%
+\fgruler at cm@downright{\paperheight}%
+\put(\paperwidth,-\paperheight){%
+\fgruler at cm@leftup{\paperwidth}%
+\fgruler at cm@upleft{\paperheight}}
+\put(5,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@cm}}
+\end{picture}}}
+
+%% ALLEDGES* IN
+\@namedef{fgruler at in@alledges*@fg}{%
+\AtPageLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)%
+\fgruler at in@rightdown{\paperwidth}%
+\fgruler at in@downright{\paperheight}%
+\put(\paperwidth,-\paperheight){%
+\fgruler at in@leftup{\paperwidth}%
+\fgruler at in@upleft{\paperheight}}
+\put(8,-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\fgruler at caption@in}}
+\end{picture}}}
+
+%% ALLEDGEST CM
+\def\fgruler at cm@alledgesT at fg{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at cm@rightup{\textwidth}%
+\fgruler at cm@downleft{\textheight}%
+\put(0,-\textheight){\fgruler at cm@rightdown{\textwidth}}
+\put(\textwidth,0){\fgruler at cm@downright{\textheight}}
+\put(5,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@cm}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(0,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,0){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
+%% ALLEDGEST IN
+\def\fgruler at in@alledgesT at fg{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at in@rightup{\textwidth}%
+\fgruler at in@downleft{\textheight}%
+\put(0,-\textheight){\fgruler at in@rightdown{\textwidth}}
+\put(\textwidth,0){\fgruler at in@downright{\textheight}}
+\put(5,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@in}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(0,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,0){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
+%% ALLEDGEST* CM
+\@namedef{fgruler at cm@alledgesT*@fg}{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{1mm}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at cm@rightup{\textwidth}%
+\fgruler at cm@downleft{\textheight}%
+\put(\textwidth,-\textheight){\fgruler at cm@leftdown{\textwidth}}
+\put(\textwidth,-\textheight){\fgruler at cm@upright{\textheight}}
+\put(5,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@cm}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,-\textheight){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
+%% ALLEDGEST* IN
+\@namedef{fgruler at in@alledgesT*@fg}{%
+\AtTextLowerLeft{%
+\setlength{\unitlength}{.0625in}%
+\fgruler at fgsetting%
+\begin{picture}(\textwidth,\textheight)(0,-\textheight)%
+\fgruler at in@rightup{\textwidth}%
+\fgruler at in@downleft{\textheight}%
+\put(\textwidth,-\textheight){\fgruler at in@leftdown{\textwidth}}
+\put(\textwidth,-\textheight){\fgruler at in@upright{\textheight}}
+\put(8,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\fgruler at caption@in}}%
+\setcounter{fgrulernum}{\fgruler at startnumh}%
+\put(0,\fgruler at sep){\makebox(0,0)[b]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth,-\textheight-\fgruler at sep){\makebox(0,0)[t]{\fgruler at font@\thefgrulernum}}%
+\setcounter{fgrulernum}{\fgruler at startnumv}%
+\put(-\fgruler at sep,0){\makebox(0,0)[r]{\fgruler at font@\thefgrulernum}}%
+\put(\textwidth+\fgruler at sep,-\textheight){\makebox(0,0)[l]{\fgruler at font@\thefgrulernum}}%
+\end{picture}}}
+
%% USER
\def\fgruler at cm@user at fg{}
\def\fgruler at in@user at fg{}
More information about the tex-live-commits
mailing list.