mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-12-01 14:21:56 +00:00
21 lines
892 B
Plaintext
21 lines
892 B
Plaintext
|
%**********************************************************************
|
||
|
% grid.sty
|
||
|
%**********************************************************************
|
||
|
\newcounter{gridx} \newcounter{gridxx}
|
||
|
\newcounter{gridy} \newcounter{gridyy}
|
||
|
\newcounter{cms}
|
||
|
\newcommand{\GRID}[2]{
|
||
|
\setcounter{gridx}{#1} \setcounter{gridxx}{#1} \stepcounter{gridxx}
|
||
|
\setcounter{gridy}{#2} \setcounter{gridyy}{#2} \stepcounter{gridyy}
|
||
|
\thicklines
|
||
|
\multiput(0,0)(1,0){\value{gridxx}}{\line(0,1){\value{gridy}}}
|
||
|
\multiput(0,0)(0,1){\value{gridyy}}{\line(1,0){\value{gridx}}}
|
||
|
\setcounter{cms}{0}
|
||
|
\multiput(0.6,0.1)(1,0){\value{gridx}}{\stepcounter{cms}
|
||
|
\makebox(0,0)[b]{\small \arabic{cms}}}
|
||
|
\setcounter{cms}{-1}
|
||
|
\multiput(-0.4,0.1)(0,1){\value{gridyy}}{\stepcounter{cms}
|
||
|
\makebox(0,0)[b]{\small \arabic{cms}}}
|
||
|
\thinlines}
|
||
|
%**********************************************************************
|