3
\documentclass[12pt]{article}
\usepackage{amsmath,amssymb,newcent}
\usepackage{pstricks,pst-eucl}
\usepackage{auto-pst-pdf}
\begin{document}

\begin{pspicture}
\pstGeonode[PosAngle={90,0,-90}](1,2){M_1}(2,1){M_2}(1,0){M_3}
\pstSegmentMark{M_1}{M_2} %%%%\pstSegmentMark
\pstSegmentMark{M_2}{M_3}
\pstSegmentMark{M_3}{M_1}
\end{pspicture}

\begin{pspicture}
\pstGeonode[PosAngle={90,0,-90}](1,2){M_1}(2,1){M_2}(1,0){M_3}
\pstMarkSegment{M_1}{M_2}  %%%%\pstMarkSegment
\pstMarkSegment{M_2}{M_3}
\pstMarkSegment{M_3}{M_1}
\end{pspicture}
\end{document}

The result of compiling :

enter image description here

In pst-eucl documentation (v.1.59), the general syntax is :

enter image description here

But in the latter example, the syntax is :

enter image description here

The default value of is \MarkHashh, not \pstslashh.

Question:

According to the above result, \pstMarkSegment is failed, Should I choose one ?

2

You should consider the following.

enter image description here

Edit

Responding to your comment below.

\documentclass[pstricks,border=12pt,12pt]{standalone}
\usepackage{pst-eucl}

\begin{document}
\multido{\i=0+30}{12}{%
\begin{pspicture}(5,5)
    \pstGeonode(0,0){O}(4,4){A}
    \uput[180](A){Angle = $\i^\circ$}
    \pstSegmentMark[SegmentSymbol=MarkHashhh,MarkAngle=\i]{O}{A}
\end{pspicture}}
\end{document}

enter image description here

  • Can you give me for an example about the parameter SegmentSymbol and the parameter MarkAngle. I don't know. – user173875 Dec 9 '18 at 7:59
  • 1
    @chishimotoji: Navigate to this tutorial. – Artificial Stupidity Dec 9 '18 at 8:38
3

It is a typo in the documentation. The code beside the examples is always correct. Hence it should be \pstSegmentMark. See also http://comedy.dante.de/~herbert/TeXnik/doc/generic/pst-eucl/

For something like SegmentSymbol=... use the name without the preceeding backslash. However, there also exists the macros with the same name, eg \MarkHash which can be used for other purposes.

  • The default value is \MarkHashh, not \pstslashh. Can you explain to me about it? – user173875 Dec 9 '18 at 6:59
  • Also a typo. However, the current version is 1.60, you should first update your TeX distribution. – user2478 Dec 9 '18 at 7:37
  • 1
    Are you sure??? No change in v1.6 – user173875 Dec 9 '18 at 7:53
  • @chishimotoji: However, I'll upload a 1.60a, which has the correct naming. – user2478 Dec 9 '18 at 8:12
  • 1
    I think it is better to replace the last 2 segments (in the given example of the documentation) with \pstSegmentMark[MarkAngle=45,SegmentSymbol=MarkHash]{D}{E} \pstSegmentMark[MarkAngle=30,SegmentSymbol=MarkCross]{E}{A} to illustrate how to use SegmentSymbol and MarkAngle. – Artificial Stupidity Dec 9 '18 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy