[pstricks] pst-eucl and double arc option
Pablo González
pablgonz at yahoo.com
Fri Aug 26 04:12:49 CEST 2016
Hello everyone, I'm trying to add a few decorations to segments and arcs using the pst-EuCl package. I have managed to add the arrow marks for segments (>, >>, >>>), but I have not had luck with add marks double bow and triple, without having to be repeating the coomo code I do so far.
How do I define the "\MarcArcc" and "\MarcArcc" command or "Mark = double", "Mark = triple"?
or maybe you can add a new option within the package?
This is the file MWE
\documentclass{article}
\usepackage{pst-eucl,pstricks-add}
% MarkArrow >
\def\MarkArrow{%
\psset{linestyle=none,veearrowlength=\psMarkHashLength,veearrowangle = 90,veearrowlinewidth=\pslinewidth}%
\psline[ArrowInside=-v](-\psMarkHashLength,0)(\psMarkHashLength,0)%
}%
% MarkArroww >>
\def\MarkArroww{%
\psset{linestyle=none,veearrowlength=\psMarkHashLength,veearrowangle = 90,veearrowlinewidth=\pslinewidth}%
\psline[ArrowInsideNo=2,ArrowInside=-v](-2\psMarkHashLength,0)(2\psMarkHashLength,0)%
}%
% MarkArrowww >>>
\def\MarkArrowww{%
\psset{linestyle=none,veearrowlength=\psMarkHashLength,veearrowangle = 90,veearrowlinewidth=\pslinewidth}%
\psline[ArrowInsideNo=3,ArrowInside=-v](-2.5\psMarkHashLength,0)(2.5\psMarkHashLength,0)%
}%
\begin{document}
\begin{pspicture}(0,0)(4.6,3.5)
\psset{PointNameSep=8pt,PointSymbol=none,MarkHashLength=0.9mm,MarkAngle=90,MarkAngleRadius=0.7,LabelSep=0.4,linewidth=0.6pt}
\scriptsize
% nodes
\pstGeonode[PosAngle={-90,90,-90}](0.5,0.5){A}(1.5,3){B}(4.5,0.5){C}
% segments
\pstSegmentMark[SegmentSymbol=MarkArrow]{A}{C} % >
\nbput{$b$}
\pstSegmentMark[SegmentSymbol=MarkArroww]{B}{C} % >>
\naput{$a$}
\pstSegmentMark[SegmentSymbol=MarkArrowww]{A}{B} % >>>
\naput{$c$}
% angles
\pstMarkAngle{A}{B}{C}{$\phi$}% normal )
\pstMarkAngle[MarkAngleRadius=0.65]{A}{B}{C}{}% double ))
\pstMarkAngle[MarkAngleRadius=0.60]{A}{B}{C}{}% triple )))
\pstMarkAngle[Mark=MarkHashh,LabelSep=0.45]{B}{C}{A}{$\beta$}% ||
\pstMarkAngle[Mark=MarkHashhh]{C}{A}{B}{$\gamma$}% |||
\end{pspicture}
\end{document}
Besides, does not compile using latex, why? (in windows show: GPL Ghostscript 9.19: Unrecoverable error, exit code 1, and disturbing position for MarkHashh).
I'm using TeXLive 2016 (updated) under Windows and Linux.
GratefulPablo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20160826/38738ee1/attachment.html>
More information about the PSTricks
mailing list