| 1 |
%% |
| 2 |
%% This is file `graphpap.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% graphpap.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs.html |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2025 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the LaTeX base system. |
| 21 |
%% -------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2008 or later. |
| 30 |
%% |
| 31 |
%% This file has the LPPL maintenance status "maintained". |
| 32 |
%% |
| 33 |
%% This file may only be distributed together with a copy of the LaTeX |
| 34 |
%% base system. You may however distribute the LaTeX base system without |
| 35 |
%% such generated files. |
| 36 |
%% |
| 37 |
%% The list of all files belonging to the LaTeX base distribution is |
| 38 |
%% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 39 |
%% information. |
| 40 |
%% |
| 41 |
%% The list of derived (unpacked) files belonging to the distribution |
| 42 |
%% and covered by LPPL is defined by the unpacking scripts (with |
| 43 |
%% extension .ins) which are part of the distribution. |
| 44 |
%% |
| 45 |
%% File `graphpap.dtx'. |
| 46 |
%% Copyright (C) 1994 by Leslie Lamport |
| 47 |
%% all rights reserved. |
| 48 |
%% |
| 49 |
\NeedsTeXFormat{LaTeX2e} |
| 50 |
\ProvidesPackage{graphpap} |
| 51 |
[1994/08/09 v1.0c Standard LaTeX graphpap package (LL)] |
| 52 |
\let\c@@grid\count@ |
| 53 |
\def\@vgrid(#1,#2)#3#4#5{% |
| 54 |
\setcounter{@grid}{#1}% |
| 55 |
\multiput(#1,#2)(#3,0){#4}{\line(0,1){#5}}% |
| 56 |
\multiput(#1,#2)(#3,0){#4}{\@vgridnumber{#3}}} |
| 57 |
\def\@vgridnumber#1{% |
| 58 |
\makebox(0,0)[t]{% |
| 59 |
\shortstack{\rule{0pt}{10pt}\\\arabic{@grid}}}% |
| 60 |
\addtocounter{@grid}{#1}} |
| 61 |
\def\@nonumvgrid(#1,#2)#3#4#5{% |
| 62 |
\multiput(#1,#2)(#3,0){#4}{\line(0,1){#5}}} |
| 63 |
\def\@hgrid(#1,#2)#3#4#5{% |
| 64 |
\setcounter{@grid}{#2}% |
| 65 |
\multiput(#1,#2)(0,#3){#4}{\line(1,0){#5}}% |
| 66 |
\multiput(#1,#2)(0,#3){#4}{\@hgridnumber{#3}}} |
| 67 |
\def\@hgridnumber#1{% |
| 68 |
\makebox(0,0)[r]{\arabic{@grid}\hspace{10pt}}% |
| 69 |
\addtocounter{@grid}{#1}} |
| 70 |
\def\@nonumhgrid(#1,#2)#3#4#5{% |
| 71 |
\multiput(#1,#2)(0,#3){#4}{\line(1,0){#5}}} |
| 72 |
\newcommand\graphpaper[1][10]{\leavevmode\@grid{#1}} |
| 73 |
\def\@grid#1(#2,#3)#4{\@grid@i{#1}{#2}{#3}(} |
| 74 |
\def\@grid@i#1#2#3(#4,#5){% |
| 75 |
\@tempcnta=#4\relax |
| 76 |
\divide\@tempcnta#1\relax |
| 77 |
\advance\@tempcnta1\relax |
| 78 |
{\thinlines\@nonumvgrid(#2,#3){#1}{\@tempcnta}{#5} |
| 79 |
\@tempcnta#4\relax |
| 80 |
\divide\@tempcnta5\relax |
| 81 |
\divide\@tempcnta#1\relax |
| 82 |
\advance\@tempcnta1\relax |
| 83 |
\@tempcntb5\relax |
| 84 |
\multiply\@tempcntb#1\relax |
| 85 |
\thicklines\@vgrid(#2,#3){\@tempcntb}{\@tempcnta}{#5} |
| 86 |
\@tempcnta#5\relax |
| 87 |
\divide\@tempcnta #1\relax |
| 88 |
\advance\@tempcnta1\relax |
| 89 |
\thinlines\@nonumhgrid(#2,#3){#1}{\@tempcnta}{#4} |
| 90 |
\@tempcnta#5\relax |
| 91 |
\divide\@tempcnta5\relax |
| 92 |
\divide\@tempcnta#1\relax |
| 93 |
\advance\@tempcnta1\relax |
| 94 |
\thicklines\@hgrid(#2,#3){\@tempcntb}{\@tempcnta}{#4}}% |
| 95 |
\ignorespaces} |
| 96 |
|
| 97 |
\endinput |
| 98 |
%% |
| 99 |
%% End of file `graphpap.sty'. |