[pstricks] Scaling angle label positions in pst-eucl

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Jan 23 22:41:40 CET 2010


Am 23.01.2010 14:39, schrieb Hensh, Richard:

> What is the best way to scale angle marks and labels using the pst-eucl package? The following minimal example illustrates the issue. Notice how the `2' overlaps the angle mark in the second triangle. Suggestions?

Ricky,
as far as I understand the code, it is only possible to correct
the separation individually. But maybe that Dominique has a better
solution, which takes the unit into account.

\documentclass[10pt,dvips]{minimal}
\usepackage{pst-eucl}
\makeatletter
\def\myTriangle{\pst at object{myTriangle}}
\def\myTriangle at i#1{%
  \begingroup%
  \addbefore at par{LabelAngleOffset=0,labelsep=15mm}%
  \use at par%
  \pstTriangle[](-4,0){A}(5,0){B}(5,4){C}%
  \pstMarkAngle{B}{A}{C}{$#1^{\circ}$}%
  \endgroup}
\makeatother

\begin{document}
\def\xmin{-5}\def\xmax{6}
\def\ymin{-1}\def\ymax{5}
\psset{unit=10mm,PointSymbol=none,PointName={}}
\begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)%
  \myTriangle[linecolor=blue,linewidth=1.25pt,
              MarkAngleRadius=1.5,linecolor=gray]{24}
\end{pspicture}
\smallskip

\psset{unit=6mm}
\begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)%
  \myTriangle[linecolor=blue,linewidth=1.25pt,
              MarkAngleRadius=1.5,linecolor=gray,LabelSep=2.2]{24}
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list