2

Why pscustom fails to produce a closed path such as this mwe :

\documentclass{article}
\usepackage{pstricks}
\begin{document}
\pscustom{%
\psline(1,0)(0,4)(-1,0)%
\psellipticarc(0,0)(1,.5){180}{360}%
\closepath}
\end{document}

I thought that all this would be one stroke. But it does not work. I try to draw a cone here. I tried linecap and join, nothing works.

Antonis
  • 266

1 Answers1

2

According to https://tex.stackexchange.com/a/133657/82917, lines have dimen=middle but arcs have dimen=outer by default. Adding dimen=middle (either "globally" to \pscustom or "locally" to \psellipticarc) seems to help.

\documentclass{article}
\usepackage{pstricks}
\begin{document}
\pscustom[dimen=middle]{%
   \psline(1,0)(0,4)(-1,0)%
   \psellipticarc(0,0)(1,.5){180}{360}% or \psellipticarc[dimen=middle] here
   \closepath
}
\end{document}

enter image description here

campa
  • 31,130