[pstricks] Line with ticks

E. Krishnan ekmath at asianetindia.com
Sun Jan 30 03:09:16 CET 2005


On Sat, 29 Jan 2005, Claus Behl wrote:

> What i want is a line with maybe every 0.5cm one tick. It should be easy 
> to see the length of the line.

Will this do?

\documentclass{article}
\usepackage{pstricks}
\usepackage{multido}

\begin{document}

\begin{pspicture}(0,0)(10,0)
  \psline(0,0)(10,0)
  \multido{\n=0.0+0.5}{21}{%
    \psdots[dotstyle=|](\n,0)}
\end{pspicture}

\end{document}



-- 
Krishnan




More information about the PSTricks mailing list