Article View: comp.text.tex
Article #341Re: Diagrams in LaTeX
From: assist
Date: Wed, 22 Jul 1992 23:58
Date: Wed, 22 Jul 1992 23:58
59 lines
2100 bytes
2100 bytes
>In article <AA11414.9207221251.Victoria@uk.ac.city> da188@city.ac.uk writes:
>>special graph paper to aid in designing diagrams on paper before typing
>>the commands into the document. Can someone tell me how I set about creating
>>this special graph paper? The book mentions using \multiput somewhere...
>>
Here is the LaTeX file that produces what you want.
---------------------------------------------------
%
\documentstyle{article}
%
% Change page dimensions
\textwidth=8.0 true in
\textheight=8.5 true in
\columnwidth=\textwidth
\oddsidemargin=-.5 true in % actually .5 in
\evensidemargin=\oddsidemargin
\topmargin=-.2 true in % actually 0.8 in
%
% Turn off page numbers
\pagestyle{empty}
%
\begin{document}
%
% make cute title
\begin{center}
\Huge
\LaTeX\\
Picture Paper
\end{center}
%
% move grid down
\vspace{.25 true in}
%
% make grid with only 8 major commands
\begin{picture}(500,500)(-30,0)
% teeny lines
% \linethickness{0.1pt}
% \multiput(2,0)(2,0){249}{\line(0,1){500}}
% \multiput(0,2)(0,2){249}{\line(1,0){500}}
% small lines
\thinlines
\multiput(10, 0)(10, 0){49}{\line(0,1){500}}
\multiput( 0,10)( 0,10){49}{\line(1,0){500}}
% use thick lines for larger grid
\thicklines
\multiput(0,0)(50, 0){11}{\line(0,1){500}}
\multiput(0,0)( 0,50){11}{\line(1,0){500}}
% horizontal labels
\newcounter{cnt}
\multiput(0,-10)(50,0){11}{\makebox(0,0)[t]{\arabic{cnt}}
\addtocounter{cnt}{50}}
% vertical labels
\setcounter{cnt}{0}
\multiput(-10,0)(0,50){11}{\makebox(0,0)[r]{\arabic{cnt}}
\addtocounter{cnt}{50}}
\end{picture}
\end{document}
Technical Details
Message-ID:
<hossein.711849513@unocss>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!sol.ctr.columbia.edu!news.unomaha.edu!unocss!assistReferences:
<AA11414.9207221251.Victoria@uk.ac.city>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!sol.ctr.columbia.edu!news.unomaha.edu!unocss!assist From: assist@unocss.unomaha.edu ( ) Subject: Re: Diagrams in LaTeX Message-ID: <hossein.711849513@unocss> Sender: news@news.unomaha.edu (UNO Network News Server) Organization: University of Nebraska at Omaha References: <AA11414.9207221251.Victoria@uk.ac.city> Date: Wed, 22 Jul 1992 23:58:33 GMT Lines: 59