expoweb/bierbook/gridold.sty

21 lines
892 B
Plaintext
Raw Normal View History

2011-07-10 15:23:35 +01:00
%**********************************************************************
% 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}
%**********************************************************************