Falls du tikz verwenden kannst, dort gibt es eine solche Option:
Code:
\documentclass{minimal}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[line width=2pt]
\draw[lightgray,dotted] grid(2,2);
\draw[|<->|,shorten >=-0.5\pgflinewidth](0,1)--(1,1);
\draw[|<->|,shorten <=-0.5\pgflinewidth](1,1)--(2,1);
\end{tikzpicture}
\vspace{1cm}
\begin{tikzpicture}[line width=2pt]
\draw[lightgray,dotted] grid(4,5);
\draw(0,0)rectangle(3,3);
\draw(3,2)rectangle(4,5);
\end{tikzpicture}
\end{document}
Bezüglich PSTricks habe ich jetzt eine ähnliche Frage, allerdings mit schrägen Pfeilen, auf www.texwelt.de gestellt.
Gruß
Elke
Lesezeichen