| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright 2017-2026 by Tibor Tómács |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 7 |
% of this license or (at your option) any later version. |
| 8 |
% The latest version of this license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 11 |
% version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status `maintained'. |
| 14 |
% |
| 15 |
% The Current Maintainer of this work is Tibor Tómács. |
| 16 |
% |
| 17 |
% \fi |
| 18 |
% |
| 19 |
% \iffalse |
| 20 |
%<*driver> |
| 21 |
\ProvidesFile{fgruler.dtx} |
| 22 |
%</driver> |
| 23 |
%<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01] |
| 24 |
%<package>\ProvidesPackage{fgruler}[2026/01/11 v1.7 Package for drawing rulers on the foreground or in the text] |
| 25 |
% |
| 26 |
%<*driver> |
| 27 |
\documentclass{ltxdoc} |
| 28 |
\OnlyDescription |
| 29 |
\AddToHook{begindocument/before}[doc/hyperref]{\hypersetup{pdfstartview=FitH,allcolors=black}}% see in doc.sty and hypdoc.sty |
| 30 |
\usepackage[a4paper,margin=25mm,marginparwidth=15mm,marginparsep=5mm,headsep=5mm,headheight=4mm,footskip=10mm]{geometry} |
| 31 |
\usepackage[T1]{fontenc} |
| 32 |
\usepackage{lmodern} |
| 33 |
\usepackage[english]{babel} |
| 34 |
\usepackage{listings,fontawesome,stackengine} |
| 35 |
\usepackage[type=none]{fgruler} |
| 36 |
|
| 37 |
\setlength{\labelsep}{0pt} |
| 38 |
|
| 39 |
\lstnewenvironment{examplelst}{\lstset{ |
| 40 |
gobble=2, |
| 41 |
belowskip=\bigskipamount, |
| 42 |
basicstyle=\ttfamily, |
| 43 |
backgroundcolor=\color{blue!10}, |
| 44 |
framerule=0pt, |
| 45 |
frame=trbl, |
| 46 |
framesep=5pt, |
| 47 |
columns=fullflexible, |
| 48 |
xleftmargin=5pt, |
| 49 |
xrightmargin=5pt, |
| 50 |
keepspaces}}{} |
| 51 |
|
| 52 |
\newcommand{\commandinline}{\lstinline[ |
| 53 |
literate={<}{{$\langle$}}1{>}{{$\rangle$}}1, |
| 54 |
delim={[is][\color{green!50!black}\normalfont\itshape]{!}{!}}, |
| 55 |
basicstyle=\color{blue!80!black}\ttfamily, |
| 56 |
columns=fullflexible, |
| 57 |
keepspaces]} |
| 58 |
|
| 59 |
\begin{document} |
| 60 |
\DocInput{./fgruler.dtx} |
| 61 |
\end{document} |
| 62 |
%</driver> |
| 63 |
% \fi |
| 64 |
% |
| 65 |
% \GetFileInfo{fgruler.sty} |
| 66 |
% |
| 67 |
% \title{The \texorpdfstring{{\bfseries\sffamily fgruler} package\\{\large v1.7 (2026/01/11)}}{fgruler package}} |
| 68 |
% \author{Tibor Tómács\\{\normalsize\href{mailto:[email protected]}{\texttt{[email protected]}}}} |
| 69 |
% \date{} |
| 70 |
% \maketitle |
| 71 |
% |
| 72 |
% \fgruler*[color=red!80!black]{upperleft} |
| 73 |
% \noindent{\rulerparams{}{\scriptsize\sffamily\color{teal}}{blue}{}{}\ruler{taperight}{\textwidth}} |
| 74 |
% |
| 75 |
% \section{Introduction} |
| 76 |
% The |fgruler| package draws horizontal and vertical rulers on the foreground of every (or the current) page at absolute position. |
| 77 |
% In this way, you can check the page layout dimensions. |
| 78 |
% You can also draw various rulers in the text. |
| 79 |
% |
| 80 |
% \medskip\noindent |
| 81 |
% The |fgruler| package requires the services of the following packages: |kvoptions|, |etoolbox|, |xcolor|, |graphicx|, |eso-pic|. |
| 82 |
% |
| 83 |
% \section{Loading package} |
| 84 |
% Load the package with |
| 85 |
% \begin{flushleft} |
| 86 |
% \commandinline|\usepackage[!<package options>!]{fgruler}| |
| 87 |
% \end{flushleft} |
| 88 |
% or |
| 89 |
% \begin{flushleft} |
| 90 |
% \commandinline|\usepackage{fgruler}|\\ |
| 91 |
% \commandinline|\setfgruler{!<package options>!}| |
| 92 |
% \end{flushleft} |
| 93 |
% The |\setfgruler| command is usable in the document body, too. |
| 94 |
% |
| 95 |
% \section{Package options}\label{sec:options} |
| 96 |
% By default, the |fgruler| package draws a square ruler on the foreground of every page. |
| 97 |
% The following package options set the parameters of these rulers. |
| 98 |
% \begin{description} |
| 99 |
% \item\commandinline|unit=!<unit>!|\\ |
| 100 |
% Ruler unit. Possible \commandinline|!<unit>!| values: |
| 101 |
% \begin{description} |
| 102 |
% \item\commandinline|cm| Metric ruler (centimeter). Default value. |
| 103 |
% \item\commandinline|in| English ruler (inch). |
| 104 |
% \end{description} |
| 105 |
% |
| 106 |
% \item\commandinline|type=!<type name>!|\\ |
| 107 |
% It determines the origin, directions, and lengths of the ruler. Possible \commandinline|!<type name>!| values: |
| 108 |
% \begin{description} |
| 109 |
% \item\commandinline|upperleft| Default value. Square ruler (origin: upper left corner of the paper; directions: down and right; lengths: paper sizes). See Example \ref{example:upperleft}. |
| 110 |
% \item\commandinline|upperright| Square ruler (origin: upper right corner of the paper; directions: down and left; lengths: paper sizes). See Example \ref{example:upperright}. |
| 111 |
% \item\commandinline|lowerleft| Square ruler (origin: lower left corner of the paper; directions: up and right; lengths: paper sizes). See Example \ref{example:lowerleft}. |
| 112 |
% \item\commandinline|lowerright| Square ruler (origin: lower right corner of the paper; directions: up and left; lengths: paper sizes). See Example \ref{example:lowerright}. |
| 113 |
% \item\commandinline|upperleftT| Square ruler (origin: upper left corner of the text area; directions: down and right; lengths: text area sizes). See Example \ref{example:upperleftT}. |
| 114 |
% \item\commandinline|upperrightT| Square ruler (origin: upper right corner of the text area; directions: down and left; lengths: text area sizes). See Example \ref{example:upperrightT}. |
| 115 |
% \item\commandinline|lowerleftT| Square ruler (origin: lower left corner of the text area; directions: up and right; lengths: text area sizes). See Example \ref{example:lowerleftT}. |
| 116 |
% \item\commandinline|lowerrightT| Square ruler (origin: lower right corner of the text area; directions: up and left; lengths: text area sizes). See Example \ref{example:lowerrightT}. |
| 117 |
% \item\commandinline|alledges| There are rulers on all edges of the paper. |
| 118 |
% Top ruler origin: upper left corner of the paper (direction: right). |
| 119 |
% Bottom ruler origin: lower left corner of the paper (direction: right). |
| 120 |
% Left ruler origin: upper left corner of the paper (direction: down). |
| 121 |
% Right ruler origin: upper right corner of the paper (direction: down). Lengths: paper sizes. See Example \ref{example:alledges}. |
| 122 |
% \item\commandinline|alledges*| It is similar to |alledges| option, but bottom ruler origin is lower right corner of the paper (direction: left), |
| 123 |
% and left ruler origin is lower left corner of the paper (direction: up). |
| 124 |
% See Example \ref{example:alledges*}. |
| 125 |
% \item\commandinline|alledgesT| It is similar to |alledges| option, but on the edges of the text area. See Example \ref{example:alledgesT}. |
| 126 |
% \item\commandinline|alledgesT*| It is similar to |alledges*| option, but on the edges of the text area. See Example \ref{example:alledgesT*}. |
| 127 |
% \item\commandinline|user| Each \commandinline|!<unit>!|--\commandinline|!<type name>!| pair activates an \commandinline|\fgrulertype{!<unit>!}{!<type name>!}| command. |
| 128 |
% So the expansion of \commandinline|\fgrulertype{!<unit>!}{user}| determines the effect of this option. |
| 129 |
% It will be \commandinline|!<code>!| after using the \commandinline|\fgrulerdefuser{!<code>!}| command, |
| 130 |
% where in the \commandinline|!<code>!| you have to referrence the unit as \commandinline|\fgrulerunit|. |
| 131 |
% For example, after\\ |\fgrulerdefuser{\fgrulertype{\fgrulerunit}{alledges}}|\\ the |type=user| option will be equivalent to the |type=alledges|. |
| 132 |
% See also Examples \ref{example:user-first}--\ref{example:user-last}. |
| 133 |
% \item\commandinline|none| No ruler drawn. |
| 134 |
% \end{description} |
| 135 |
% |
| 136 |
% \item\commandinline|type={!<type name list>!}|\\ |
| 137 |
% The \commandinline|!<type name list>!| is a list of valid type names separated by commas. |
| 138 |
% These types will be combined. |
| 139 |
% For example |type={alledges,alledgesT}|. |
| 140 |
% See the result in Example \ref{example:combining}. |
| 141 |
% |
| 142 |
% \item\commandinline|hshift=!<length>!|\\ |
| 143 |
% Horizontal shift of the ruler, if the \commandinline|!<type name>!| is |upperleft|, |lowerleft|, |upperright|, or |lowerright|. |
| 144 |
% The shift direction is right, if the \commandinline|!<type name>!| is |upperleft| or |lowerleft|. |
| 145 |
% The shift direction is left, if the \commandinline|!<type name>!| is |upperright| or |lowerright|. |
| 146 |
% Default: |hshift=0cm|. |
| 147 |
% See Examples \ref{example:shift-first}--\ref{example:shift-last}. |
| 148 |
% |
| 149 |
% \item\commandinline|vshift=!<length>!|\\ |
| 150 |
% Vertical shift of the ruler, if the \commandinline|!<type name>!| is |upperleft|, |lowerleft|, |upperright|, or |lowerright|. |
| 151 |
% The shift direction is down, if the \commandinline|!<type name>!| is |upperleft| or |upperright|. |
| 152 |
% The shift direction is up, if the \commandinline|!<type name>!| is |lowerleft| or |lowerright|. |
| 153 |
% Default: |vshift=0cm|. |
| 154 |
% See Examples \ref{example:shift-first}--\ref{example:shift-last}. |
| 155 |
% |
| 156 |
% \item\commandinline|color=!<color name>!|\\ |
| 157 |
% Ruler color (see |xcolor| package). Default: |color=black|. |
| 158 |
% See Example \ref{example:showframe-color}. |
| 159 |
% |
| 160 |
% \item\commandinline|numsep=!<length>!|\\ |
| 161 |
% Separation between number and ruler. Default: |numsep=3pt|. |
| 162 |
% |
| 163 |
% \item\commandinline|markthick=!<length>!|\\ |
| 164 |
% Mark thickness. Default: |markthick=0.4pt|. |
| 165 |
% |
| 166 |
% \item\commandinline|marklength=!<length>!|\\ |
| 167 |
% Mark length at integer units (see the red marks): |
| 168 |
% {\fgrulernoborderline\fgrulercaptioncm{}\fgrulerthickcm{}{}{1pt}\fgrulercolorcm{}{}{red}\ruler{rightup}{3cm}} |
| 169 |
% Default: |marklength=2mm|. See the length of the other marks in Section \ref{sec:additional}. |
| 170 |
% |
| 171 |
% \item\commandinline|numfont=!<font type>!|\\ |
| 172 |
% Number font type. Default: |numfont=\scriptsize\sffamily|. You can use this option only in |\setfgruler| and |\fgruler*| (see Section \ref{sec:currentpage}) commands. |
| 173 |
% |
| 174 |
% \item\commandinline|showframe| or \commandinline|showframe=true|\\ |
| 175 |
% It draws visible frames for the text and margin area, and lines for the head and foot. |
| 176 |
% Their color and thickness are determined by the |color| and the |markthick| options. |
| 177 |
% See Example \ref{example:showframe-color}. |
| 178 |
% |
| 179 |
% \item\commandinline|showframe=false|\\ |
| 180 |
% It deactivates the |showframe| option. |
| 181 |
% |
| 182 |
% \item\commandinline|nonefgrulers|\\ |
| 183 |
% It kills all of the rulers on the foreground, including also those, which are generated by |\fgruler| or |\fgruler*| (see Section \ref{sec:currentpage}). |
| 184 |
% But the rulers, which were drawn by |\ruler| and |\squareruler| (see Section \ref{sec:intext}), do not disappear. |
| 185 |
% Furthermore it deactivates the |showframe| option, too. |
| 186 |
% In this case the |fgruler| package does not load the |eso-pic| package. |
| 187 |
% This option works only in preamble. |
| 188 |
% |
| 189 |
% It is recommended to use in two cases: |
| 190 |
% \begin{itemize} |
| 191 |
% \item To draw rulers only in text, there is no need for the checking function. |
| 192 |
% \item To halt the checking function temporarily. |
| 193 |
% \end{itemize} |
| 194 |
% |
| 195 |
% The |type=none| is not identical with |nonefgrulers| option. The differences: |
| 196 |
% \begin{itemize} |
| 197 |
% \item |type=none| does not kill the |\fgruler| and |\fgruler*| commands and the |showframe| option. |
| 198 |
% \item |type=none| is alterable in any point of the document. |
| 199 |
% \item The |fgruler| package loads the |eso-pic| package, if you use the |type=none| option without |nonefgrulers|. |
| 200 |
% \end{itemize} |
| 201 |
% \end{description} |
| 202 |
% |
| 203 |
% \section{Drawing rulers on the foreground of the current page}\label{sec:currentpage} |
| 204 |
% \begin{description} |
| 205 |
% \item\commandinline|\fgruler[!<unit!>]{!<type name>!}{!<hshift>!}{!<vshift>!}|\\ |
| 206 |
% It draws a square ruler on the foreground of that page, where this command is expanded. |
| 207 |
% You can use more |\fgruler| commands in the same page. |
| 208 |
% |
| 209 |
% The package options (see Section \ref{sec:options}) also work on this command, except for |type|, |hshift|, and |vshift|. |
| 210 |
% |
| 211 |
% This command is effectless, if you use the |nonefgrulers| package option in the preamble. |
| 212 |
% \begin{description} |
| 213 |
% \item\commandinline|!<unit!>| options: |
| 214 |
% \commandinline|cm|, \commandinline|in| (see Section \ref{sec:options}). |
| 215 |
% Its default value is the same as the value specified by the |unit=|\commandinline|!<unit!>| package option. |
| 216 |
% |
| 217 |
% \item\commandinline|!<type name!>| parameters: |
| 218 |
% \commandinline|upperleft|, \commandinline|upperright|, \commandinline|lowerleft|, \commandinline|lowerright| (see Section \ref{sec:options}). |
| 219 |
% |
| 220 |
% \item\commandinline|!<hshift>!| |
| 221 |
% Horizontal shift. |
| 222 |
% The shift direction is right, if the \commandinline|!<type name>!| is |upperleft| or |lowerleft|, otherwise left. |
| 223 |
% |
| 224 |
% \item\commandinline|!<vshift>!| |
| 225 |
% Vertical shift. |
| 226 |
% The shift direction is down, if the \commandinline|!<type name>!| is |upperleft| or |upperright|, otherwise up. |
| 227 |
% \end{description} |
| 228 |
% |
| 229 |
% Example: |\fgruler[in]{upperright}{1in}{2.5in}| |
| 230 |
% \end{description} |
| 231 |
% \begin{description} |
| 232 |
% \item\commandinline|\fgruler*[!<package options!>]{!<type name>!}|\\ |
| 233 |
% It draws a ruler on the foreground of that page, where this command is expanded. |
| 234 |
% You can use more |\fgruler*| commands in the same page. |
| 235 |
% |
| 236 |
% The package options (see Section \ref{sec:options}) also work on this command, except for |type|. |
| 237 |
% |
| 238 |
% This command is effectless, if you use the |nonefgrulers| package option in the preamble. |
| 239 |
% \begin{description} |
| 240 |
% \item\commandinline|!<package options!>| |
| 241 |
% All options from Section \ref{sec:options}, except for |type|, |showframe|, and |nonefgrulers|. |
| 242 |
% |
| 243 |
% \item\commandinline|!<type name!>| |
| 244 |
% All possible values of the |type| option from Section \ref{sec:options}, except for the |none| value. |
| 245 |
% \end{description} |
| 246 |
% |
| 247 |
% Example: |\fgruler*[color=red,type=in]{alledges}| |
| 248 |
% |
| 249 |
% Note that the following two commands are equivalent:\\ |
| 250 |
% |\fgruler*[unit=in,hshift=1in,vshift=2.5in]{upperright}|\\ |
| 251 |
% |\fgruler[in]{upperright}{1in}{2.5in}| |
| 252 |
% \end{description} |
| 253 |
% |
| 254 |
% \section{Drawing rulers in the text}\label{sec:intext} |
| 255 |
% \begin{description} |
| 256 |
% \item\commandinline|\ruler[!<unit!>]{!<type name>!}{!<length>!}|\\ |
| 257 |
% It draws a horizontal or a vertical ruler. |
| 258 |
% The bottom of the ruler is aligned to the baseline of the surrounding text. |
| 259 |
% The package options (see Section \ref{sec:options}) do not work on this command. |
| 260 |
% \begin{description} |
| 261 |
% \item\commandinline|!<unit!>| options:\\ |
| 262 |
% \commandinline|cm| Metric ruler (centimeter). Default option.\\ |
| 263 |
% \commandinline|in| English ruler (inch). |
| 264 |
% |
| 265 |
% \item\commandinline|!<type name!>| parameters:\\ |
| 266 |
% \commandinline|downright | Direction: down. The numbers are on the right side.\\ |
| 267 |
% \commandinline|downleft | Direction: down. The numbers are on the left side.\\ |
| 268 |
% \commandinline|upright | Direction: up. The numbers are on the right side.\\ |
| 269 |
% \commandinline|upleft | Direction: up. The numbers are on the left side.\\ |
| 270 |
% \commandinline|rightdown | Direction: right. The numbers are on the down side.\\ |
| 271 |
% \commandinline|rightup | Direction: right. The numbers are on the up side.\\ |
| 272 |
% \commandinline|leftdown | Direction: left. The numbers are on the down side.\\ |
| 273 |
% \commandinline|leftup | Direction: left. The numbers are on the up side.\\ |
| 274 |
% \commandinline|taperight | Tape measure (direction: right). See Example \ref{example:tape}.\\ |
| 275 |
% \commandinline|tapeleft | Tape measure (direction: left). See Example \ref{example:tape}. |
| 276 |
% |
| 277 |
% \item\commandinline|!<length>!| |
| 278 |
% Ruler length. |
| 279 |
% \end{description} |
| 280 |
% |
| 281 |
% Example: |\ruler{rightdown}{5cm}| \ruler{rightdown}{5cm} |
| 282 |
% |
| 283 |
% \item\commandinline|\ruler*[!<unit!>]{!<type name>!}{!<length>!}|\\ |
| 284 |
% It works like |\ruler|, but the top of the ruler is aligned to the baseline of the surrounding text. |
| 285 |
% |
| 286 |
% Example: |
| 287 |
% |\ruler*{taperight}{5cm}| |
| 288 |
% \ruler*{taperight}{5cm} |
| 289 |
% |
| 290 |
% \item\commandinline|\squareruler[!<unit!>]{!<type name>!}{!<width>!}{!<height>!}|\\ |
| 291 |
% It draws a square ruler. |
| 292 |
% The bottom of the square ruler is aligned to the baseline of the surrounding text. |
| 293 |
% The package options (see Section \ref{sec:options}) do not work on this command. |
| 294 |
% \begin{description} |
| 295 |
% \item\commandinline|!<unit!>| options:\\ |
| 296 |
% \commandinline|cm| Metric ruler (centimeter). Default option.\\ |
| 297 |
% \commandinline|in| English ruler (inch). |
| 298 |
% |
| 299 |
% \item\commandinline|!<type name!>| parameters:\\ |
| 300 |
% \commandinline|upperleft | Directions: down and right.\\ |
| 301 |
% \commandinline|upperright| Directions: down and left.\\ |
| 302 |
% \commandinline|lowerleft | Directions: up and right.\\ |
| 303 |
% \commandinline|lowerright| Directions: up and left. |
| 304 |
% |
| 305 |
% \item\commandinline|!<width>!| |
| 306 |
% Square ruler width. |
| 307 |
% |
| 308 |
% \item\commandinline|!<height>!| |
| 309 |
% Square ruler height. |
| 310 |
% \end{description} |
| 311 |
% |
| 312 |
% Example: |
| 313 |
% |\squareruler{upperleft}{5cm}{1cm}| |
| 314 |
% \squareruler{upperleft}{5cm}{1cm} |
| 315 |
% |
| 316 |
% \item\commandinline|\squareruler*[!<unit!>]{!<type name>!}{!<width>!}{!<height>!}|\\ |
| 317 |
% It works like |\squareruler|, but the top of the square ruler is aligned to the baseline of the surrounding text. |
| 318 |
% |
| 319 |
% Example: |
| 320 |
% |\squareruler*{upperleft}{5cm}{1cm}| |
| 321 |
% \squareruler*{upperleft}{5cm}{1cm} |
| 322 |
% |
| 323 |
% \item\commandinline|\rulerparams{!<markthick>!}{!<numfont>!}{!<color>!}{!<marklength>!}{!<numsep>!}|\\ |
| 324 |
% It sets the parameters of the rulers, which are drawn by |\ruler| or |\squareruler|. |
| 325 |
% If an argument is empty, then that parameter will not be changed. |
| 326 |
% \begin{description} |
| 327 |
% \item\commandinline|!<markthick>!| Mark thickness. Default: |0.4pt| |
| 328 |
% \item\commandinline|!<numfont>!| Number font type. Default: |\scriptsize\sffamily| |
| 329 |
% \item\commandinline|!<color>!| Ruler line color. Default: |black| |
| 330 |
% \item\commandinline|!<marklength>!| Mark length at integer units. Default: |2mm| |
| 331 |
% \item\commandinline|!<numsep>!| Separation between number and ruler. Default: |3pt| |
| 332 |
% \end{description} |
| 333 |
% |
| 334 |
% For example, |\rulerparams{}{}{red}{}{}| changes the ruler color to red. |
| 335 |
% |
| 336 |
% \item\commandinline|\rulerparamsfromfg|\\ |
| 337 |
% It sets the ruler parameters from the current foreground ruler parameters. |
| 338 |
% |
| 339 |
% \item\commandinline|\rulernorotatenum|\\ |
| 340 |
% By default, the numbers of the vertical rulers (which were generated by |\ruler| or |\squareruler|) are rotated by 90$^\circ$. |
| 341 |
% It kills this action. |
| 342 |
% This command can only be expanded in the document body. |
| 343 |
% |
| 344 |
% Example: |{\rulernorotatenum\ruler{upright}{1cm}}| {\rulernorotatenum\ruler{upright}{1cm}} |
| 345 |
% |
| 346 |
% \item\commandinline|\rulerrotatenum|\\ |
| 347 |
% After |\rulernorotatenum|, it reactivates the number rotating. |
| 348 |
% This command can only be expanded in the document body. |
| 349 |
% \end{description} |
| 350 |
% |
| 351 |
% \section{Additional setting commands}\label{sec:additional} |
| 352 |
% The following commands can work on all of the rulers, which are drawn by |fgruler| package. |
| 353 |
% \begin{description} |
| 354 |
% \item\commandinline|\fgrulerstartnum{!<num>!}|\\ |
| 355 |
% The \commandinline|!<num>!| is a nonnegative integer, which will be the starting number on the horizontal and vertical rulers. |
| 356 |
% Default: |\fgrulerstartnum{0}| |
| 357 |
% |
| 358 |
% Example: |{\fgrulerstartnum{5}\squareruler{lowerleft}{3cm}{1cm}}| {\fgrulerstartnum{5}\squareruler{lowerleft}{3cm}{1cm}} |
| 359 |
% |
| 360 |
% \item\commandinline|\fgrulerstartnumh{!<num>!}|\\ |
| 361 |
% The \commandinline|!<num>!| is a nonnegative integer, which will be the starting number on the horizontal rulers. |
| 362 |
% Default: |\fgrulerstartnumh{0}| |
| 363 |
% |
| 364 |
% Example: |{\fgrulerstartnumh{5}\squareruler{lowerleft}{3cm}{1cm}}| {\fgrulerstartnumh{5}\squareruler{lowerleft}{3cm}{1cm}} |
| 365 |
% |
| 366 |
% \item\commandinline|\fgrulerstartnumv{!<num>!}|\\ |
| 367 |
% The \commandinline|!<num>!| is a nonnegative integer, which will be the starting number on the vertical rulers. |
| 368 |
% Default: |\fgrulerstartnumv{0}| |
| 369 |
% |
| 370 |
% Example: |{\fgrulerstartnumv{5}\squareruler{lowerleft}{3cm}{1cm}}| {\fgrulerstartnumv{5}\squareruler{lowerleft}{3cm}{1cm}} |
| 371 |
% |
| 372 |
% \item\commandinline|\fgrulernoborderline|\\ |
| 373 |
% By default, there is a borderline on one side of the ruler. |
| 374 |
% It disappears by this command. |
| 375 |
% |
| 376 |
% Example: |{\fgrulernoborderline\ruler{rightup}{3cm}}| {\fgrulernoborderline\ruler{rightup}{3cm}} |
| 377 |
% |
| 378 |
% \item\commandinline|\fgrulerborderline|\\ |
| 379 |
% After |\fgrulernoborderline|, it reactivates the previous default effect. |
| 380 |
% |
| 381 |
% \item\commandinline|\fgrulercaptioncm{!<caption>!}|\\ |
| 382 |
% Unit caption in metric ruler. |
| 383 |
% Default: |\fgrulercaptioncm{cm}| |
| 384 |
% |
| 385 |
% Example: |{\fgrulercaptioncm{}\ruler{rightup}{3cm}}| {\fgrulercaptioncm{}\ruler{rightup}{3cm}} |
| 386 |
% |
| 387 |
% \item\commandinline|\fgrulercaptionin{!<caption>!}|\\ |
| 388 |
% Unit caption in English ruler. |
| 389 |
% Default: |\fgrulercaptionin{inch}| |
| 390 |
% |
| 391 |
% \item\commandinline|\fgrulerdefnum{!<definition>!}|\\ |
| 392 |
% The ruler numbers are determined by the \commandinline|fgrulernum| counter. |
| 393 |
% Its current value is printed by the \commandinline|\thefgrulernum|. |
| 394 |
% Its default definition is |\def\thefgrulernum{\arabic{fgrulernum}}|, which is equivalent to |\fgrulerdefnum{\arabic{fgrulernum}}|. |
| 395 |
% |
| 396 |
% Example: |{\fgrulerdefnum{}\fgrulercaptioncm{}\ruler{rightdown}{2cm}}| {\fgrulerdefnum{}\fgrulercaptioncm{}\ruler{rightdown}{2cm}} |
| 397 |
% |
| 398 |
% \item\commandinline|\fgrulerratiocm{!<ratio1>!}{!<ratio2>!}|\\ |
| 399 |
% Mark length ratios in metric rulers. |
| 400 |
% If an argument is empty, then that parameter will not be changed. |
| 401 |
% \begin{description} |
| 402 |
% \item\commandinline|!<ratio1>!| |
| 403 |
% Mark length ratio at $k/10$\,cm, where $k$ is positive integer and not divisible by 5.\\ |
| 404 |
% {\fgrulerthickcm{1pt}{}{}\fgrulercolorcm{red}{}{}\ruler{rightup}{3cm}}\\ |
| 405 |
% For example, if this ratio is 0.5 and the mark length at integer unit is 2\,mm, then this mark length will be $0.5\cdot 2\,\mathrm{mm}=1\,\mathrm{mm}$. |
| 406 |
% |
| 407 |
% \item\commandinline|!<ratio2>!| |
| 408 |
% Mark length ratio at $k/2$\,cm, where $k$ is positive odd integer.\\ |
| 409 |
% {\fgrulerthickcm{}{1pt}{}\fgrulercolorcm{}{red}{}\ruler{rightup}{3cm}} |
| 410 |
% \end{description} |
| 411 |
% |
| 412 |
% Default: |\fgrulerratiocm{0.5}{0.75}| |
| 413 |
% |
| 414 |
% \item\commandinline|\fgrulerratioin{!<ratio1>!}{!<ratio2>!}{!<ratio3>!}{!<ratio4>!}|\\ |
| 415 |
% Mark length ratios in English rulers. |
| 416 |
% If an argument is empty, then that parameter will not be changed. |
| 417 |
% \begin{description} |
| 418 |
% \item\commandinline|!<ratio1>!| |
| 419 |
% Mark length ratio at $k/16$\,inch, where $k$ is positive odd integer.\\ |
| 420 |
% {\fgrulerthickin{1pt}{}{}{}{}\fgrulercolorin{red}{}{}{}{}\ruler[in]{rightup}{2in}} |
| 421 |
% |
| 422 |
% \item\commandinline|!<ratio2>!| |
| 423 |
% Mark length ratio at $k/8$\,inch, where $k$ is positive odd integer.\\ |
| 424 |
% {\fgrulerthickin{}{1pt}{}{}{}\fgrulercolorin{}{red}{}{}{}\ruler[in]{rightup}{2in}} |
| 425 |
% |
| 426 |
% \item\commandinline|!<ratio3>!| |
| 427 |
% Mark length ratio at $k/4$\,inch, where $k$ is positive odd integer.\\ |
| 428 |
% {\fgrulerthickin{}{}{1pt}{}{}\fgrulercolorin{}{}{red}{}{}\ruler[in]{rightup}{2in}} |
| 429 |
% |
| 430 |
% \item\commandinline|!<ratio4>!| |
| 431 |
% Mark length ratio at $k/2$\,inch, where $k$ is positive odd integer.\\ |
| 432 |
% {\fgrulerthickin{}{}{}{1pt}{}\fgrulercolorin{}{}{}{red}{}\ruler[in]{rightup}{2in}} |
| 433 |
% \end{description} |
| 434 |
% |
| 435 |
% Default: |\fgrulerratioin{0.25}{0.375}{0.625}{0.75}| |
| 436 |
% |
| 437 |
% \item\commandinline|\fgrulerthickcm{!<thick1>!}{!<thick2>!}{!<thick3>!}|\\ |
| 438 |
% Mark thicknesses in metric rulers. |
| 439 |
% If an argument is empty, then that parameter will not be changed. |
| 440 |
% \begin{description} |
| 441 |
% \item\commandinline|!<thick1>!| |
| 442 |
% Mark thickness at $k/10$\,cm, where $k$ is positive integer and not divisible by 5. |
| 443 |
% |
| 444 |
% \item\commandinline|!<thick2>!| |
| 445 |
% Mark thickness at $k/2$\,cm, where $k$ is positive odd integer. |
| 446 |
% |
| 447 |
% \item\commandinline|!<thick3>!| |
| 448 |
% Mark thickness at integer units. |
| 449 |
% \end{description} |
| 450 |
% |
| 451 |
% The default values are given by \commandinline|!<markthick>!| of |\rulerparams|, respectively by |markthick| option. |
| 452 |
% |
| 453 |
% Example:\\ |
| 454 |
% |{\fgrulerthickcm{}{}{2pt}|\\ |
| 455 |
% |\rulerparams{}{}{}{5mm}{}|\\ |
| 456 |
% |\fgrulernoborderline|\\ |
| 457 |
% |\ruler{rightdown}{3cm}}|\\[2mm] |
| 458 |
% {\fgrulerthickcm{}{}{2pt} |
| 459 |
% \rulerparams{}{}{}{5mm}{} |
| 460 |
% \fgrulernoborderline |
| 461 |
% \ruler{rightdown}{3cm}} |
| 462 |
% |
| 463 |
% \item\commandinline|\fgrulerthickin{!<thick1>!}{!<thick2>!}{!<thick3>!}{!<thick4>!}{!<thick5>!}|\\ |
| 464 |
% Mark thicknesses in English rulers. |
| 465 |
% If an argument is empty, then that parameter will not be changed. |
| 466 |
% \begin{description} |
| 467 |
% \item\commandinline|!<thick1>!| |
| 468 |
% Mark thickness at $k/16$\,inch, where $k$ is positive odd integer. |
| 469 |
% |
| 470 |
% \item\commandinline|!<thick2>!| |
| 471 |
% Mark thickness at $k/8$\,inch, where $k$ is positive odd integer. |
| 472 |
% |
| 473 |
% \item\commandinline|!<thick3>!| |
| 474 |
% Mark thickness at $k/4$\,inch, where $k$ is positive odd integer. |
| 475 |
% |
| 476 |
% \item\commandinline|!<thick4>!| |
| 477 |
% Mark thickness at $k/2$\,inch, where $k$ is positive odd integer. |
| 478 |
% |
| 479 |
% \item\commandinline|!<thick5>!| |
| 480 |
% Mark thickness at integer units. |
| 481 |
% \end{description} |
| 482 |
% |
| 483 |
% The default values are given by \commandinline|!<markthick>!| of |\rulerparams|, respectively by |markthick| option. |
| 484 |
% |
| 485 |
% Example:\\ |
| 486 |
% |{\fgrulerthickin{}{}{}{}{2pt}|\\ |
| 487 |
% |\rulerparams{}{}{}{5mm}{}|\\ |
| 488 |
% |\fgrulernoborderline|\\ |
| 489 |
% |\ruler[in]{rightdown}{3in}}|\\[2mm] |
| 490 |
% {\fgrulerthickin{}{}{}{}{2pt} |
| 491 |
% \rulerparams{}{}{}{5mm}{} |
| 492 |
% \fgrulernoborderline |
| 493 |
% \ruler[in]{rightdown}{3in}} |
| 494 |
% |
| 495 |
% \item\commandinline|\fgrulercolorcm{!<color1>!}{!<color2>!}{!<color3>!}|\\ |
| 496 |
% Mark colors in metric rulers. |
| 497 |
% If an argument is empty, then that parameter will not be changed. |
| 498 |
% \begin{description} |
| 499 |
% \item\commandinline|!<color1>!| |
| 500 |
% Mark color at $k/10$\,cm, where $k$ is positive integer and not divisible by 5. |
| 501 |
% |
| 502 |
% \item\commandinline|!<color2>!| |
| 503 |
% Mark color at $k/2$\,cm, where $k$ is positive odd integer. |
| 504 |
% |
| 505 |
% \item\commandinline|!<color3>!| |
| 506 |
% Mark color at integer units. |
| 507 |
% \end{description} |
| 508 |
% |
| 509 |
% The default values are given by \commandinline|!<color>!| of |\rulerparams|, respectively by |color| option. |
| 510 |
% |
| 511 |
% Example:\\ |
| 512 |
% |{\fgrulercolorcm{green}{blue}{red}|\\ |
| 513 |
% |\rulerparams{1pt}{}{}{5mm}{}|\\ |
| 514 |
% |\fgrulernoborderline|\\ |
| 515 |
% |\ruler{rightdown}{3cm}}|\\[2mm] |
| 516 |
% {\fgrulernoborderline |
| 517 |
% \fgrulercolorcm{green}{blue}{red} |
| 518 |
% \rulerparams{1pt}{}{}{5mm}{} |
| 519 |
% \ruler{rightdown}{3cm}} |
| 520 |
% |
| 521 |
% \item\commandinline|\fgrulercolorin{!<color1>!}{!<color2>!}{!<color3>!}{!<color4>!}{!<color5>!}|\\ |
| 522 |
% Mark color in English rulers. |
| 523 |
% If an argument is empty, then that parameter will not be changed. |
| 524 |
% \begin{description} |
| 525 |
% \item\commandinline|!<color1>!| |
| 526 |
% Mark color at $k/16$\,inch, where $k$ is positive odd integer. |
| 527 |
% |
| 528 |
% \item\commandinline|!<color2>!| |
| 529 |
% Mark color at $k/8$\,inch, where $k$ is positive odd integer. |
| 530 |
% |
| 531 |
% \item\commandinline|!<color3>!| |
| 532 |
% Mark color at $k/4$\,inch, where $k$ is positive odd integer. |
| 533 |
% |
| 534 |
% \item\commandinline|!<color4>!| |
| 535 |
% Mark color at $k/2$\,inch, where $k$ is positive odd integer. |
| 536 |
% |
| 537 |
% \item\commandinline|!<color5>!| |
| 538 |
% Mark color at integer units. |
| 539 |
% \end{description} |
| 540 |
% |
| 541 |
% The default values are given by \commandinline|!<color>!| of |\rulerparams|, respectively by |color| option. |
| 542 |
% |
| 543 |
% Example:\\ |
| 544 |
% |{\fgrulercolorin{yellow}{orange}{green}{blue}{red}|\\ |
| 545 |
% |\rulerparams{1pt}{}{}{5mm}{}|\\ |
| 546 |
% |\fgrulernoborderline|\\ |
| 547 |
% |\ruler[in]{rightdown}{3in}}|\\[2mm] |
| 548 |
% {\fgrulernoborderline |
| 549 |
% \fgrulercolorin{yellow}{orange}{green}{blue}{red} |
| 550 |
% \rulerparams{1pt}{}{}{5mm}{} |
| 551 |
% \ruler[in]{rightdown}{3in}} |
| 552 |
% |
| 553 |
% \item\commandinline|\fgrulerreset|\\ |
| 554 |
% It sets all options and parameters to default values. |
| 555 |
% This command can only be expanded in the document body. |
| 556 |
% \end{description} |
| 557 |
% |
| 558 |
% \medskip\noindent |
| 559 |
% \colorbox{red!10}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\textcolor{red}{\faWarning} |
| 560 |
% \itshape All setting commands obey the normal scoping rules, i.e.~if you use them inside a group, then the changing of the parameters is not valid outside the group.}} |
| 561 |
% |
| 562 |
% \newpage\fgrulerreset |
| 563 |
% \section{Examples} |
| 564 |
% \subsection{Deafult case}\label{example:upperleft} |
| 565 |
% \begin{examplelst} |
| 566 |
% \documentclass{article} |
| 567 |
% \usepackage{fgruler} |
| 568 |
% \begin{document} |
| 569 |
% ... |
| 570 |
% \end{document} |
| 571 |
% \end{examplelst} |
| 572 |
% |
| 573 |
% \newpage\fgrulerreset |
| 574 |
% \subsection{The \texttt{showframe} and \texttt{color} options}\label{example:showframe-color} |
| 575 |
% \setfgruler{color=red,showframe} |
| 576 |
% \begin{examplelst} |
| 577 |
% \documentclass{article} |
| 578 |
% \usepackage[color=red,showframe]{fgruler} |
| 579 |
% \begin{document} |
| 580 |
% ... |
| 581 |
% \end{document} |
| 582 |
% \end{examplelst} |
| 583 |
% |
| 584 |
% \newpage\fgrulerreset |
| 585 |
% \subsection{The \texttt{type=upperright} option}\label{example:upperright} |
| 586 |
% \setfgruler{type=upperright} |
| 587 |
% \begin{examplelst} |
| 588 |
% \documentclass{article} |
| 589 |
% \usepackage[type=upperright]{fgruler} |
| 590 |
% \begin{document} |
| 591 |
% ... |
| 592 |
% \end{document} |
| 593 |
% \end{examplelst} |
| 594 |
% |
| 595 |
% \newpage\fgrulerreset |
| 596 |
% \subsection{The \texttt{type=lowerleft} option}\label{example:lowerleft} |
| 597 |
% \setfgruler{type=lowerleft} |
| 598 |
% \begin{examplelst} |
| 599 |
% \documentclass{article} |
| 600 |
% \usepackage[type=lowerleft]{fgruler} |
| 601 |
% \begin{document} |
| 602 |
% ... |
| 603 |
% \end{document} |
| 604 |
% \end{examplelst} |
| 605 |
% |
| 606 |
% \newpage\fgrulerreset |
| 607 |
% \subsection{The \texttt{type=lowerright} option}\label{example:lowerright} |
| 608 |
% \setfgruler{type=lowerright} |
| 609 |
% \begin{examplelst} |
| 610 |
% \documentclass{article} |
| 611 |
% \usepackage[type=lowerright]{fgruler} |
| 612 |
% \begin{document} |
| 613 |
% ... |
| 614 |
% \end{document} |
| 615 |
% \end{examplelst} |
| 616 |
% |
| 617 |
% \newpage\fgrulerreset |
| 618 |
% \subsection{Shift in default case}\label{example:shift-first} |
| 619 |
% \setfgruler{hshift=1cm,vshift=2cm} |
| 620 |
% \begin{examplelst} |
| 621 |
% \documentclass{article} |
| 622 |
% \usepackage[hshift=1cm,vshift=2cm]{fgruler} |
| 623 |
% \begin{document} |
| 624 |
% ... |
| 625 |
% \end{document} |
| 626 |
% \end{examplelst} |
| 627 |
% |
| 628 |
% \newpage\fgrulerreset |
| 629 |
% \subsection{Shift in case \texttt{type=upperright} option} |
| 630 |
% \setfgruler{type=upperright,hshift=1cm,vshift=2cm} |
| 631 |
% \begin{examplelst} |
| 632 |
% \documentclass{article} |
| 633 |
% \usepackage[type=upperright,hshift=1cm,vshift=2cm]{fgruler} |
| 634 |
% \begin{document} |
| 635 |
% ... |
| 636 |
% \end{document} |
| 637 |
% \end{examplelst} |
| 638 |
% |
| 639 |
% \newpage\fgrulerreset |
| 640 |
% \subsection{Shift in case \texttt{type=lowerleft} option} |
| 641 |
% \setfgruler{type=lowerleft,hshift=1cm,vshift=2cm} |
| 642 |
% \begin{examplelst} |
| 643 |
% \documentclass{article} |
| 644 |
% \usepackage[type=lowerleft,hshift=1cm,vshift=2cm]{fgruler} |
| 645 |
% \begin{document} |
| 646 |
% ... |
| 647 |
% \end{document} |
| 648 |
% \end{examplelst} |
| 649 |
% |
| 650 |
% \newpage\fgrulerreset |
| 651 |
% \subsection{Shift in case \texttt{type=lowerright} option}\label{example:shift-last} |
| 652 |
% \setfgruler{type=lowerright,hshift=1cm,vshift=2cm} |
| 653 |
% \begin{examplelst} |
| 654 |
% \documentclass{article} |
| 655 |
% \usepackage[type=lowerright,hshift=1cm,vshift=2cm]{fgruler} |
| 656 |
% \begin{document} |
| 657 |
% ... |
| 658 |
% \end{document} |
| 659 |
% \end{examplelst} |
| 660 |
% |
| 661 |
% \newpage\fgrulerreset |
| 662 |
% \subsection{The \texttt{type=alledges} option}\label{example:alledges} |
| 663 |
% \setfgruler{type=alledges} |
| 664 |
% \begin{examplelst} |
| 665 |
% \documentclass{article} |
| 666 |
% \usepackage[type=alledges]{fgruler} |
| 667 |
% \begin{document} |
| 668 |
% ... |
| 669 |
% \end{document} |
| 670 |
% \end{examplelst} |
| 671 |
% |
| 672 |
% \newpage\fgrulerreset |
| 673 |
% \subsection{The \texttt{type=alledges*} option}\label{example:alledges*} |
| 674 |
% \setfgruler{type=alledges*} |
| 675 |
% \begin{examplelst} |
| 676 |
% \documentclass{article} |
| 677 |
% \usepackage[type=alledges*]{fgruler} |
| 678 |
% \begin{document} |
| 679 |
% ... |
| 680 |
% \end{document} |
| 681 |
% \end{examplelst} |
| 682 |
% |
| 683 |
% \newpage\fgrulerreset |
| 684 |
% \subsection{The \texttt{type=upperleftT} option}\label{example:upperleftT} |
| 685 |
% \setfgruler{type=upperleftT} |
| 686 |
% \begin{examplelst} |
| 687 |
% \documentclass{article} |
| 688 |
% \usepackage[type=upperleftT]{fgruler} |
| 689 |
% \begin{document} |
| 690 |
% ... |
| 691 |
% \end{document} |
| 692 |
% \end{examplelst} |
| 693 |
% |
| 694 |
% \newpage\fgrulerreset |
| 695 |
% \subsection{The \texttt{type=upperrightT} option}\label{example:upperrightT} |
| 696 |
% \setfgruler{type=upperrightT} |
| 697 |
% \begin{examplelst} |
| 698 |
% \documentclass{article} |
| 699 |
% \usepackage[type=upperrightT]{fgruler} |
| 700 |
% \begin{document} |
| 701 |
% ... |
| 702 |
% \end{document} |
| 703 |
% \end{examplelst} |
| 704 |
% |
| 705 |
% \newpage\fgrulerreset |
| 706 |
% \subsection{The \texttt{type=lowerleftT} option}\label{example:lowerleftT} |
| 707 |
% \setfgruler{type=lowerleftT} |
| 708 |
% \begin{examplelst} |
| 709 |
% \documentclass{article} |
| 710 |
% \usepackage[type=lowerleftT]{fgruler} |
| 711 |
% \begin{document} |
| 712 |
% ... |
| 713 |
% \end{document} |
| 714 |
% \end{examplelst} |
| 715 |
% |
| 716 |
% \newpage\fgrulerreset |
| 717 |
% \subsection{The \texttt{type=lowerrightT} option}\label{example:lowerrightT} |
| 718 |
% \setfgruler{type=lowerrightT} |
| 719 |
% \begin{examplelst} |
| 720 |
% \documentclass{article} |
| 721 |
% \usepackage[type=lowerrightT]{fgruler} |
| 722 |
% \begin{document} |
| 723 |
% ... |
| 724 |
% \end{document} |
| 725 |
% \end{examplelst} |
| 726 |
% |
| 727 |
% \newpage\fgrulerreset |
| 728 |
% \subsection{The \texttt{type=alledgesT} option}\label{example:alledgesT} |
| 729 |
% \setfgruler{type=alledgesT} |
| 730 |
% \begin{examplelst} |
| 731 |
% \documentclass{article} |
| 732 |
% \usepackage[type=alledgesT]{fgruler} |
| 733 |
% \begin{document} |
| 734 |
% ... |
| 735 |
% \end{document} |
| 736 |
% \end{examplelst} |
| 737 |
% |
| 738 |
% \newpage\fgrulerreset |
| 739 |
% \subsection{The \texttt{type=alledgesT*} option}\label{example:alledgesT*} |
| 740 |
% \setfgruler{type=alledgesT*} |
| 741 |
% \begin{examplelst} |
| 742 |
% \documentclass{article} |
| 743 |
% \usepackage[type=alledgesT*]{fgruler} |
| 744 |
% \begin{document} |
| 745 |
% ... |
| 746 |
% \end{document} |
| 747 |
% \end{examplelst} |
| 748 |
% |
| 749 |
% \newpage\fgrulerreset |
| 750 |
% \subsection{Combining type names}\label{example:combining} |
| 751 |
% \setfgruler{type={alledges,alledgesT}} |
| 752 |
% \fgrulerdefusercm{\fgrulertype{cm}{alledges}\fgrulertype{cm}{alledgesT}} |
| 753 |
% \begin{examplelst} |
| 754 |
% \documentclass{article} |
| 755 |
% \usepackage[type={alledges,alledgesT}]{fgruler} |
| 756 |
% \begin{document} |
| 757 |
% ... |
| 758 |
% \end{document} |
| 759 |
% \end{examplelst} |
| 760 |
% |
| 761 |
% \newpage\fgrulerreset |
| 762 |
% \subsection{Setting the \texttt{type=user} option}\label{example:user-first} |
| 763 |
% In the next example the |type=user| option activates |type=upperright| or |type=upperleft|, depending on the page number is odd or even. |
| 764 |
% \setfgruler{type=none} |
| 765 |
% \begin{examplelst} |
| 766 |
% \documentclass{article} |
| 767 |
% \usepackage[type=user]{fgruler} |
| 768 |
% \fgrulerdefuser{ |
| 769 |
% \ifodd\value{page}\fgrulertype{\fgrulerunit}{upperright} |
| 770 |
% \else\fgrulertype{\fgrulerunit}{upperleft}\fi |
| 771 |
% } |
| 772 |
% \begin{document} |
| 773 |
% ... |
| 774 |
% \end{document} |
| 775 |
% \end{examplelst} |
| 776 |
% |
| 777 |
% \newpage\fgrulerreset |
| 778 |
% \subsection{Setting the \texttt{type=user} option} |
| 779 |
% In the next example the |type=user| option places a vertical ruler at the left border of the text area. |
| 780 |
% \setfgruler{type=user} |
| 781 |
%\fgrulerdefuser{\AtTextLowerLeft{\ignorespaces\rulerparamsfromfg\llap{\ruler[\fgrulerunit]{downleft}{\textheight}}}} |
| 782 |
% \begin{examplelst} |
| 783 |
% \documentclass{article} |
| 784 |
% \usepackage[type=user]{fgruler} |
| 785 |
% \fgrulerdefuser{ |
| 786 |
% \AtTextLowerLeft{% See eso-pic package! |
| 787 |
% \rulerparamsfromfg |
| 788 |
% \llap{\ruler[\fgrulerunit]{downleft}{\textheight}} |
| 789 |
% } |
| 790 |
% } |
| 791 |
% \begin{document} |
| 792 |
% ... |
| 793 |
% \end{document} |
| 794 |
% \end{examplelst} |
| 795 |
% |
| 796 |
% \newpage\fgrulerreset |
| 797 |
% \subsection{Setting the \texttt{type=user} option} |
| 798 |
% In the next example the |type=user| option places rulers at the right and bottom borders of the text area. |
| 799 |
% \setfgruler{type=user} |
| 800 |
%\fgrulerdefuser{\AtTextLowerLeft{\ignorespaces\rulerparamsfromfg\rulernorotatenum\llap{\ruler[\fgrulerunit]{downleft}{\textheight}}\ruler*[\fgrulerunit]{rightdown}{\textwidth}}} |
| 801 |
% \begin{examplelst} |
| 802 |
% \documentclass{article} |
| 803 |
% \usepackage[type=user]{fgruler} |
| 804 |
% \fgrulerdefuser{ |
| 805 |
% \AtTextLowerLeft{% See eso-pic package! |
| 806 |
% \rulerparamsfromfg |
| 807 |
% \rulernorotatenum |
| 808 |
% \llap{\ruler[\fgrulerunit]{downleft}{\textheight}}% |
| 809 |
% \ruler*[\fgrulerunit]{rightdown}{\textwidth} |
| 810 |
% } |
| 811 |
% } |
| 812 |
% \begin{document} |
| 813 |
% ... |
| 814 |
% \end{document} |
| 815 |
% \end{examplelst} |
| 816 |
% |
| 817 |
% \newpage\fgrulerreset |
| 818 |
% \subsection{Setting the \texttt{type=user} option}\label{example:user-last} |
| 819 |
% In the next example the |type=user| option places rulers at the right and top borders of the text area. |
| 820 |
% \setfgruler{type=user} |
| 821 |
%\fgrulerdefuser{\AtTextUpperLeft{\ignorespaces% |
| 822 |
%\rulerparamsfromfg\ruler[\fgrulerunit]{rightup}{\textwidth}\ignorespaces% |
| 823 |
%\rulernorotatenum\fgrulercaptioncm{}\ignorespaces\ruler*[\fgrulerunit]{downright}{\textheight}}} |
| 824 |
% \begin{examplelst} |
| 825 |
% \documentclass{article} |
| 826 |
% \usepackage[type=user]{fgruler} |
| 827 |
% \fgrulerdefuser{ |
| 828 |
% \AtTextUpperLeft{% See eso-pic package! |
| 829 |
% \rulerparamsfromfg |
| 830 |
% \ruler[\fgrulerunit]{rightup}{\textwidth}% |
| 831 |
% \rulernorotatenum |
| 832 |
% \csname fgrulercaption\fgrulerunit\endcsname{}% |
| 833 |
% \ruler*[\fgrulerunit]{downright}{\textheight} |
| 834 |
% } |
| 835 |
% } |
| 836 |
% \begin{document} |
| 837 |
% ... |
| 838 |
% \end{document} |
| 839 |
% \end{examplelst} |
| 840 |
% |
| 841 |
% \newpage\fgrulerreset |
| 842 |
% \subsection{Rulers on the foreground of the current page and in the text} |
| 843 |
% \setfgruler{color=blue} |
| 844 |
% \fgruler{upperleft}{1cm}{1.5cm}\fgruler*[color=red,unit=in]{lowerrightT} |
| 845 |
% \noindent |
| 846 |
% text |
| 847 |
% \rulerparams{}{\color{red}\tiny\ttfamily}{green}{}{} |
| 848 |
% {\fgrulernoborderline\ruler{rightdown}{3cm}} |
| 849 |
% text |
| 850 |
% \ruler*{rightdown}{3cm} |
| 851 |
% text |
| 852 |
% \rotatebox[origin=tl]{30}{\ruler*{rightdown}{3cm}} |
| 853 |
% |
| 854 |
% \bigskip |
| 855 |
% \begin{examplelst} |
| 856 |
% \documentclass{article} |
| 857 |
% \usepackage[color=blue]{fgruler} |
| 858 |
% \begin{document} |
| 859 |
% \fgruler{upperleft}{1cm}{1.5cm} |
| 860 |
% \fgruler*[color=red,unit=in]{lowerrightT} |
| 861 |
% \noindent |
| 862 |
% text |
| 863 |
% \rulerparams{}{\color{red}\tiny\ttfamily}{green}{}{} |
| 864 |
% {\fgrulernoborderline\ruler{rightdown}{3cm}} |
| 865 |
% text |
| 866 |
% \ruler*{rightdown}{3cm} |
| 867 |
% text |
| 868 |
% \rotatebox[origin=tl]{30}{\ruler*{rightdown}{3cm}} |
| 869 |
% % \rotatebox is defined in graphicx package |
| 870 |
% \end{document} |
| 871 |
% \end{examplelst} |
| 872 |
% |
| 873 |
% \newpage\fgrulerreset |
| 874 |
% \subsection{Ruler types in the text} |
| 875 |
% \setfgruler{type=none} |
| 876 |
% \noindent |
| 877 |
% \rulerparams{}{}{red}{}{3pt} |
| 878 |
% \ruler{rightdown}{3cm} |
| 879 |
% \hfill |
| 880 |
% \ruler{rightup}{3cm} |
| 881 |
% \hfill |
| 882 |
% \ruler{leftup}{3cm} |
| 883 |
% \hfill |
| 884 |
% \ruler{leftdown}{3cm} |
| 885 |
% |
| 886 |
% \bigskip\noindent |
| 887 |
% \rulerparams{}{}{green}{}{} |
| 888 |
% {\rulernorotatenum\ruler{upright}{3cm}} |
| 889 |
% \hfill |
| 890 |
% \ruler{downright}{3cm} |
| 891 |
% \hfill |
| 892 |
% \ruler{upleft}{3cm} |
| 893 |
% \hfill |
| 894 |
% \ruler{downleft}{3cm} |
| 895 |
% |
| 896 |
% \bigskip\noindent |
| 897 |
% \rulerparams{}{}{blue!50!black}{}{} |
| 898 |
% {\rulernorotatenum\fgrulercaptioncm{}\squareruler{upperleft}{2cm}{3cm}} |
| 899 |
% \hfill |
| 900 |
% \squareruler{lowerright}{2cm}{3cm} |
| 901 |
% \hfill |
| 902 |
% \squareruler{lowerleft}{2cm}{3cm} |
| 903 |
% \hfill |
| 904 |
% \squareruler{upperright}{2cm}{3cm} |
| 905 |
% \hfill |
| 906 |
% {\rulerparams{}{\footnotesize\bfseries\color{red}}{}{5mm}{}\squareruler[in]{lowerleft}{2in}{3cm}} |
| 907 |
% |
| 908 |
% \bigskip |
| 909 |
% \begin{examplelst} |
| 910 |
% \documentclass{article} |
| 911 |
% \usepackage[a4paper,margin=25mm]{geometry} |
| 912 |
% \usepackage[nonefgrulers]{fgruler} |
| 913 |
% \begin{document} |
| 914 |
% \noindent |
| 915 |
% \rulerparams{}{}{red}{}{3pt} |
| 916 |
% \ruler{rightdown}{3cm} |
| 917 |
% \hfill |
| 918 |
% \ruler{rightup}{3cm} |
| 919 |
% \hfill |
| 920 |
% \ruler{leftup}{3cm} |
| 921 |
% \hfill |
| 922 |
% \ruler{leftdown}{3cm} |
| 923 |
% |
| 924 |
% \bigskip\noindent |
| 925 |
% \rulerparams{}{}{green}{}{} |
| 926 |
% {\rulernorotatenum\ruler{upright}{3cm}} |
| 927 |
% \hfill |
| 928 |
% \ruler{downright}{3cm} |
| 929 |
% \hfill |
| 930 |
% \ruler{upleft}{3cm} |
| 931 |
% \hfill |
| 932 |
% \ruler{downleft}{3cm} |
| 933 |
% |
| 934 |
% \bigskip\noindent |
| 935 |
% \rulerparams{}{}{blue!50!black}{}{} |
| 936 |
% {\rulernorotatenum\fgrulercaptioncm{}\squareruler{upperleft}{2cm}{3cm}} |
| 937 |
% \hfill |
| 938 |
% \squareruler{lowerright}{2cm}{3cm} |
| 939 |
% \hfill |
| 940 |
% \squareruler{lowerleft}{2cm}{3cm} |
| 941 |
% \hfill |
| 942 |
% \squareruler{upperright}{2cm}{3cm} |
| 943 |
% \hfill |
| 944 |
% {\rulerparams{}{\footnotesize\bfseries\color{red}}{}{5mm}{} |
| 945 |
% \squareruler[in]{lowerleft}{2in}{3cm}} |
| 946 |
% \end{document} |
| 947 |
% \end{examplelst} |
| 948 |
% |
| 949 |
% \newpage\fgrulerreset |
| 950 |
% \subsection{Measuring tapes}\label{example:tape} |
| 951 |
% \setfgruler{type=none} |
| 952 |
% |
| 953 |
%\noindent\ignorespaces\ruler{taperight}{\textwidth}\\[2pt]\rotatebox[origin=br]{-90}{\ruler{tapeleft}{3cm}}~\ruler{taperight}{10cm} |
| 954 |
%\par\medskip\noindent{\fgrulerdefnum{}\ruler{taperight}{\textwidth}} |
| 955 |
%\par\medskip\noindent{\fgrulerdefnum{}\fgrulercaptioncm{}\rulerparams{}{}{red}{}{0pt}\ruler{taperight}{\textwidth}} |
| 956 |
% |
| 957 |
% \bigskip |
| 958 |
% \begin{examplelst} |
| 959 |
% \documentclass{article} |
| 960 |
% \usepackage[a4paper,margin=25mm]{geometry} |
| 961 |
% \usepackage[nonefgrulers]{fgruler} |
| 962 |
% \begin{document} |
| 963 |
% \noindent |
| 964 |
% \ruler{taperight}{\textwidth}\\[2pt] |
| 965 |
% \rotatebox[origin=br]{-90}{\ruler{tapeleft}{3cm}} |
| 966 |
% \ruler{taperight}{10cm} |
| 967 |
% |
| 968 |
% \medskip\noindent |
| 969 |
% {\fgrulerdefnum{} |
| 970 |
% \ruler{taperight}{\textwidth}} |
| 971 |
% |
| 972 |
% \medskip\noindent |
| 973 |
% {\fgrulerdefnum{} |
| 974 |
% \fgrulercaptioncm{} |
| 975 |
% \rulerparams{}{}{red}{}{0pt} |
| 976 |
% \ruler{taperight}{\textwidth}} |
| 977 |
% \end{document} |
| 978 |
% \end{examplelst} |
| 979 |
% |
| 980 |
% \newpage\fgrulerreset |
| 981 |
% \subsection{Mark length and rotating} |
| 982 |
% \setfgruler{type=none} |
| 983 |
% \noindent |
| 984 |
% {\fgrulerdefnum{\rotatebox{45}{\arabic{fgrulernum}\,cm}} |
| 985 |
% \fgrulercaptioncm{} |
| 986 |
% \rulerparams{}{\tiny\color{red}}{blue}{8mm}{} |
| 987 |
% \fgrulercolorcm{}{}{black} |
| 988 |
% \rotatebox{-45}{\ruler{rightup}{10cm}}\\ |
| 989 |
% \ruler{rightup}{5cm}} |
| 990 |
% |
| 991 |
% \bigskip |
| 992 |
% \begin{examplelst} |
| 993 |
% \documentclass{article} |
| 994 |
% \usepackage[nonefgrulers]{fgruler} |
| 995 |
% \begin{document} |
| 996 |
% \noindent |
| 997 |
% {\fgrulerdefnum{\rotatebox{45}{\arabic{fgrulernum}\,cm}} |
| 998 |
% \fgrulercaptioncm{} |
| 999 |
% \rulerparams{}{\tiny\color{red}}{blue}{8mm}{} |
| 1000 |
% \fgrulercolorcm{}{}{black} |
| 1001 |
% \rotatebox{-45}{\ruler{rightup}{10cm}}\\ |
| 1002 |
% \ruler{rightup}{5cm}} |
| 1003 |
% \end{document} |
| 1004 |
% \end{examplelst} |
| 1005 |
% |
| 1006 |
% \newpage\fgrulerreset |
| 1007 |
% \subsection{Coordinate system} |
| 1008 |
% \setfgruler{type=none} |
| 1009 |
% \noindent |
| 1010 |
% \rulernorotatenum |
| 1011 |
% \fgrulercaptioncm{} |
| 1012 |
% \fgrulercolorcm{}{}{red} |
| 1013 |
% \rulerparams{}{\scriptsize\color{red}}{}{}{} |
| 1014 |
% {\fgrulerdefnum{$-\arabic{fgrulernum}$}\squareruler*{upperright}{3cm}{3cm}}\ignorespaces |
| 1015 |
% \squareruler{lowerleft}{13cm}{6cm} |
| 1016 |
% |
| 1017 |
% \bigskip |
| 1018 |
% \begin{examplelst} |
| 1019 |
% \documentclass{article} |
| 1020 |
% \usepackage[a4paper,margin=25mm]{geometry} |
| 1021 |
% \usepackage[nonefgrulers]{fgruler} |
| 1022 |
% \begin{document} |
| 1023 |
% \noindent |
| 1024 |
% \rulernorotatenum |
| 1025 |
% \fgrulercaptioncm{} |
| 1026 |
% \fgrulercolorcm{}{}{red} |
| 1027 |
% \rulerparams{}{\scriptsize\color{red}}{}{}{} |
| 1028 |
% {\fgrulerdefnum{$-\arabic{fgrulernum}$}\squareruler*{upperright}{3cm}{3cm}}% |
| 1029 |
% \squareruler{lowerleft}{13cm}{6cm} |
| 1030 |
% \end{document} |
| 1031 |
% \end{examplelst} |
| 1032 |
% |
| 1033 |
% \newpage\fgrulerreset |
| 1034 |
% \subsection{A new square ruler type} |
| 1035 |
% \setfgruler{type=none} |
| 1036 |
% {\rulernorotatenum\fgrulercaptioncm{}\ruler*{downleft}{5cm}}\ruler{rightup}{3cm} |
| 1037 |
% |
| 1038 |
% \bigskip |
| 1039 |
% \begin{examplelst} |
| 1040 |
% \documentclass{article} |
| 1041 |
% \usepackage[type=none]{fgruler} |
| 1042 |
% \newcommand{\usersquareruler}[2]{% |
| 1043 |
% {\rulernorotatenum\fgrulercaptioncm{}\ruler*{downleft}{#2}}% |
| 1044 |
% \ruler{rightup}{#1}% |
| 1045 |
% } |
| 1046 |
% \begin{document} |
| 1047 |
% \usersquareruler{3cm}{5cm} |
| 1048 |
% \end{document} |
| 1049 |
% \end{examplelst} |
| 1050 |
% |
| 1051 |
% \newpage\fgrulerreset |
| 1052 |
% \subsection{Scale bars on the maps} |
| 1053 |
% \setfgruler{type=none} |
| 1054 |
% \def\Sstackgap{5pt} |
| 1055 |
% \fgrulerratiocm{0}{0} |
| 1056 |
% \fgrulercaptioncm{m} |
| 1057 |
% \fgrulerdefnum{\fpeval{\value{fgrulernum}*100}} |
| 1058 |
% \Shortstack{\ruler{rightup}{5cm} $1:10000$} |
| 1059 |
% \par\bigskip\noindent |
| 1060 |
% \fgrulerdefnum{\fpeval{\value{fgrulernum}*200}} |
| 1061 |
% \Shortstack{\ruler{rightup}{5cm} $1:20000$} |
| 1062 |
% \par\bigskip\noindent |
| 1063 |
% \fgrulercaptioncm{km} |
| 1064 |
% \fgrulerdefnum{\fpeval{\value{fgrulernum}*.5}} |
| 1065 |
% \Shortstack{\ruler{rightup}{5cm} $1:50000$} |
| 1066 |
% |
| 1067 |
% \bigskip |
| 1068 |
% \begin{examplelst} |
| 1069 |
% \documentclass{article} |
| 1070 |
% \usepackage[nonefgrulers]{fgruler} |
| 1071 |
% \usepackage{stackengine} |
| 1072 |
% \def\Sstackgap{5pt} |
| 1073 |
% \fgrulerratiocm{0}{0} |
| 1074 |
% \fgrulercaptioncm{m} |
| 1075 |
|
| 1076 |
% \begin{document} |
| 1077 |
|
| 1078 |
% \fgrulerdefnum{\fpeval{\value{fgrulernum}*100}} |
| 1079 |
% \Shortstack{\ruler{rightup}{5cm} $1:10000$} |
| 1080 |
|
| 1081 |
% \bigskip |
| 1082 |
|
| 1083 |
% \fgrulerdefnum{\fpeval{\value{fgrulernum}*200}} |
| 1084 |
% \Shortstack{\ruler{rightup}{5cm} $1:20000$} |
| 1085 |
|
| 1086 |
% \bigskip |
| 1087 |
|
| 1088 |
% \fgrulercaptioncm{km} |
| 1089 |
% \fgrulerdefnum{\fpeval{\value{fgrulernum}*.5}} |
| 1090 |
% \Shortstack{\ruler{rightup}{5cm} $1:50000$} |
| 1091 |
|
| 1092 |
% \end{document} |
| 1093 |
% \end{examplelst} |
| 1094 |
% |
| 1095 |
% \StopEventually |
| 1096 |
% |
| 1097 |
% \begin{macrocode} |
| 1098 |
%% |
| 1099 |
\@ifpackageloaded{kvoptions}{}{\RequirePackage{kvoptions}} |
| 1100 |
\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} |
| 1101 |
|
| 1102 |
\SetupKeyvalOptions{family=fgruler,prefix=fgruler@} |
| 1103 |
\DeclareStringOption[.4pt]{markthick} |
| 1104 |
\DeclareStringOption[\scriptsize\sffamily]{numfont} |
| 1105 |
\DeclareStringOption[black]{color} |
| 1106 |
\DeclareStringOption[2mm]{marklength} |
| 1107 |
\DeclareStringOption[3pt]{numsep} |
| 1108 |
\DeclareStringOption[0pt]{hshift} |
| 1109 |
\DeclareStringOption[0pt]{vshift} |
| 1110 |
\DeclareStringOption[upperleft]{type} |
| 1111 |
\DeclareStringOption[cm]{unit} |
| 1112 |
\DeclareBoolOption{nonefgrulers} |
| 1113 |
\DeclareBoolOption{showframe} |
| 1114 |
\ProcessKeyvalOptions{fgruler} |
| 1115 |
|
| 1116 |
\newlength{\fgruler@marklth} |
| 1117 |
\newlength{\fgruler@sep} |
| 1118 |
\newlength{\fgruler@width} |
| 1119 |
\newlength{\fgruler@fg@width} |
| 1120 |
\newlength{\fgruler@fg@height} |
| 1121 |
|
| 1122 |
\def\fgruler@set#1#2#3#4#5{% |
| 1123 |
\def\fgruler@markthickness{\linethickness{#1}}% |
| 1124 |
\def\fgruler@font{#2}% |
| 1125 |
\def\fgruler@rulercolor{\color{#3}}% |
| 1126 |
\setlength{\fgruler@marklth}{#4}% |
| 1127 |
\setlength{\fgruler@sep}{#5}% |
| 1128 |
\def\fgruler@font@{\normalfont\normalsize\fgruler@font}% |
| 1129 |
\addtolength{\fgruler@sep}{\fgruler@marklth}% |
| 1130 |
\ifx\thefgrulernum\@empty% |
| 1131 |
\expandafter\ifx\csname fgruler@caption@\fgruler@unit\endcsname\@empty% |
| 1132 |
\setlength{\fgruler@width}{\fgruler@marklth}% |
| 1133 |
\else |
| 1134 |
\settoheight{\fgruler@width}{\fgruler@font@\csname fgruler@caption@\fgruler@unit\endcsname}% |
| 1135 |
\addtolength{\fgruler@width}{\fgruler@sep}% |
| 1136 |
\fi |
| 1137 |
\else |
| 1138 |
\settoheight{\fgruler@width}{\fgruler@font@\thefgrulernum}% |
| 1139 |
\addtolength{\fgruler@width}{\fgruler@sep}% |
| 1140 |
\fi} |
| 1141 |
|
| 1142 |
\def\rulerparams#1#2#3#4#5{% |
| 1143 |
\ifx#1\@empty\else\def\fgruler@markthick@{#1}\fi% |
| 1144 |
\ifx#2\@empty\else\def\fgruler@numfont@{#2}\fi% |
| 1145 |
\ifx#3\@empty\else\def\fgruler@color@{#3}\fi% |
| 1146 |
\ifx#4\@empty\else\def\fgruler@marklength@{#4}\fi% |
| 1147 |
\ifx#5\@empty\else\def\fgruler@numsep@{#5}\fi% |
| 1148 |
\ignorespaces} |
| 1149 |
|
| 1150 |
\rulerparams{.4pt}{\scriptsize\sffamily}{black}{2mm}{3pt} |
| 1151 |
|
| 1152 |
\def\rulerparamsfromfg{\rulerparams{\fgruler@markthick}{\fgruler@numfont}{\fgruler@color}{\fgruler@marklength}{\fgruler@numsep}} |
| 1153 |
|
| 1154 |
\def\fgruler@fgsetting{% |
| 1155 |
\fgruler@set{\fgruler@markthick}{\fgruler@numfont}{\fgruler@color}{\fgruler@marklength}{\fgruler@numsep}% |
| 1156 |
\rulernorotatenum} |
| 1157 |
|
| 1158 |
\def\fgruler@intextsetting{% |
| 1159 |
\fgruler@set{\fgruler@markthick@}{\fgruler@numfont@}{\fgruler@color@}{\fgruler@marklength@}{\fgruler@numsep@}} |
| 1160 |
|
| 1161 |
\def\fgruler@activate@type{% |
| 1162 |
\def\fgruler@output{}% |
| 1163 |
\def\fgruler@check{cm}\ifx\fgruler@unit\fgruler@check\else% |
| 1164 |
\def\fgruler@check{in}\ifx\fgruler@unit\fgruler@check\else% |
| 1165 |
\PackageError{fgruler}{\fgruler@unit\space is invalid unit}{Valid units: cm, in}% |
| 1166 |
\fi\fi% |
| 1167 |
\def\do##1{% |
| 1168 |
\expandafter\def\expandafter\fgruler@type@item\expandafter{##1}% |
| 1169 |
\def\fgruler@check{upperleft}\ifx\fgruler@type@item\fgruler@check\else% |
| 1170 |
\def\fgruler@check{upperright}\ifx\fgruler@type@item\fgruler@check\else% |
| 1171 |
\def\fgruler@check{lowerleft}\ifx\fgruler@type@item\fgruler@check\else% |
| 1172 |
\def\fgruler@check{lowerright}\ifx\fgruler@type@item\fgruler@check\else% |
| 1173 |
\def\fgruler@check{upperleftT}\ifx\fgruler@type@item\fgruler@check\else% |
| 1174 |
\def\fgruler@check{upperrightT}\ifx\fgruler@type@item\fgruler@check\else% |
| 1175 |
\def\fgruler@check{lowerleftT}\ifx\fgruler@type@item\fgruler@check\else% |
| 1176 |
\def\fgruler@check{lowerrightT}\ifx\fgruler@type@item\fgruler@check\else% |
| 1177 |
\def\fgruler@check{alledges}\ifx\fgruler@type@item\fgruler@check\else% |
| 1178 |
\def\fgruler@check{alledges*}\ifx\fgruler@type@item\fgruler@check\else% |
| 1179 |
\def\fgruler@check{alledgesT}\ifx\fgruler@type@item\fgruler@check\else% |
| 1180 |
\def\fgruler@check{alledgesT*}\ifx\fgruler@type@item\fgruler@check\else% |
| 1181 |
\def\fgruler@check{none}\ifx\fgruler@type@item\fgruler@check\else% |
| 1182 |
\def\fgruler@check{user}\ifx\fgruler@type@item\fgruler@check\else% |
| 1183 |
\PackageError{fgruler}{\fgruler@type@item\space is invalid type}% |
| 1184 |
{Valid types:\MessageBreak |
| 1185 |
upperleft, upperright, lowerleft, lowerright,\MessageBreak |
| 1186 |
upperleftT, upperrightT, lowerleftT, lowerrightT,\MessageBreak |
| 1187 |
alledges, alledges*, alledgesT, alledgesT*, user, none}% |
| 1188 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi% |
| 1189 |
\g@addto@macro\fgruler@output{\csname fgruler@\fgruler@unit @##1@fg\endcsname}}% |
| 1190 |
\expandafter\docsvlist\expandafter{\fgruler@type}} |
| 1191 |
|
| 1192 |
\def\fgrulerratiocm#1#2{% |
| 1193 |
\ifx#1\@empty\else\def\fgruler@cm@ratio@i{#1}\fi% |
| 1194 |
\ifx#2\@empty\else\def\fgruler@cm@ratio@ii{#2}\fi% |
| 1195 |
\ignorespaces} |
| 1196 |
|
| 1197 |
\fgrulerratiocm{.5}{.75} |
| 1198 |
|
| 1199 |
\def\fgrulerratioin#1#2#3#4{% |
| 1200 |
\ifx#1\@empty\else\def\fgruler@in@ratio@i{#1}\fi% |
| 1201 |
\ifx#2\@empty\else\def\fgruler@in@ratio@ii{#2}\fi% |
| 1202 |
\ifx#3\@empty\else\def\fgruler@in@ratio@iii{#3}\fi% |
| 1203 |
\ifx#4\@empty\else\def\fgruler@in@ratio@iv{#4}\fi% |
| 1204 |
\ignorespaces} |
| 1205 |
|
| 1206 |
\fgrulerratioin{.25}{.375}{.625}{.75} |
| 1207 |
|
| 1208 |
\def\fgrulerthickcm#1#2#3{% |
| 1209 |
\ifx#1\@empty\else\def\fgruler@cm@thick@i{\linethickness{#1}}\fi% |
| 1210 |
\ifx#2\@empty\else\def\fgruler@cm@thick@ii{\linethickness{#2}}\fi% |
| 1211 |
\ifx#3\@empty\else\def\fgruler@cm@thick@iii{\linethickness{#3}}\fi% |
| 1212 |
\ignorespaces} |
| 1213 |
|
| 1214 |
\def\fgruler@cm@thick@i{} |
| 1215 |
\def\fgruler@cm@thick@ii{} |
| 1216 |
\def\fgruler@cm@thick@iii{} |
| 1217 |
|
| 1218 |
\def\fgrulerthickin#1#2#3#4#5{% |
| 1219 |
\ifx#1\@empty\else\def\fgruler@in@thick@i{\linethickness{#1}}\fi% |
| 1220 |
\ifx#2\@empty\else\def\fgruler@in@thick@ii{\linethickness{#2}}\fi% |
| 1221 |
\ifx#3\@empty\else\def\fgruler@in@thick@iii{\linethickness{#3}}\fi% |
| 1222 |
\ifx#4\@empty\else\def\fgruler@in@thick@iv{\linethickness{#4}}\fi% |
| 1223 |
\ifx#5\@empty\else\def\fgruler@in@thick@v{\linethickness{#5}}\fi% |
| 1224 |
\ignorespaces} |
| 1225 |
|
| 1226 |
\def\fgruler@in@thick@i{} |
| 1227 |
\def\fgruler@in@thick@ii{} |
| 1228 |
\def\fgruler@in@thick@iii{} |
| 1229 |
\def\fgruler@in@thick@iv{} |
| 1230 |
\def\fgruler@in@thick@v{} |
| 1231 |
|
| 1232 |
\def\fgrulercolorcm#1#2#3{% |
| 1233 |
\ifx#1\@empty\else\def\fgruler@cm@color@i{\color{#1}}\fi% |
| 1234 |
\ifx#2\@empty\else\def\fgruler@cm@color@ii{\color{#2}}\fi% |
| 1235 |
\ifx#3\@empty\else\def\fgruler@cm@color@iii{\color{#3}}\fi% |
| 1236 |
\ignorespaces} |
| 1237 |
|
| 1238 |
\def\fgruler@cm@color@i{} |
| 1239 |
\def\fgruler@cm@color@ii{} |
| 1240 |
\def\fgruler@cm@color@iii{} |
| 1241 |
|
| 1242 |
\def\fgrulercolorin#1#2#3#4#5{% |
| 1243 |
\ifx#1\@empty\else\def\fgruler@in@color@i{\color{#1}}\fi% |
| 1244 |
\ifx#2\@empty\else\def\fgruler@in@color@ii{\color{#2}}\fi% |
| 1245 |
\ifx#3\@empty\else\def\fgruler@in@color@iii{\color{#3}}\fi% |
| 1246 |
\ifx#4\@empty\else\def\fgruler@in@color@iv{\color{#4}}\fi% |
| 1247 |
\ifx#5\@empty\else\def\fgruler@in@color@v{\color{#5}}\fi% |
| 1248 |
\ignorespaces} |
| 1249 |
|
| 1250 |
\def\fgruler@in@color@i{} |
| 1251 |
\def\fgruler@in@color@ii{} |
| 1252 |
\def\fgruler@in@color@iii{} |
| 1253 |
\def\fgruler@in@color@iv{} |
| 1254 |
\def\fgruler@in@color@v{} |
| 1255 |
|
| 1256 |
\def\setfgruler#1{\setkeys{fgruler}{#1}\fgruler@activate@type\ignorespaces} |
| 1257 |
|
| 1258 |
\newdimen\fgruler@tempdima |
| 1259 |
\newdimen\fgruler@tempdimb |
| 1260 |
|
| 1261 |
\newcommand\fgruler@div[2]{% |
| 1262 |
\fgruler@tempdima=#1\relax\fgruler@tempdimb=\unitlength\relax |
| 1263 |
\fgruler@tempdimb=#2\fgruler@tempdimb\divide\fgruler@tempdima by \fgruler@tempdimb |
| 1264 |
\@tempcnta\fgruler@tempdima\advance\@tempcnta\@ne} |
| 1265 |
|
| 1266 |
\def\fgruler@check@param#1#2{% |
| 1267 |
\expandafter\def\expandafter\fgruler@param\expandafter{#1}% |
| 1268 |
\def\fgruler@check{cm}\ifx\fgruler@param\fgruler@check\else% |
| 1269 |
\def\fgruler@check{in}\ifx\fgruler@param\fgruler@check\else% |
| 1270 |
\PackageError{fgruler}{\fgruler@param\space is invalid parameter}{Valid parameters: cm, in}% |
| 1271 |
\fi\fi% |
| 1272 |
\expandafter\def\expandafter\fgruler@param\expandafter{#2}% |
| 1273 |
\def\fgruler@check{rightdown}\ifx\fgruler@param\fgruler@check\else% |
| 1274 |
\def\fgruler@check{rightup}\ifx\fgruler@param\fgruler@check\else% |
| 1275 |
\def\fgruler@check{leftdown}\ifx\fgruler@param\fgruler@check\else% |
| 1276 |
\def\fgruler@check{leftup}\ifx\fgruler@param\fgruler@check\else% |
| 1277 |
\def\fgruler@check{downright}\ifx\fgruler@param\fgruler@check\else% |
| 1278 |
\def\fgruler@check{downleft}\ifx\fgruler@param\fgruler@check\else% |
| 1279 |
\def\fgruler@check{upright}\ifx\fgruler@param\fgruler@check\else% |
| 1280 |
\def\fgruler@check{upleft}\ifx\fgruler@param\fgruler@check\else% |
| 1281 |
\def\fgruler@check{taperight}\ifx\fgruler@param\fgruler@check\else% |
| 1282 |
\def\fgruler@check{tapeleft}\ifx\fgruler@param\fgruler@check\else% |
| 1283 |
\PackageError{fgruler}{\fgruler@param\space is invalid parameter}% |
| 1284 |
{Valid parameters:\MessageBreak |
| 1285 |
rightdown, rightup, leftdown, leftup,\MessageBreak |
| 1286 |
downright, downleft, upright, upleft, taperight, tapeleft}% |
| 1287 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} |
| 1288 |
|
| 1289 |
\def\fgruler@check@param@#1#2{% |
| 1290 |
\expandafter\def\expandafter\fgruler@param\expandafter{#1}% |
| 1291 |
\def\fgruler@check{cm}\ifx\fgruler@param\fgruler@check\else% |
| 1292 |
\def\fgruler@check{in}\ifx\fgruler@param\fgruler@check\else% |
| 1293 |
\PackageError{fgruler}{\fgruler@param\space is invalid parameter}{Valid parameters: cm, in}% |
| 1294 |
\fi\fi% |
| 1295 |
\expandafter\def\expandafter\fgruler@param\expandafter{#2}% |
| 1296 |
\def\fgruler@check{upperleft}\ifx\fgruler@param\fgruler@check\else% |
| 1297 |
\def\fgruler@check{upperright}\ifx\fgruler@param\fgruler@check\else% |
| 1298 |
\def\fgruler@check{lowerleft}\ifx\fgruler@param\fgruler@check\else% |
| 1299 |
\def\fgruler@check{lowerright}\ifx\fgruler@param\fgruler@check\else% |
| 1300 |
\PackageError{fgruler}{\fgruler@param\space is invalid parameter}% |
| 1301 |
{Valid parameters:\MessageBreak |
| 1302 |
upperleft, upperright, lowerleft, lowerright}% |
| 1303 |
\fi\fi\fi\fi} |
| 1304 |
|
| 1305 |
\def\fgruler@check@param@@#1#2{% |
| 1306 |
\expandafter\def\expandafter\fgruler@param\expandafter{#1}% |
| 1307 |
\def\fgruler@check{cm}\ifx\fgruler@param\fgruler@check\else% |
| 1308 |
\def\fgruler@check{in}\ifx\fgruler@param\fgruler@check\else% |
| 1309 |
\PackageError{fgruler}{\fgruler@param\space is invalid parameter}{Valid parameters: cm, in}% |
| 1310 |
\fi\fi% |
| 1311 |
\expandafter\def\expandafter\fgruler@param\expandafter{#2}% |
| 1312 |
\def\fgruler@check{upperleft}\ifx\fgruler@param\fgruler@check\else% |
| 1313 |
\def\fgruler@check{upperright}\ifx\fgruler@param\fgruler@check\else% |
| 1314 |
\def\fgruler@check{lowerleft}\ifx\fgruler@param\fgruler@check\else% |
| 1315 |
\def\fgruler@check{lowerright}\ifx\fgruler@param\fgruler@check\else% |
| 1316 |
\def\fgruler@check{upperleftT}\ifx\fgruler@param\fgruler@check\else% |
| 1317 |
\def\fgruler@check{upperrightT}\ifx\fgruler@param\fgruler@check\else% |
| 1318 |
\def\fgruler@check{lowerleftT}\ifx\fgruler@param\fgruler@check\else% |
| 1319 |
\def\fgruler@check{lowerrightT}\ifx\fgruler@param\fgruler@check\else% |
| 1320 |
\def\fgruler@check{alledges}\ifx\fgruler@param\fgruler@check\else% |
| 1321 |
\def\fgruler@check{alledges*}\ifx\fgruler@param\fgruler@check\else% |
| 1322 |
\def\fgruler@check{alledgesT}\ifx\fgruler@param\fgruler@check\else% |
| 1323 |
\def\fgruler@check{alledgesT*}\ifx\fgruler@param\fgruler@check\else% |
| 1324 |
\def\fgruler@check{user}\ifx\fgruler@param\fgruler@check\else% |
| 1325 |
\PackageError{fgruler}{\fgruler@param\space is invalid type}% |
| 1326 |
{Valid types:\MessageBreak |
| 1327 |
upperleft, upperright, lowerleft, lowerright,\MessageBreak |
| 1328 |
upperleftT, upperrightT, lowerleftT, lowerrightT,\MessageBreak |
| 1329 |
alledges, alledges*, alledgesT, alledgesT*, user}% |
| 1330 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} |
| 1331 |
|
| 1332 |
\newcommand{\fgruler@ruler}[3][cm]{\fgruler@check@param{#1}{#2}\fgruler@intextsetting\csname fgruler@#1@#2@\endcsname{#3}} |
| 1333 |
\newcommand{\fgruler@ruler@}[3][cm]{\fgruler@check@param{#1}{#2}\fgruler@intextsetting\csname fgruler@#1@#2@@\endcsname{#3}} |
| 1334 |
\def\ruler{\@ifstar{\fgruler@ruler@}{\fgruler@ruler}} |
| 1335 |
|
| 1336 |
\newcommand{\fgruler@squareruler}[4][cm]{\fgruler@check@param@{#1}{#2}\fgruler@intextsetting\csname fgruler@#1@#2@\endcsname{#3}{#4}} |
| 1337 |
\newcommand{\fgruler@squareruler@}[4][cm]{\fgruler@check@param@{#1}{#2}\fgruler@intextsetting\csname fgruler@#1@#2@@\endcsname{#3}{#4}} |
| 1338 |
\def\squareruler{\@ifstar{\fgruler@squareruler@}{\fgruler@squareruler}} |
| 1339 |
|
| 1340 |
\newcommand{\fgruler@fgruler}[4][\fgruler@unit]{\fgruler@check@param@{#1}{#2}\g@addto@macro\fgruler@output@{\csname fgruler@#1@#2@fg@\endcsname{#3}{#4}}} |
| 1341 |
\newcommand{\fgruler@fgruler@}[2][]{\g@addto@macro\fgruler@output@{{\setkeys{fgruler}{#1}\fgruler@check@param@@{\fgruler@unit}{#2}\csname fgruler@\fgruler@unit @#2@fg\endcsname}}} |
| 1342 |
\def\fgruler{\@ifstar{\fgruler@fgruler@}{\fgruler@fgruler}} |
| 1343 |
|
| 1344 |
\def\fgrulercaptioncm#1{\def\fgruler@caption@cm{#1}\ignorespaces} |
| 1345 |
\def\fgruler@caption@cm{cm} |
| 1346 |
\def\fgrulercaptionin#1{\def\fgruler@caption@in{#1}\ignorespaces} |
| 1347 |
\def\fgruler@caption@in{inch} |
| 1348 |
|
| 1349 |
\newif\iffgruler@borderline |
| 1350 |
\def\fgrulernoborderline{\fgruler@borderlinefalse\ignorespaces} |
| 1351 |
\def\fgrulerborderline{\fgruler@borderlinetrue\ignorespaces} |
| 1352 |
\fgruler@borderlinetrue |
| 1353 |
|
| 1354 |
\newcounter{fgrulernum} |
| 1355 |
\newcounter{fgruler@check} |
| 1356 |
|
| 1357 |
\def\fgruler@ifnot@divisible@five#1{% |
| 1358 |
\setcounter{fgruler@check}{\value{fgrulernum}}% |
| 1359 |
\divide\value{fgruler@check}by5\relax% |
| 1360 |
\multiply\value{fgruler@check}by5\relax% |
| 1361 |
\ifnum\value{fgruler@check}=\value{fgrulernum}\else#1\fi\stepcounter{fgrulernum}} |
| 1362 |
|
| 1363 |
\def\fgruler@ifodd#1{\ifodd\value{fgrulernum}#1\fi\stepcounter{fgrulernum}} |
| 1364 |
|
| 1365 |
\def\fgrulerstartnum#1{\def\fgruler@startnumh{#1}\def\fgruler@startnumv{#1}\ignorespaces} |
| 1366 |
\def\fgrulerstartnumh#1{\def\fgruler@startnumh{#1}\ignorespaces} |
| 1367 |
\def\fgrulerstartnumv#1{\def\fgruler@startnumv{#1}\ignorespaces} |
| 1368 |
\def\fgruler@startnumh{0} |
| 1369 |
\def\fgruler@startnumv{0} |
| 1370 |
|
| 1371 |
\def\fgrulerdefnum#1{\def\thefgrulernum{#1}\ignorespaces} |
| 1372 |
|
| 1373 |
\def\fgruler@rotatebox#1#2{#2}% |
| 1374 |
|
| 1375 |
\def\rulernorotatenum{% |
| 1376 |
\ifx\@onlypreamble\@notprerr% |
| 1377 |
\def\fgruler@rotatebox##1##2{##2}% |
| 1378 |
\else\PackageError{fgruler}{Don't use \protect\rulernorotatenum\space in preamble!}{}\fi% |
| 1379 |
\ignorespaces} |
| 1380 |
|
| 1381 |
\def\rulerrotatenum{% |
| 1382 |
\ifx\@onlypreamble\@notprerr% |
| 1383 |
\def\fgruler@rotatebox##1##2{\rotatebox{##1}{##2}}% |
| 1384 |
\else\PackageError{fgruler}{Don't use \protect\rulerrotatenum\space in preamble!}{}\fi% |
| 1385 |
\ignorespaces} |
| 1386 |
|
| 1387 |
\def\fgrulerreset{% |
| 1388 |
\ifx\@onlypreamble\@notprerr% |
| 1389 |
\def\fgruler@cm@ratio@i{.5}% |
| 1390 |
\def\fgruler@cm@ratio@ii{.75}% |
| 1391 |
\def\fgruler@in@ratio@i{.25}% |
| 1392 |
\def\fgruler@in@ratio@ii{.375}% |
| 1393 |
\def\fgruler@in@ratio@iii{.625}% |
| 1394 |
\def\fgruler@in@ratio@iv{.75}% |
| 1395 |
\def\fgruler@cm@thick@i{}% |
| 1396 |
\def\fgruler@cm@thick@ii{}% |
| 1397 |
\def\fgruler@cm@thick@iii{}% |
| 1398 |
\def\fgruler@in@thick@i{}% |
| 1399 |
\def\fgruler@in@thick@ii{}% |
| 1400 |
\def\fgruler@in@thick@iii{}% |
| 1401 |
\def\fgruler@in@thick@iv{}% |
| 1402 |
\def\fgruler@in@thick@v{}% |
| 1403 |
\def\fgruler@cm@color@i{}% |
| 1404 |
\def\fgruler@cm@color@ii{}% |
| 1405 |
\def\fgruler@cm@color@iii{}% |
| 1406 |
\def\fgruler@in@color@i{}% |
| 1407 |
\def\fgruler@in@color@ii{}% |
| 1408 |
\def\fgruler@in@color@iii{}% |
| 1409 |
\def\fgruler@in@color@iv{}% |
| 1410 |
\def\fgruler@in@color@v{}% |
| 1411 |
\def\fgruler@rotatebox##1##2{\rotatebox{##1}{##2}}% |
| 1412 |
\def\fgruler@markthick@{.4pt}% |
| 1413 |
\def\fgruler@numfont@{\scriptsize\sffamily}% |
| 1414 |
\def\fgruler@color@{black}% |
| 1415 |
\def\fgruler@marklength@{2mm}% |
| 1416 |
\def\fgruler@numsep@{3pt}% |
| 1417 |
\def\fgruler@type{upperleft}% |
| 1418 |
\def\fgruler@unit{cm}% |
| 1419 |
\def\fgruler@markthick{.4pt}% |
| 1420 |
\def\fgruler@numfont{\scriptsize\sffamily}% |
| 1421 |
\def\fgruler@color{black}% |
| 1422 |
\def\fgruler@marklength{2mm}% |
| 1423 |
\def\fgruler@hshift{0pt}% |
| 1424 |
\def\fgruler@vshift{0pt}% |
| 1425 |
\def\fgruler@numsep{3pt}% |
| 1426 |
\def\thefgrulernum{\arabic{fgrulernum}}% |
| 1427 |
\def\fgruler@caption@cm{cm}% |
| 1428 |
\def\fgruler@caption@in{inch}% |
| 1429 |
\def\fgruler@startnumh{0}% |
| 1430 |
\def\fgruler@startnumv{0}% |
| 1431 |
\fgruler@borderlinetrue% |
| 1432 |
\fgruler@showframefalse% |
| 1433 |
\def\fgruler@output{\csname fgruler@\fgruler@unit @\fgruler@type @fg\endcsname}% |
| 1434 |
\else\PackageError{fgruler}{Don't use \protect\fgrulerreset\space in preamble!}{}\fi% |
| 1435 |
\ignorespaces} |
| 1436 |
|
| 1437 |
\AtEndPreamble{ |
| 1438 |
|
| 1439 |
\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}} |
| 1440 |
\@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}} |
| 1441 |
|
| 1442 |
\def\fgruler@rotatebox#1#2{\rotatebox{#1}{#2}} |
| 1443 |
|
| 1444 |
\iffgruler@nonefgrulers |
| 1445 |
|
| 1446 |
\renewcommand{\fgruler@fgruler}[4][]{} |
| 1447 |
\renewcommand{\fgruler@fgruler@}[2][]{} |
| 1448 |
|
| 1449 |
\else |
| 1450 |
|
| 1451 |
\@ifpackageloaded{eso-pic}{}{\RequirePackage{eso-pic}[2020/10/14]} |
| 1452 |
|
| 1453 |
\def\fgruler@frame{% |
| 1454 |
\begingroup |
| 1455 |
\fgruler@fgsetting |
| 1456 |
\fgruler@rulercolor% |
| 1457 |
\fgruler@markthickness% |
| 1458 |
\AtPageLowerLeft{% |
| 1459 |
\framebox(\paperwidth,\paperheight){}}% |
| 1460 |
\AtTextLowerLeft{% |
| 1461 |
\framebox(\textwidth,\textheight){}}% |
| 1462 |
\AtTextUpperLeft{% |
| 1463 |
\put(0,\headsep){% |
| 1464 |
\framebox(\textwidth,\headheight){}}}% |
| 1465 |
\AtTextLowerLeft{% |
| 1466 |
\put(0,-\footskip){% |
| 1467 |
\line(1,0){\textwidth}}}% |
| 1468 |
\AtTextLowerLeft{% |
| 1469 |
\fgruler@tempdima=\textwidth\advance\fgruler@tempdima\marginparsep% |
| 1470 |
\if@twoside |
| 1471 |
\ifodd\c@page\else |
| 1472 |
\if@mparswitch |
| 1473 |
\fgruler@tempdima=-\marginparsep\advance\fgruler@tempdima-\marginparwidth |
| 1474 |
\fi |
| 1475 |
\fi |
| 1476 |
\fi |
| 1477 |
\put(\fgruler@tempdima,0)% |
| 1478 |
{\framebox(\marginparwidth,\textheight){}}% |
| 1479 |
}% |
| 1480 |
\endgroup |
| 1481 |
} |
| 1482 |
|
| 1483 |
\def\fgruler@output@{} |
| 1484 |
|
| 1485 |
\ESO@isMEMOIR{% |
| 1486 |
\AddToHook{shipout/foreground}{% |
| 1487 |
\ESO@MEMOIR@corr |
| 1488 |
\put(\ESO@tempdima,\ESO@tempdimb){% |
| 1489 |
\iffgruler@showframe\fgruler@frame\fi% |
| 1490 |
\fgruler@output\fgruler@output@% |
| 1491 |
\global\let\fgruler@output@\@empty% |
| 1492 |
}% |
| 1493 |
}% |
| 1494 |
}{% |
| 1495 |
\AddToHook{shipout/foreground}{% |
| 1496 |
\put(0,\ESO@yoffsetI){% |
| 1497 |
\iffgruler@showframe\fgruler@frame\fi% |
| 1498 |
\fgruler@output\fgruler@output@% |
| 1499 |
\global\let\fgruler@output@\@empty% |
| 1500 |
}% |
| 1501 |
}% |
| 1502 |
} |
| 1503 |
|
| 1504 |
\fgruler@activate@type |
| 1505 |
|
| 1506 |
\fi |
| 1507 |
} |
| 1508 |
|
| 1509 |
%% RIGHTDOWN CM |
| 1510 |
\def\fgruler@cm@rightdown#1{% |
| 1511 |
\fgruler@rulercolor% |
| 1512 |
\fgruler@markthickness% |
| 1513 |
\fgruler@div{#1}{1}% |
| 1514 |
\setcounter{fgrulernum}{0}% |
| 1515 |
\multiput(0,0)(1,0){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(0,-1){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1516 |
\fgruler@div{#1}{5}% |
| 1517 |
\setcounter{fgrulernum}{0}% |
| 1518 |
\multiput(0,0)(5,0){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(0,-1){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1519 |
\fgruler@div{#1}{10}% |
| 1520 |
\multiput(0,0)(10,0){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(0,-1){\fgruler@marklth}}% |
| 1521 |
\iffgruler@borderline\put(-\@halfwidth,0){\line(1,0){#1+\@wholewidth}}\fi% \@wholewidth is current line thickness and \@halfwidth = 0.5\@wholewidth (see in latex.ltx) |
| 1522 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1523 |
\multiput(10,-\fgruler@sep)(10,0){\fgruler@tempdima}{\makebox(0,0)[t]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1524 |
|
| 1525 |
\def\fgruler@cm@rightdown@#1{% |
| 1526 |
\setlength{\unitlength}{1mm}% |
| 1527 |
\begin{picture}(#1,\fgruler@width)(0,-\fgruler@width)% |
| 1528 |
\fgruler@cm@rightdown{#1}% |
| 1529 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1530 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 1531 |
\ifdim#1>.5cm\put(5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 1532 |
\end{picture}} |
| 1533 |
|
| 1534 |
\def\fgruler@cm@rightdown@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@cm@rightdown@{#1}}} |
| 1535 |
|
| 1536 |
%% RIGHTDOWN IN |
| 1537 |
\def\fgruler@in@rightdown#1{% |
| 1538 |
\fgruler@rulercolor% |
| 1539 |
\fgruler@markthickness% |
| 1540 |
\fgruler@div{#1}{1}% |
| 1541 |
\setcounter{fgrulernum}{0}% |
| 1542 |
\multiput(0,0)(1,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(0,-1){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1543 |
\fgruler@div{#1}{2}% |
| 1544 |
\setcounter{fgrulernum}{0}% |
| 1545 |
\multiput(0,0)(2,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(0,-1){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1546 |
\fgruler@div{#1}{4}% |
| 1547 |
\setcounter{fgrulernum}{0}% |
| 1548 |
\multiput(0,0)(4,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(0,-1){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1549 |
\fgruler@div{#1}{8}% |
| 1550 |
\setcounter{fgrulernum}{0}% |
| 1551 |
\multiput(0,0)(8,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(0,-1){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1552 |
\fgruler@div{#1}{16}% |
| 1553 |
\multiput(0,0)(16,0){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(0,-1){\fgruler@marklth}}% |
| 1554 |
\iffgruler@borderline\put(-\@halfwidth,0){\line(1,0){#1+\@wholewidth}}\fi% |
| 1555 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1556 |
\multiput(16,-\fgruler@sep)(16,0){\fgruler@tempdima}{\makebox(0,0)[t]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1557 |
|
| 1558 |
\def\fgruler@in@rightdown@#1{% |
| 1559 |
\setlength{\unitlength}{.0625in}% |
| 1560 |
\begin{picture}(#1,\fgruler@width)(0,-\fgruler@width)% |
| 1561 |
\fgruler@in@rightdown{#1}% |
| 1562 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1563 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 1564 |
\ifdim#1>.5in\put(8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 1565 |
\end{picture}} |
| 1566 |
|
| 1567 |
\def\fgruler@in@rightdown@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@in@rightdown@{#1}}} |
| 1568 |
|
| 1569 |
%% RIGHTUP CM |
| 1570 |
\def\fgruler@cm@rightup#1{% |
| 1571 |
\fgruler@rulercolor% |
| 1572 |
\fgruler@markthickness% |
| 1573 |
\fgruler@div{#1}{1}% |
| 1574 |
\setcounter{fgrulernum}{0}% |
| 1575 |
\multiput(0,0)(1,0){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(0,1){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1576 |
\fgruler@div{#1}{5}% |
| 1577 |
\setcounter{fgrulernum}{0}% |
| 1578 |
\multiput(0,0)(5,0){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(0,1){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1579 |
\fgruler@div{#1}{10}% |
| 1580 |
\multiput(0,0)(10,0){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(0,1){\fgruler@marklth}}% |
| 1581 |
\iffgruler@borderline\put(-\@halfwidth,0){\line(1,0){#1+\@wholewidth}}\fi% |
| 1582 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1583 |
\multiput(10,\fgruler@sep)(10,0){\fgruler@tempdima}{\makebox(0,0)[b]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1584 |
|
| 1585 |
\def\fgruler@cm@rightup@#1{% |
| 1586 |
\setlength{\unitlength}{1mm}% |
| 1587 |
\begin{picture}(#1,\fgruler@width)% |
| 1588 |
\fgruler@cm@rightup{#1}% |
| 1589 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1590 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 1591 |
\ifdim#1>.5cm\put(5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 1592 |
\end{picture}} |
| 1593 |
|
| 1594 |
\def\fgruler@cm@rightup@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@cm@rightup@{#1}}} |
| 1595 |
|
| 1596 |
%% RIGHTUP IN |
| 1597 |
\def\fgruler@in@rightup#1{% |
| 1598 |
\fgruler@rulercolor% |
| 1599 |
\fgruler@markthickness% |
| 1600 |
\fgruler@div{#1}{1}% |
| 1601 |
\setcounter{fgrulernum}{0}% |
| 1602 |
\multiput(0,0)(1,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(0,1){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1603 |
\fgruler@div{#1}{2}% |
| 1604 |
\setcounter{fgrulernum}{0}% |
| 1605 |
\multiput(0,0)(2,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(0,1){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1606 |
\fgruler@div{#1}{4}% |
| 1607 |
\setcounter{fgrulernum}{0}% |
| 1608 |
\multiput(0,0)(4,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(0,1){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1609 |
\fgruler@div{#1}{8}% |
| 1610 |
\setcounter{fgrulernum}{0}% |
| 1611 |
\multiput(0,0)(8,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(0,1){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1612 |
\fgruler@div{#1}{16}% |
| 1613 |
\multiput(0,0)(16,0){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(0,1){\fgruler@marklth}}% |
| 1614 |
\iffgruler@borderline\put(-\@halfwidth,0){\line(1,0){#1+\@wholewidth}}\fi% |
| 1615 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1616 |
\multiput(16,\fgruler@sep)(16,0){\fgruler@tempdima}{\makebox(0,0)[b]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1617 |
|
| 1618 |
\def\fgruler@in@rightup@#1{% |
| 1619 |
\setlength{\unitlength}{.0625in}% |
| 1620 |
\begin{picture}(#1,\fgruler@width)% |
| 1621 |
\fgruler@in@rightup{#1}% |
| 1622 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1623 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 1624 |
\ifdim#1>.5in\put(8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 1625 |
\end{picture}} |
| 1626 |
|
| 1627 |
\def\fgruler@in@rightup@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@in@rightup@{#1}}} |
| 1628 |
|
| 1629 |
%% LEFTDOWN CM |
| 1630 |
\def\fgruler@cm@leftdown#1{% |
| 1631 |
\fgruler@rulercolor% |
| 1632 |
\fgruler@markthickness% |
| 1633 |
\fgruler@div{#1}{1}% |
| 1634 |
\setcounter{fgrulernum}{0}% |
| 1635 |
\multiput(0,0)(-1,0){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(0,-1){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1636 |
\fgruler@div{#1}{5}% |
| 1637 |
\setcounter{fgrulernum}{0}% |
| 1638 |
\multiput(0,0)(-5,0){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(0,-1){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1639 |
\fgruler@div{#1}{10}% |
| 1640 |
\multiput(0,0)(-10,0){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(0,-1){\fgruler@marklth}}% |
| 1641 |
\iffgruler@borderline\put(\@halfwidth,0){\line(-1,0){#1+\@wholewidth}}\fi% |
| 1642 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1643 |
\multiput(-10,-\fgruler@sep)(-10,0){\fgruler@tempdima}{\makebox(0,0)[t]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1644 |
|
| 1645 |
\def\fgruler@cm@leftdown@#1{% |
| 1646 |
\setlength{\unitlength}{1mm}% |
| 1647 |
\begin{picture}(#1,\fgruler@width)(-#1,-\fgruler@width)% |
| 1648 |
\fgruler@cm@leftdown{#1}% |
| 1649 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1650 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 1651 |
\ifdim#1>.5cm\put(-5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 1652 |
\end{picture}} |
| 1653 |
|
| 1654 |
\def\fgruler@cm@leftdown@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@cm@leftdown@{#1}}} |
| 1655 |
|
| 1656 |
%% LEFTDOWN IN |
| 1657 |
\def\fgruler@in@leftdown#1{% |
| 1658 |
\fgruler@rulercolor% |
| 1659 |
\fgruler@markthickness% |
| 1660 |
\fgruler@div{#1}{1}% |
| 1661 |
\setcounter{fgrulernum}{0}% |
| 1662 |
\multiput(0,0)(-1,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(0,-1){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1663 |
\fgruler@div{#1}{2}% |
| 1664 |
\setcounter{fgrulernum}{0}% |
| 1665 |
\multiput(0,0)(-2,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(0,-1){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1666 |
\fgruler@div{#1}{4}% |
| 1667 |
\setcounter{fgrulernum}{0}% |
| 1668 |
\multiput(0,0)(-4,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(0,-1){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1669 |
\fgruler@div{#1}{8}% |
| 1670 |
\setcounter{fgrulernum}{0}% |
| 1671 |
\multiput(0,0)(-8,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(0,-1){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1672 |
\fgruler@div{#1}{16}% |
| 1673 |
\multiput(0,0)(-16,0){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(0,-1){\fgruler@marklth}}% |
| 1674 |
\iffgruler@borderline\put(\@halfwidth,0){\line(-1,0){#1+\@wholewidth}}\fi% |
| 1675 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1676 |
\multiput(-16,-\fgruler@sep)(-16,0){\fgruler@tempdima}{\makebox(0,0)[t]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1677 |
|
| 1678 |
\def\fgruler@in@leftdown@#1{% |
| 1679 |
\setlength{\unitlength}{.0625in}% |
| 1680 |
\begin{picture}(#1,\fgruler@width)(-#1,-\fgruler@width)% |
| 1681 |
\fgruler@in@leftdown{#1}% |
| 1682 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1683 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 1684 |
\ifdim#1>.5in\put(-8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 1685 |
\end{picture}} |
| 1686 |
|
| 1687 |
\def\fgruler@in@leftdown@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@in@leftdown@{#1}}} |
| 1688 |
|
| 1689 |
%% LEFTUP CM |
| 1690 |
\def\fgruler@cm@leftup#1{% |
| 1691 |
\fgruler@rulercolor% |
| 1692 |
\fgruler@markthickness% |
| 1693 |
\fgruler@div{#1}{1}% |
| 1694 |
\setcounter{fgrulernum}{0}% |
| 1695 |
\multiput(0,0)(-1,0){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(0,1){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1696 |
\fgruler@div{#1}{5}% |
| 1697 |
\setcounter{fgrulernum}{0}% |
| 1698 |
\multiput(0,0)(-5,0){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(0,1){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1699 |
\fgruler@div{#1}{10}% |
| 1700 |
\multiput(0,0)(-10,0){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(0,1){\fgruler@marklth}}% |
| 1701 |
\iffgruler@borderline\put(\@halfwidth,0){\line(-1,0){#1+\@wholewidth}}\fi% |
| 1702 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1703 |
\multiput(-10,\fgruler@sep)(-10,0){\fgruler@tempdima}{\makebox(0,0)[b]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1704 |
|
| 1705 |
\def\fgruler@cm@leftup@#1{% |
| 1706 |
\setlength{\unitlength}{1mm}% |
| 1707 |
\begin{picture}(#1,\fgruler@width)(-#1,0)% |
| 1708 |
\fgruler@cm@leftup{#1}% |
| 1709 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1710 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 1711 |
\ifdim#1>.5cm\put(-5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 1712 |
\end{picture}} |
| 1713 |
|
| 1714 |
\def\fgruler@cm@leftup@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@cm@leftup@{#1}}} |
| 1715 |
|
| 1716 |
%% LEFTUP IN |
| 1717 |
\def\fgruler@in@leftup#1{% |
| 1718 |
\fgruler@rulercolor% |
| 1719 |
\fgruler@markthickness% |
| 1720 |
\fgruler@div{#1}{1}% |
| 1721 |
\setcounter{fgrulernum}{0}% |
| 1722 |
\multiput(0,0)(-1,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(0,1){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1723 |
\fgruler@div{#1}{2}% |
| 1724 |
\setcounter{fgrulernum}{0}% |
| 1725 |
\multiput(0,0)(-2,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(0,1){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1726 |
\fgruler@div{#1}{4}% |
| 1727 |
\setcounter{fgrulernum}{0}% |
| 1728 |
\multiput(0,0)(-4,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(0,1){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1729 |
\fgruler@div{#1}{8}% |
| 1730 |
\setcounter{fgrulernum}{0}% |
| 1731 |
\multiput(0,0)(-8,0){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(0,1){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1732 |
\fgruler@div{#1}{16}% |
| 1733 |
\multiput(0,0)(-16,0){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(0,1){\fgruler@marklth}}% |
| 1734 |
\iffgruler@borderline\put(\@halfwidth,0){\line(-1,0){#1+\@wholewidth}}\fi% |
| 1735 |
\setcounter{fgrulernum}{\fgruler@startnumh}\stepcounter{fgrulernum}% |
| 1736 |
\multiput(-16,\fgruler@sep)(-16,0){\fgruler@tempdima}{\makebox(0,0)[b]{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}} |
| 1737 |
|
| 1738 |
\def\fgruler@in@leftup@#1{% |
| 1739 |
\setlength{\unitlength}{.0625in}% |
| 1740 |
\begin{picture}(#1,\fgruler@width)(-#1,0)% |
| 1741 |
\fgruler@in@leftup{#1}% |
| 1742 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1743 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 1744 |
\ifdim#1>.5in\put(-8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 1745 |
\end{picture}} |
| 1746 |
|
| 1747 |
\def\fgruler@in@leftup@@#1{\leavevmode\hbox{}\lower\fgruler@width\hbox{\fgruler@in@leftup@{#1}}} |
| 1748 |
|
| 1749 |
%% DOWNRIGHT CM |
| 1750 |
\def\fgruler@cm@downright#1{% |
| 1751 |
\fgruler@rulercolor% |
| 1752 |
\fgruler@markthickness% |
| 1753 |
\fgruler@div{#1}{1}% |
| 1754 |
\setcounter{fgrulernum}{0}% |
| 1755 |
\multiput(0,0)(0,-1){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(1,0){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1756 |
\fgruler@div{#1}{5}% |
| 1757 |
\setcounter{fgrulernum}{0}% |
| 1758 |
\multiput(0,0)(0,-5){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(1,0){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1759 |
\fgruler@div{#1}{10}% |
| 1760 |
\multiput(0,0)(0,-10){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(1,0){\fgruler@marklth}}% |
| 1761 |
\iffgruler@borderline\put(0,\@halfwidth){\line(0,-1){#1+\@wholewidth}}\fi% |
| 1762 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1763 |
\multiput(\fgruler@sep,-10)(0,-10){\fgruler@tempdima}{\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1764 |
|
| 1765 |
\def\fgruler@cm@downright@#1{% |
| 1766 |
\setlength{\unitlength}{1mm}% |
| 1767 |
\begin{picture}(\fgruler@width,#1)(0,-#1)% |
| 1768 |
\fgruler@cm@downright{#1}% |
| 1769 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1770 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum}}}% |
| 1771 |
\ifdim#1>.5cm\put(\fgruler@sep,-5){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\fgruler@caption@cm}}}\fi% |
| 1772 |
\end{picture}} |
| 1773 |
|
| 1774 |
\def\fgruler@cm@downright@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@cm@downright@{#1}}} |
| 1775 |
|
| 1776 |
%% DOWNRIGHT IN |
| 1777 |
\def\fgruler@in@downright#1{% |
| 1778 |
\fgruler@rulercolor% |
| 1779 |
\fgruler@markthickness% |
| 1780 |
\fgruler@div{#1}{1}% |
| 1781 |
\setcounter{fgrulernum}{0}% |
| 1782 |
\multiput(0,0)(0,-1){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(1,0){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1783 |
\fgruler@div{#1}{2}% |
| 1784 |
\setcounter{fgrulernum}{0}% |
| 1785 |
\multiput(0,0)(0,-2){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(1,0){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1786 |
\fgruler@div{#1}{4}% |
| 1787 |
\setcounter{fgrulernum}{0}% |
| 1788 |
\multiput(0,0)(0,-4){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(1,0){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1789 |
\fgruler@div{#1}{8}% |
| 1790 |
\setcounter{fgrulernum}{0}% |
| 1791 |
\multiput(0,0)(0,-8){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(1,0){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1792 |
\fgruler@div{#1}{16}% |
| 1793 |
\multiput(0,0)(0,-16){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(1,0){\fgruler@marklth}}% |
| 1794 |
\iffgruler@borderline\put(0,\@halfwidth){\line(0,-1){#1+\@wholewidth}}\fi% |
| 1795 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1796 |
\multiput(\fgruler@sep,-16)(0,-16){\fgruler@tempdima}{\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1797 |
|
| 1798 |
\def\fgruler@in@downright@#1{% |
| 1799 |
\setlength{\unitlength}{.0625in}% |
| 1800 |
\begin{picture}(\fgruler@width,#1)(0,-#1)% |
| 1801 |
\fgruler@in@downright{#1}% |
| 1802 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1803 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum}}}% |
| 1804 |
\ifdim#1>.5in\put(\fgruler@sep,-8){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\fgruler@caption@in}}}\fi% |
| 1805 |
\end{picture}} |
| 1806 |
|
| 1807 |
\def\fgruler@in@downright@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@in@downright@{#1}}} |
| 1808 |
|
| 1809 |
%% DOWNLEFT CM |
| 1810 |
\def\fgruler@cm@downleft#1{% |
| 1811 |
\fgruler@rulercolor% |
| 1812 |
\fgruler@markthickness% |
| 1813 |
\fgruler@div{#1}{1}% |
| 1814 |
\setcounter{fgrulernum}{0}% |
| 1815 |
\multiput(0,0)(0,-1){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(-1,0){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1816 |
\fgruler@div{#1}{5}% |
| 1817 |
\setcounter{fgrulernum}{0}% |
| 1818 |
\multiput(0,0)(0,-5){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(-1,0){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1819 |
\fgruler@div{#1}{10}% |
| 1820 |
\multiput(0,0)(0,-10){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(-1,0){\fgruler@marklth}}% |
| 1821 |
\iffgruler@borderline\put(0,\@halfwidth){\line(0,-1){#1+\@wholewidth}}\fi% |
| 1822 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1823 |
\multiput(-\fgruler@sep,-10)(0,-10){\fgruler@tempdima}{\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1824 |
|
| 1825 |
\def\fgruler@cm@downleft@#1{% |
| 1826 |
\setlength{\unitlength}{1mm}% |
| 1827 |
\begin{picture}(\fgruler@width,#1)(-\fgruler@width,-#1)% |
| 1828 |
\fgruler@cm@downleft{#1}% |
| 1829 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1830 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum}}}% |
| 1831 |
\ifdim#1>.5cm\put(-\fgruler@sep,-5){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\fgruler@caption@cm}}}\fi% |
| 1832 |
\end{picture}} |
| 1833 |
|
| 1834 |
\def\fgruler@cm@downleft@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@cm@downleft@{#1}}} |
| 1835 |
|
| 1836 |
%% DOWNLEFT IN |
| 1837 |
\def\fgruler@in@downleft#1{% |
| 1838 |
\fgruler@rulercolor% |
| 1839 |
\fgruler@markthickness% |
| 1840 |
\fgruler@div{#1}{1}% |
| 1841 |
\setcounter{fgrulernum}{0}% |
| 1842 |
\multiput(0,0)(0,-1){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(-1,0){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1843 |
\fgruler@div{#1}{2}% |
| 1844 |
\setcounter{fgrulernum}{0}% |
| 1845 |
\multiput(0,0)(0,-2){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(-1,0){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1846 |
\fgruler@div{#1}{4}% |
| 1847 |
\setcounter{fgrulernum}{0}% |
| 1848 |
\multiput(0,0)(0,-4){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(-1,0){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1849 |
\fgruler@div{#1}{8}% |
| 1850 |
\setcounter{fgrulernum}{0}% |
| 1851 |
\multiput(0,0)(0,-8){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(-1,0){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1852 |
\fgruler@div{#1}{16}% |
| 1853 |
\multiput(0,0)(0,-16){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(-1,0){\fgruler@marklth}}% |
| 1854 |
\iffgruler@borderline\put(0,\@halfwidth){\line(0,-1){#1+\@wholewidth}}\fi% |
| 1855 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1856 |
\multiput(-\fgruler@sep,-16)(0,-16){\fgruler@tempdima}{\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1857 |
|
| 1858 |
\def\fgruler@in@downleft@#1{% |
| 1859 |
\setlength{\unitlength}{.0625in}% |
| 1860 |
\begin{picture}(\fgruler@width,#1)(-\fgruler@width,-#1)% |
| 1861 |
\fgruler@in@downleft{#1}% |
| 1862 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1863 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum}}}% |
| 1864 |
\ifdim#1>.5in\put(-\fgruler@sep,-8){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\fgruler@caption@in}}}\fi% |
| 1865 |
\end{picture}} |
| 1866 |
|
| 1867 |
\def\fgruler@in@downleft@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@in@downleft@{#1}}} |
| 1868 |
|
| 1869 |
%% UPRIGHT CM |
| 1870 |
\def\fgruler@cm@upright#1{% |
| 1871 |
\fgruler@rulercolor% |
| 1872 |
\fgruler@markthickness% |
| 1873 |
\fgruler@div{#1}{1}% |
| 1874 |
\setcounter{fgrulernum}{0}% |
| 1875 |
\multiput(0,0)(0,1){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(1,0){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1876 |
\fgruler@div{#1}{5}% |
| 1877 |
\setcounter{fgrulernum}{0}% |
| 1878 |
\multiput(0,0)(0,5){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(1,0){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1879 |
\fgruler@div{#1}{10}% |
| 1880 |
\multiput(0,0)(0,10){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(1,0){\fgruler@marklth}}% |
| 1881 |
\iffgruler@borderline\put(0,-\@halfwidth){\line(0,1){#1+\@wholewidth}}\fi% |
| 1882 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1883 |
\multiput(\fgruler@sep,10)(0,10){\fgruler@tempdima}{\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1884 |
|
| 1885 |
\def\fgruler@cm@upright@#1{% |
| 1886 |
\setlength{\unitlength}{1mm}% |
| 1887 |
\begin{picture}(\fgruler@width,#1)% |
| 1888 |
\fgruler@cm@upright{#1}% |
| 1889 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1890 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum}}}% |
| 1891 |
\ifdim#1>.5cm\put(\fgruler@sep,5){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\fgruler@caption@cm}}}\fi% |
| 1892 |
\end{picture}} |
| 1893 |
|
| 1894 |
\def\fgruler@cm@upright@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@cm@upright@{#1}}} |
| 1895 |
|
| 1896 |
%% UPRIGHT IN |
| 1897 |
\def\fgruler@in@upright#1{% |
| 1898 |
\fgruler@rulercolor% |
| 1899 |
\fgruler@markthickness% |
| 1900 |
\fgruler@div{#1}{1}% |
| 1901 |
\setcounter{fgrulernum}{0}% |
| 1902 |
\multiput(0,0)(0,1){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(1,0){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1903 |
\fgruler@div{#1}{2}% |
| 1904 |
\setcounter{fgrulernum}{0}% |
| 1905 |
\multiput(0,0)(0,2){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(1,0){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1906 |
\fgruler@div{#1}{4}% |
| 1907 |
\setcounter{fgrulernum}{0}% |
| 1908 |
\multiput(0,0)(0,4){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(1,0){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1909 |
\fgruler@div{#1}{8}% |
| 1910 |
\setcounter{fgrulernum}{0}% |
| 1911 |
\multiput(0,0)(0,8){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(1,0){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1912 |
\fgruler@div{#1}{16}% |
| 1913 |
\multiput(0,0)(0,16){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(1,0){\fgruler@marklth}}% |
| 1914 |
\iffgruler@borderline\put(0,-\@halfwidth){\line(0,1){#1+\@wholewidth}}\fi% |
| 1915 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1916 |
\multiput(\fgruler@sep,16)(0,16){\fgruler@tempdima}{\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1917 |
|
| 1918 |
\def\fgruler@in@upright@#1{% |
| 1919 |
\setlength{\unitlength}{.0625in}% |
| 1920 |
\begin{picture}(\fgruler@width,#1)% |
| 1921 |
\fgruler@in@upright{#1}% |
| 1922 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1923 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\thefgrulernum}}}% |
| 1924 |
\ifdim#1>.5in\put(\fgruler@sep,8){\makebox(0,0)[l]{\fgruler@rotatebox{90}{\fgruler@font@\fgruler@caption@in}}}\fi% |
| 1925 |
\end{picture}} |
| 1926 |
|
| 1927 |
\def\fgruler@in@upright@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@in@upright@{#1}}} |
| 1928 |
|
| 1929 |
%% UPLEFT CM |
| 1930 |
\def\fgruler@cm@upleft#1{% |
| 1931 |
\fgruler@rulercolor% |
| 1932 |
\fgruler@markthickness% |
| 1933 |
\fgruler@div{#1}{1}% |
| 1934 |
\setcounter{fgrulernum}{0}% |
| 1935 |
\multiput(0,0)(0,1){\@tempcnta}{\fgruler@ifnot@divisible@five{\fgruler@cm@thick@i\fgruler@cm@color@i\line(-1,0){\fgruler@cm@ratio@i\fgruler@marklth}}}% |
| 1936 |
\fgruler@div{#1}{5}% |
| 1937 |
\setcounter{fgrulernum}{0}% |
| 1938 |
\multiput(0,0)(0,5){\@tempcnta}{\fgruler@ifodd{\fgruler@cm@thick@ii\fgruler@cm@color@ii\line(-1,0){\fgruler@cm@ratio@ii\fgruler@marklth}}}% |
| 1939 |
\fgruler@div{#1}{10}% |
| 1940 |
\multiput(0,0)(0,10){\@tempcnta}{\fgruler@cm@thick@iii\fgruler@cm@color@iii\line(-1,0){\fgruler@marklth}}% |
| 1941 |
\iffgruler@borderline\put(0,-\@halfwidth){\line(0,1){#1+\@wholewidth}}\fi% |
| 1942 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1943 |
\multiput(-\fgruler@sep,10)(0,10){\fgruler@tempdima}{\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1944 |
|
| 1945 |
\def\fgruler@cm@upleft@#1{% |
| 1946 |
\setlength{\unitlength}{1mm}% |
| 1947 |
\begin{picture}(\fgruler@width,#1)(-\fgruler@width,0)% |
| 1948 |
\fgruler@cm@upleft{#1}% |
| 1949 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1950 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum}}}% |
| 1951 |
\ifdim#1>.5cm\put(-\fgruler@sep,5){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\fgruler@caption@cm}}}\fi% |
| 1952 |
\end{picture}} |
| 1953 |
|
| 1954 |
\def\fgruler@cm@upleft@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@cm@upleft@{#1}}} |
| 1955 |
|
| 1956 |
%% UPLEFT IN |
| 1957 |
\def\fgruler@in@upleft#1{% |
| 1958 |
\fgruler@rulercolor% |
| 1959 |
\fgruler@markthickness% |
| 1960 |
\fgruler@div{#1}{1}% |
| 1961 |
\setcounter{fgrulernum}{0}% |
| 1962 |
\multiput(0,0)(0,1){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@i\fgruler@in@color@i\line(-1,0){\fgruler@in@ratio@i\fgruler@marklth}}}% |
| 1963 |
\fgruler@div{#1}{2}% |
| 1964 |
\setcounter{fgrulernum}{0}% |
| 1965 |
\multiput(0,0)(0,2){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@ii\fgruler@in@color@ii\line(-1,0){\fgruler@in@ratio@ii\fgruler@marklth}}}% |
| 1966 |
\fgruler@div{#1}{4}% |
| 1967 |
\setcounter{fgrulernum}{0}% |
| 1968 |
\multiput(0,0)(0,4){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iii\fgruler@in@color@iii\line(-1,0){\fgruler@in@ratio@iii\fgruler@marklth}}}% |
| 1969 |
\fgruler@div{#1}{8}% |
| 1970 |
\setcounter{fgrulernum}{0}% |
| 1971 |
\multiput(0,0)(0,8){\@tempcnta}{\fgruler@ifodd{\fgruler@in@thick@iv\fgruler@in@color@iv\line(-1,0){\fgruler@in@ratio@iv\fgruler@marklth}}}% |
| 1972 |
\fgruler@div{#1}{16}% |
| 1973 |
\multiput(0,0)(0,16){\@tempcnta}{\fgruler@in@thick@v\fgruler@in@color@v\line(-1,0){\fgruler@marklth}}% |
| 1974 |
\iffgruler@borderline\put(0,-\@halfwidth){\line(0,1){#1+\@wholewidth}}\fi% |
| 1975 |
\setcounter{fgrulernum}{\fgruler@startnumv}\stepcounter{fgrulernum}% |
| 1976 |
\multiput(-\fgruler@sep,16)(0,16){\fgruler@tempdima}{\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum\stepcounter{fgrulernum}}}}} |
| 1977 |
|
| 1978 |
\def\fgruler@in@upleft@#1{% |
| 1979 |
\setlength{\unitlength}{.0625in}% |
| 1980 |
\begin{picture}(\fgruler@width,#1)(-\fgruler@width,0)% |
| 1981 |
\fgruler@in@upleft{#1}% |
| 1982 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 1983 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\thefgrulernum}}}% |
| 1984 |
\ifdim#1>.5in\put(-\fgruler@sep,8){\makebox(0,0)[r]{\fgruler@rotatebox{-90}{\fgruler@font@\fgruler@caption@in}}}\fi% |
| 1985 |
\end{picture}} |
| 1986 |
|
| 1987 |
\def\fgruler@in@upleft@@#1{\leavevmode\hbox{}\lower#1\hbox{\fgruler@in@upleft@{#1}}} |
| 1988 |
|
| 1989 |
%% TAPERIGHT CM |
| 1990 |
\def\fgruler@cm@taperight@#1{% |
| 1991 |
\setlength{\unitlength}{1mm}% |
| 1992 |
\begin{picture}(#1,\fgruler@width+\fgruler@sep)% |
| 1993 |
\fgruler@cm@rightup{#1}% |
| 1994 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 1995 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 1996 |
\ifdim#1>.5cm\put(5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 1997 |
\def\thefgrulernum{}% |
| 1998 |
\put(0,\fgruler@width+\fgruler@sep){\fgruler@cm@rightdown{#1}}% |
| 1999 |
\end{picture}} |
| 2000 |
|
| 2001 |
\def\fgruler@cm@taperight@@#1{\leavevmode\hbox{}\lower\dimexpr |
| 2002 |
\fgruler@width+\fgruler@sep\relax\hbox{\fgruler@cm@taperight@{#1}}} |
| 2003 |
|
| 2004 |
%% TAPERIGHT IN |
| 2005 |
\def\fgruler@in@taperight@#1{% |
| 2006 |
\setlength{\unitlength}{.0625in}% |
| 2007 |
\begin{picture}(#1,\fgruler@width+\fgruler@sep)% |
| 2008 |
\fgruler@in@rightup{#1}% |
| 2009 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2010 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2011 |
\ifdim#1>.5in\put(8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 2012 |
\def\thefgrulernum{}% |
| 2013 |
\put(0,\fgruler@width+\fgruler@sep){\fgruler@in@rightdown{#1}}% |
| 2014 |
\end{picture}} |
| 2015 |
|
| 2016 |
\def\fgruler@in@taperight@@#1{\leavevmode\hbox{}\lower\dimexpr |
| 2017 |
\fgruler@width+\fgruler@sep\relax\hbox{\fgruler@in@taperight@{#1}}} |
| 2018 |
|
| 2019 |
%% TAPELEFT CM |
| 2020 |
\def\fgruler@cm@tapeleft@#1{% |
| 2021 |
\setlength{\unitlength}{1mm}% |
| 2022 |
\begin{picture}(#1,\fgruler@width+\fgruler@sep)(-#1,0)% |
| 2023 |
\fgruler@cm@leftup{#1}% |
| 2024 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2025 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2026 |
\ifdim#1>.5cm\put(-5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 2027 |
\def\thefgrulernum{}% |
| 2028 |
\put(0,\fgruler@width+\fgruler@sep){\fgruler@cm@leftdown{#1}}% |
| 2029 |
\end{picture}} |
| 2030 |
|
| 2031 |
\def\fgruler@cm@tapeleft@@#1{\leavevmode\hbox{}\lower\dimexpr |
| 2032 |
\fgruler@width+\fgruler@sep\relax\hbox{\fgruler@cm@tapeleft@{#1}}} |
| 2033 |
|
| 2034 |
%% TAPELEFT IN |
| 2035 |
\def\fgruler@in@tapeleft@#1{% |
| 2036 |
\setlength{\unitlength}{.0625in}% |
| 2037 |
\begin{picture}(#1,\fgruler@width+\fgruler@sep)(-#1,0)% |
| 2038 |
\fgruler@in@leftup{#1}% |
| 2039 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2040 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2041 |
\ifdim#1>.5in\put(-8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 2042 |
\def\thefgrulernum{}% |
| 2043 |
\put(0,\fgruler@width+\fgruler@sep){\fgruler@in@leftdown{#1}}% |
| 2044 |
\end{picture}} |
| 2045 |
|
| 2046 |
\def\fgruler@in@tapeleft@@#1{\leavevmode\hbox{}\lower\dimexpr |
| 2047 |
\fgruler@width+\fgruler@sep\relax\hbox{\fgruler@in@tapeleft@{#1}}} |
| 2048 |
|
| 2049 |
%% UPPERLEFT CM |
| 2050 |
\def\fgruler@cm@upperleft@#1#2{% |
| 2051 |
\setlength{\unitlength}{1mm}% |
| 2052 |
\begin{picture}(#1,#2)(0,-#2)% |
| 2053 |
\fgruler@cm@rightdown{#1}% |
| 2054 |
\fgruler@cm@downright{#2}% |
| 2055 |
\ifdim#1>.5cm\put(5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 2056 |
\end{picture}} |
| 2057 |
|
| 2058 |
\def\fgruler@cm@upperleft@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@cm@upperleft@{#1}{#2}}} |
| 2059 |
|
| 2060 |
\def\fgruler@cm@upperleft@fg@#1#2{% |
| 2061 |
\begingroup% |
| 2062 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2063 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2064 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2065 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2066 |
\fgruler@fgsetting% |
| 2067 |
\AtPageLowerLeft{\put(#1,0){% |
| 2068 |
\fgruler@cm@upperleft@{\fgruler@fg@width}{\fgruler@fg@height}}}% |
| 2069 |
\endgroup} |
| 2070 |
|
| 2071 |
\def\fgruler@cm@upperleft@fg{\fgruler@cm@upperleft@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2072 |
|
| 2073 |
%% UPPERLEFT IN |
| 2074 |
\def\fgruler@in@upperleft@#1#2{% |
| 2075 |
\setlength{\unitlength}{.0625in}% |
| 2076 |
\begin{picture}(#1,#2)(0,-#2)% |
| 2077 |
\fgruler@in@rightdown{#1}% |
| 2078 |
\fgruler@in@downright{#2}% |
| 2079 |
\ifdim#1>.5in\put(8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 2080 |
\end{picture}} |
| 2081 |
|
| 2082 |
\def\fgruler@in@upperleft@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@in@upperleft@{#1}{#2}}} |
| 2083 |
|
| 2084 |
\def\fgruler@in@upperleft@fg@#1#2{% |
| 2085 |
\begingroup% |
| 2086 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2087 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2088 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2089 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2090 |
\fgruler@fgsetting% |
| 2091 |
\AtPageLowerLeft{\put(#1,0){% |
| 2092 |
\fgruler@in@upperleft@{\fgruler@fg@width}{\fgruler@fg@height}}}% |
| 2093 |
\endgroup} |
| 2094 |
|
| 2095 |
\def\fgruler@in@upperleft@fg{\fgruler@in@upperleft@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2096 |
|
| 2097 |
%% UPPERRIGHT CM |
| 2098 |
\def\fgruler@cm@upperright@#1#2{% |
| 2099 |
\setlength{\unitlength}{1mm}% |
| 2100 |
\begin{picture}(#1,#2)(-#1,-#2)% |
| 2101 |
\fgruler@cm@leftdown{#1}% |
| 2102 |
\fgruler@cm@downleft{#2}% |
| 2103 |
\ifdim#1>.5cm\put(-5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 2104 |
\end{picture}} |
| 2105 |
|
| 2106 |
\def\fgruler@cm@upperright@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@cm@upperright@{#1}{#2}}} |
| 2107 |
|
| 2108 |
\def\fgruler@cm@upperright@fg@#1#2{% |
| 2109 |
\begingroup% |
| 2110 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2111 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2112 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2113 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2114 |
\fgruler@fgsetting% |
| 2115 |
\AtPageLowerLeft{\fgruler@cm@upperright@{\fgruler@fg@width}{\fgruler@fg@height}}% |
| 2116 |
\endgroup} |
| 2117 |
|
| 2118 |
\def\fgruler@cm@upperright@fg{\fgruler@cm@upperright@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2119 |
|
| 2120 |
%% UPPERRIGHT IN |
| 2121 |
\def\fgruler@in@upperright@#1#2{% |
| 2122 |
\setlength{\unitlength}{.0625in}% |
| 2123 |
\begin{picture}(#1,#2)(-#1,-#2)% |
| 2124 |
\fgruler@in@leftdown{#1}% |
| 2125 |
\fgruler@in@downleft{#2}% |
| 2126 |
\ifdim#1>.5in\put(-8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 2127 |
\end{picture}} |
| 2128 |
|
| 2129 |
\def\fgruler@in@upperright@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@in@upperright@{#1}{#2}}} |
| 2130 |
|
| 2131 |
\def\fgruler@in@upperright@fg@#1#2{% |
| 2132 |
\begingroup% |
| 2133 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2134 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2135 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2136 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2137 |
\fgruler@fgsetting% |
| 2138 |
\AtPageLowerLeft{\fgruler@in@upperright@{\fgruler@fg@width}{\fgruler@fg@height}}% |
| 2139 |
\endgroup} |
| 2140 |
|
| 2141 |
\def\fgruler@in@upperright@fg{\fgruler@in@upperright@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2142 |
|
| 2143 |
%% LOWERLEFT CM |
| 2144 |
\def\fgruler@cm@lowerleft@#1#2{% |
| 2145 |
\setlength{\unitlength}{1mm}% |
| 2146 |
\begin{picture}(#1,#2)% |
| 2147 |
\fgruler@cm@rightup{#1}% |
| 2148 |
\fgruler@cm@upright{#2}% |
| 2149 |
\ifdim#1>.5cm\put(5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 2150 |
\end{picture}} |
| 2151 |
|
| 2152 |
\def\fgruler@cm@lowerleft@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@cm@lowerleft@{#1}{#2}}} |
| 2153 |
|
| 2154 |
\def\fgruler@cm@lowerleft@fg@#1#2{% |
| 2155 |
\begingroup% |
| 2156 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2157 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2158 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2159 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2160 |
\fgruler@fgsetting% |
| 2161 |
\AtPageLowerLeft{\put(#1,#2){% |
| 2162 |
\fgruler@cm@lowerleft@{\fgruler@fg@width}{\fgruler@fg@height}}}% |
| 2163 |
\endgroup} |
| 2164 |
|
| 2165 |
\def\fgruler@cm@lowerleft@fg{\fgruler@cm@lowerleft@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2166 |
|
| 2167 |
%% LOWERLEFT IN |
| 2168 |
\def\fgruler@in@lowerleft@#1#2{% |
| 2169 |
\setlength{\unitlength}{.0625in}% |
| 2170 |
\begin{picture}(#1,#2)% |
| 2171 |
\fgruler@in@rightup{#1}% |
| 2172 |
\fgruler@in@upright{#2}% |
| 2173 |
\ifdim#1>.5in\put(8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 2174 |
\end{picture}} |
| 2175 |
|
| 2176 |
\def\fgruler@in@lowerleft@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@in@lowerleft@{#1}{#2}}} |
| 2177 |
|
| 2178 |
\def\fgruler@in@lowerleft@fg@#1#2{% |
| 2179 |
\begingroup% |
| 2180 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2181 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2182 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2183 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2184 |
\fgruler@fgsetting% |
| 2185 |
\AtPageLowerLeft{\put(#1,#2){% |
| 2186 |
\fgruler@in@lowerleft@{\fgruler@fg@width}{\fgruler@fg@height}}}% |
| 2187 |
\endgroup} |
| 2188 |
|
| 2189 |
\def\fgruler@in@lowerleft@fg{\fgruler@in@lowerleft@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2190 |
|
| 2191 |
%% LOWERRIGHT CM |
| 2192 |
\def\fgruler@cm@lowerright@#1#2{% |
| 2193 |
\setlength{\unitlength}{1mm}% |
| 2194 |
\begin{picture}(#1,#2)(-#1,0)% |
| 2195 |
\fgruler@cm@leftup{#1}% |
| 2196 |
\fgruler@cm@upleft{#2}% |
| 2197 |
\ifdim#1>.5cm\put(-5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}\fi% |
| 2198 |
\end{picture}} |
| 2199 |
|
| 2200 |
\def\fgruler@cm@lowerright@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@cm@lowerright@{#1}{#2}}} |
| 2201 |
|
| 2202 |
\def\fgruler@cm@lowerright@fg@#1#2{% |
| 2203 |
\begingroup% |
| 2204 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2205 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2206 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2207 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2208 |
\fgruler@fgsetting% |
| 2209 |
\AtPageLowerLeft{\put(0,#2){% |
| 2210 |
\fgruler@cm@lowerright@{\fgruler@fg@width}{\fgruler@fg@height}}}% |
| 2211 |
\endgroup} |
| 2212 |
|
| 2213 |
\def\fgruler@cm@lowerright@fg{\fgruler@cm@lowerright@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2214 |
|
| 2215 |
%% LOWERRIGHT IN |
| 2216 |
\def\fgruler@in@lowerright@#1#2{% |
| 2217 |
\setlength{\unitlength}{.0625in}% |
| 2218 |
\begin{picture}(#1,#2)(-#1,0)% |
| 2219 |
\fgruler@in@leftup{#1}% |
| 2220 |
\fgruler@in@upleft{#2}% |
| 2221 |
\ifdim#1>.5in\put(-8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}\fi% |
| 2222 |
\end{picture}} |
| 2223 |
|
| 2224 |
\def\fgruler@in@lowerright@@#1#2{\leavevmode\hbox{}\lower#2\hbox{\fgruler@in@lowerright@{#1}{#2}}} |
| 2225 |
|
| 2226 |
\def\fgruler@in@lowerright@fg@#1#2{% |
| 2227 |
\begingroup% |
| 2228 |
\setlength{\fgruler@fg@width}{\paperwidth}% |
| 2229 |
\addtolength{\fgruler@fg@width}{-#1}% |
| 2230 |
\setlength{\fgruler@fg@height}{\paperheight}% |
| 2231 |
\addtolength{\fgruler@fg@height}{-#2}% |
| 2232 |
\fgruler@fgsetting% |
| 2233 |
\AtPageLowerLeft{\put(0,#2){% |
| 2234 |
\fgruler@in@lowerright@{\fgruler@fg@width}{\fgruler@fg@height}}}% |
| 2235 |
\endgroup} |
| 2236 |
|
| 2237 |
\def\fgruler@in@lowerright@fg{\fgruler@in@lowerright@fg@{\fgruler@hshift}{\fgruler@vshift}} |
| 2238 |
|
| 2239 |
%% UPPERLEFTT CM |
| 2240 |
\def\fgruler@cm@upperleftT@fg{% |
| 2241 |
\AtTextLowerLeft{% |
| 2242 |
\setlength{\unitlength}{1mm}% |
| 2243 |
\fgruler@fgsetting% |
| 2244 |
\begin{picture}(\textwidth,\textheight)(0,-\textheight)% |
| 2245 |
\fgruler@cm@rightup{\textwidth}% |
| 2246 |
\fgruler@cm@downleft{\textheight}% |
| 2247 |
\put(5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}% |
| 2248 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2249 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2250 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2251 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2252 |
\end{picture}}} |
| 2253 |
|
| 2254 |
%% UPPERLEFTT IN |
| 2255 |
\def\fgruler@in@upperleftT@fg{% |
| 2256 |
\AtTextLowerLeft{% |
| 2257 |
\setlength{\unitlength}{.0625in}% |
| 2258 |
\fgruler@fgsetting% |
| 2259 |
\begin{picture}(\textwidth,\textheight)(0,-\textheight)% |
| 2260 |
\fgruler@in@rightup{\textwidth}% |
| 2261 |
\fgruler@in@downleft{\textheight}% |
| 2262 |
\put(8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}% |
| 2263 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2264 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2265 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2266 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2267 |
\end{picture}}} |
| 2268 |
|
| 2269 |
%% UPPERRIGHTT CM |
| 2270 |
\def\fgruler@cm@upperrightT@fg{% |
| 2271 |
\AtTextLowerLeft{% |
| 2272 |
\setlength{\unitlength}{1mm}% |
| 2273 |
\fgruler@fgsetting% |
| 2274 |
\begin{picture}(\textwidth,\textheight)(-\textwidth,-\textheight)% |
| 2275 |
\fgruler@cm@leftup{\textwidth}% |
| 2276 |
\fgruler@cm@downright{\textheight}% |
| 2277 |
\put(-5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}% |
| 2278 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2279 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2280 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2281 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2282 |
\end{picture}}} |
| 2283 |
|
| 2284 |
%% UPPERRIGHTT IN |
| 2285 |
\def\fgruler@in@upperrightT@fg{% |
| 2286 |
\AtTextLowerLeft{% |
| 2287 |
\setlength{\unitlength}{.0625in}% |
| 2288 |
\fgruler@fgsetting% |
| 2289 |
\begin{picture}(\textwidth,\textheight)(-\textwidth,-\textheight)% |
| 2290 |
\fgruler@in@leftup{\textwidth}% |
| 2291 |
\fgruler@in@downright{\textheight}% |
| 2292 |
\put(-8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}% |
| 2293 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2294 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2295 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2296 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2297 |
\end{picture}}} |
| 2298 |
|
| 2299 |
%% LOWERLEFTT CM |
| 2300 |
\def\fgruler@cm@lowerleftT@fg{% |
| 2301 |
\AtTextLowerLeft{% |
| 2302 |
\setlength{\unitlength}{1mm}% |
| 2303 |
\fgruler@fgsetting% |
| 2304 |
\begin{picture}(\textwidth,\textheight)(0,0)% |
| 2305 |
\fgruler@cm@rightdown{\textwidth}% |
| 2306 |
\fgruler@cm@upleft{\textheight}% |
| 2307 |
\put(5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}}% |
| 2308 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2309 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2310 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2311 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2312 |
\end{picture}}} |
| 2313 |
|
| 2314 |
%% LOWERLEFTT IN |
| 2315 |
\def\fgruler@in@lowerleftT@fg{% |
| 2316 |
\AtTextLowerLeft{% |
| 2317 |
\setlength{\unitlength}{.0625in}% |
| 2318 |
\fgruler@fgsetting% |
| 2319 |
\begin{picture}(\textwidth,\textheight)(0,0)% |
| 2320 |
\fgruler@in@rightdown{\textwidth}% |
| 2321 |
\fgruler@in@upleft{\textheight}% |
| 2322 |
\put(8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}}% |
| 2323 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2324 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2325 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2326 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2327 |
\end{picture}}} |
| 2328 |
|
| 2329 |
%% LOWERRIGHTT CM |
| 2330 |
\def\fgruler@cm@lowerrightT@fg{% |
| 2331 |
\AtTextLowerLeft{% |
| 2332 |
\setlength{\unitlength}{1mm}% |
| 2333 |
\fgruler@fgsetting% |
| 2334 |
\begin{picture}(\textwidth,\textheight)(-\textwidth,0)% |
| 2335 |
\fgruler@cm@leftdown{\textwidth}% |
| 2336 |
\fgruler@cm@upright{\textheight}% |
| 2337 |
\put(-5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}}% |
| 2338 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2339 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2340 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2341 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2342 |
\end{picture}}} |
| 2343 |
|
| 2344 |
%% LOWERRIGHTT IN |
| 2345 |
\def\fgruler@in@lowerrightT@fg{% |
| 2346 |
\AtTextLowerLeft{% |
| 2347 |
\setlength{\unitlength}{.0625in}% |
| 2348 |
\fgruler@fgsetting% |
| 2349 |
\begin{picture}(\textwidth,\textheight)(-\textwidth,0)% |
| 2350 |
\fgruler@in@leftdown{\textwidth}% |
| 2351 |
\fgruler@in@upright{\textheight}% |
| 2352 |
\put(-8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}}% |
| 2353 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2354 |
\put(0,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2355 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2356 |
\put(\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2357 |
\end{picture}}} |
| 2358 |
|
| 2359 |
%% ALLEDGES CM |
| 2360 |
\def\fgruler@cm@alledges@fg{% |
| 2361 |
\AtPageLowerLeft{% |
| 2362 |
\setlength{\unitlength}{1mm}% |
| 2363 |
\fgruler@fgsetting% |
| 2364 |
\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)% |
| 2365 |
\fgruler@cm@rightdown{\paperwidth}% |
| 2366 |
\fgruler@cm@downright{\paperheight}% |
| 2367 |
\put(0,-\paperheight){\fgruler@cm@rightup{\paperwidth}} |
| 2368 |
\put(\paperwidth,0){\fgruler@cm@downleft{\paperheight}} |
| 2369 |
\put(5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}} |
| 2370 |
\end{picture}}} |
| 2371 |
|
| 2372 |
%% ALLEDGES IN |
| 2373 |
\def\fgruler@in@alledges@fg{% |
| 2374 |
\AtPageLowerLeft{% |
| 2375 |
\setlength{\unitlength}{.0625in}% |
| 2376 |
\fgruler@fgsetting% |
| 2377 |
\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)% |
| 2378 |
\fgruler@in@rightdown{\paperwidth}% |
| 2379 |
\fgruler@in@downright{\paperheight}% |
| 2380 |
\put(0,-\paperheight){\fgruler@in@rightup{\paperwidth}} |
| 2381 |
\put(\paperwidth,0){\fgruler@in@downleft{\paperheight}} |
| 2382 |
\put(8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}} |
| 2383 |
\end{picture}}} |
| 2384 |
|
| 2385 |
%% ALLEDGES* CM |
| 2386 |
\@namedef{fgruler@cm@alledges*@fg}{% |
| 2387 |
\AtPageLowerLeft{% |
| 2388 |
\setlength{\unitlength}{1mm}% |
| 2389 |
\fgruler@fgsetting% |
| 2390 |
\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)% |
| 2391 |
\fgruler@cm@rightdown{\paperwidth}% |
| 2392 |
\fgruler@cm@downright{\paperheight}% |
| 2393 |
\put(\paperwidth,-\paperheight){% |
| 2394 |
\fgruler@cm@leftup{\paperwidth}% |
| 2395 |
\fgruler@cm@upleft{\paperheight}} |
| 2396 |
\put(5,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@cm}} |
| 2397 |
\end{picture}}} |
| 2398 |
|
| 2399 |
%% ALLEDGES* IN |
| 2400 |
\@namedef{fgruler@in@alledges*@fg}{% |
| 2401 |
\AtPageLowerLeft{% |
| 2402 |
\setlength{\unitlength}{.0625in}% |
| 2403 |
\fgruler@fgsetting% |
| 2404 |
\begin{picture}(\paperwidth,\paperheight)(0,-\paperheight)% |
| 2405 |
\fgruler@in@rightdown{\paperwidth}% |
| 2406 |
\fgruler@in@downright{\paperheight}% |
| 2407 |
\put(\paperwidth,-\paperheight){% |
| 2408 |
\fgruler@in@leftup{\paperwidth}% |
| 2409 |
\fgruler@in@upleft{\paperheight}} |
| 2410 |
\put(8,-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\fgruler@caption@in}} |
| 2411 |
\end{picture}}} |
| 2412 |
|
| 2413 |
%% ALLEDGEST CM |
| 2414 |
\def\fgruler@cm@alledgesT@fg{% |
| 2415 |
\AtTextLowerLeft{% |
| 2416 |
\setlength{\unitlength}{1mm}% |
| 2417 |
\fgruler@fgsetting% |
| 2418 |
\begin{picture}(\textwidth,\textheight)(0,-\textheight)% |
| 2419 |
\fgruler@cm@rightup{\textwidth}% |
| 2420 |
\fgruler@cm@downleft{\textheight}% |
| 2421 |
\put(0,-\textheight){\fgruler@cm@rightdown{\textwidth}} |
| 2422 |
\put(\textwidth,0){\fgruler@cm@downright{\textheight}} |
| 2423 |
\put(5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}% |
| 2424 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2425 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2426 |
\put(0,-\textheight-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2427 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2428 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2429 |
\put(\textwidth+\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2430 |
\end{picture}}} |
| 2431 |
|
| 2432 |
%% ALLEDGEST IN |
| 2433 |
\def\fgruler@in@alledgesT@fg{% |
| 2434 |
\AtTextLowerLeft{% |
| 2435 |
\setlength{\unitlength}{.0625in}% |
| 2436 |
\fgruler@fgsetting% |
| 2437 |
\begin{picture}(\textwidth,\textheight)(0,-\textheight)% |
| 2438 |
\fgruler@in@rightup{\textwidth}% |
| 2439 |
\fgruler@in@downleft{\textheight}% |
| 2440 |
\put(0,-\textheight){\fgruler@in@rightdown{\textwidth}} |
| 2441 |
\put(\textwidth,0){\fgruler@in@downright{\textheight}} |
| 2442 |
\put(8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}% |
| 2443 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2444 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2445 |
\put(0,-\textheight-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2446 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2447 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2448 |
\put(\textwidth+\fgruler@sep,0){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2449 |
\end{picture}}} |
| 2450 |
|
| 2451 |
%% ALLEDGEST* CM |
| 2452 |
\@namedef{fgruler@cm@alledgesT*@fg}{% |
| 2453 |
\AtTextLowerLeft{% |
| 2454 |
\setlength{\unitlength}{1mm}% |
| 2455 |
\fgruler@fgsetting% |
| 2456 |
\begin{picture}(\textwidth,\textheight)(0,-\textheight)% |
| 2457 |
\fgruler@cm@rightup{\textwidth}% |
| 2458 |
\fgruler@cm@downleft{\textheight}% |
| 2459 |
\put(\textwidth,-\textheight){\fgruler@cm@leftdown{\textwidth}} |
| 2460 |
\put(\textwidth,-\textheight){\fgruler@cm@upright{\textheight}} |
| 2461 |
\put(5,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@cm}}% |
| 2462 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2463 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2464 |
\put(\textwidth,-\textheight-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2465 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2466 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2467 |
\put(\textwidth+\fgruler@sep,-\textheight){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2468 |
\end{picture}}} |
| 2469 |
|
| 2470 |
%% ALLEDGEST* IN |
| 2471 |
\@namedef{fgruler@in@alledgesT*@fg}{% |
| 2472 |
\AtTextLowerLeft{% |
| 2473 |
\setlength{\unitlength}{.0625in}% |
| 2474 |
\fgruler@fgsetting% |
| 2475 |
\begin{picture}(\textwidth,\textheight)(0,-\textheight)% |
| 2476 |
\fgruler@in@rightup{\textwidth}% |
| 2477 |
\fgruler@in@downleft{\textheight}% |
| 2478 |
\put(\textwidth,-\textheight){\fgruler@in@leftdown{\textwidth}} |
| 2479 |
\put(\textwidth,-\textheight){\fgruler@in@upright{\textheight}} |
| 2480 |
\put(8,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\fgruler@caption@in}}% |
| 2481 |
\setcounter{fgrulernum}{\fgruler@startnumh}% |
| 2482 |
\put(0,\fgruler@sep){\makebox(0,0)[b]{\fgruler@font@\thefgrulernum}}% |
| 2483 |
\put(\textwidth,-\textheight-\fgruler@sep){\makebox(0,0)[t]{\fgruler@font@\thefgrulernum}}% |
| 2484 |
\setcounter{fgrulernum}{\fgruler@startnumv}% |
| 2485 |
\put(-\fgruler@sep,0){\makebox(0,0)[r]{\fgruler@font@\thefgrulernum}}% |
| 2486 |
\put(\textwidth+\fgruler@sep,-\textheight){\makebox(0,0)[l]{\fgruler@font@\thefgrulernum}}% |
| 2487 |
\end{picture}}} |
| 2488 |
|
| 2489 |
%% USER |
| 2490 |
\def\fgruler@cm@user@fg{} |
| 2491 |
\def\fgruler@in@user@fg{} |
| 2492 |
\def\fgrulertype#1#2{\csname fgruler@#1@#2@fg\endcsname} |
| 2493 |
|
| 2494 |
\def\fgrulerdefusercm#1{\def\fgruler@cm@user@fg{#1}} % for old versions |
| 2495 |
\def\fgrulerdefuserin#1{\def\fgruler@in@user@fg{#1}} % for old versions |
| 2496 |
|
| 2497 |
\def\fgrulerdefuser#1{% |
| 2498 |
\expandafter\def\expandafter\fgrulerunit\expandafter{\fgruler@unit}% |
| 2499 |
\@namedef{fgruler@\fgruler@unit @user@fg}{#1}} |
| 2500 |
|
| 2501 |
% \end{macrocode} |
| 2502 |
% \Finale |
| 2503 |
\endinput |