Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problème avec pst-eucl

40 views
Skip to first unread message

Reboux Olivier

unread,
Nov 6, 2011, 2:58:38 PM11/6/11
to
Hello everybody.

La dernière mise à jour de pst-eucl semble avoir introduit un problème
de placement avec le label dans \pstMarkAngle.

Si Dominique ou Herbert traînent dans le coin.

D'avance merci.


>%----------------------ECM--------------------------

\documentclass[a4paper,12pt]{article}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}


\usepackage{pst-eucl}




\begin{document}

\begin{pspicture}(-.5,-.5)(4.5,3)
\pstGeonode[PosAngle={180,-90,90}, PointSymbol=none](0,0.5){O}(4,0){y}
(4,2.5){x}
\psline(y)(O)(x)
\pstMarkAngle[MarkAngleRadius=.8,Mark=MarkHash, MarkAngle=45]{y}{O}{x}
{}
\end{pspicture}

\end{document}

>%----------------------------------------
Olivier Reboux
--
En tout cas, merci pour votre attention, et puis, c'est pas de mauvais
goût, c'est de l'ART ;-)
-+- Brownie 2002 in fr.comp.text.tex -+-

e2manuel62

unread,
Nov 6, 2011, 5:12:07 PM11/6/11
to
Bonsoir Olivier,

À revoir, les fils de discussion suivants signalant le même problème :
- pst-eucl : problème avec le paramètre Mark de \pstMarkAngle (août
2010),
- problème avec \pstMarkAngle (mai 2011).
En espérant que cela puisse faire avancer le schmillblick.
Emmanuel

Herbert Voss

unread,
Nov 7, 2011, 3:09:00 AM11/7/11
to
Am 06.11.2011 20:58, schrieb Reboux Olivier:

> La dernière mise à jour de pst-eucl semble avoir introduit un problème
> de placement avec le label dans \pstMarkAngle.

please try this one:

\documentclass[a4paper,12pt]{article}

\usepackage{pst-eucl}
\makeatletter
\def\Pst@MarkAngle[#1]#2#3#4#5{{%
\psset{#1}%
\rput(#3){%
\psarc(0,0){\psk@MarkAngleRadius}{(#2)}{(#4)}%
\rput[\psk@LabelRefPt]{*0}(!
tx@EcldDict begin
/N@#4 GetNode exch Atan /N@#2 GetNode exch Atan end
2 copy lt { exch 360 sub exch } if
add 2 div \psk@LabelAngleOffset\space add
\psk@LabelSep\space exch PtoC){#5}
\rput[\psk@LabelRefPt]{*0}(!tx@EcldDict begin
/N@#4 GetNode exch Atan /N@#2 GetNode exch Atan end
2 copy lt { exch 360 sub exch } if
add 2 div \psk@MarkAngleRadius\space exch PtoC)%
{\csname\psk@Mark\endcsname}
}}}%
\makeatother

\begin{document}

\begin{pspicture}(-.5,-.5)(4.5,3)
\pstGeonode[PosAngle={180,-90,90},
PointSymbol=none](0,0.5){O}(4,0){y}(4,2.5){x}
\psline(y)(O)(x)
\pstMarkAngle[MarkAngleRadius=.8,Mark=MarkHash]{y}{O}{x}{}
\end{pspicture}

\end{document}

Herbert

kiki77

unread,
Nov 16, 2011, 7:07:28 AM11/16/11
to
On 7 nov, 09:09, Herbert Voss <Herbert.V...@alumni.tu-berlin.de>
wrote:
It works very well. I hope for a new version of pst-eucl on the CTAN
in a few days...

e2manuel62

unread,
Nov 16, 2011, 10:28:25 AM11/16/11
to
Bonjour,

J'ai testé l'ECM avec un second angle. La marque ne semble pas
s'adapter à la mesure et à l'orientation de chaque angle.
Comment y remédier ?

\documentclass[a4paper,12pt]{article}
\usepackage{pst-eucl}
\makeatletter
\def\Pst@MarkAngle[#1]#2#3#4#5{%
{%
\psset{#1}%
\rput(#3){%
\psarc(0,0){\psk@MarkAngleRadius}{(#2)}{(#4)}%
\rput[\psk@LabelRefPt]{*0}(!
tx@EcldDict begin
/N@#4 GetNode exch Atan /N@#2 GetNode exch Atan end
2 copy lt { exch 360 sub exch } if
add 2 div \psk@LabelAngleOffset\space add
\psk@LabelSep\space exch PtoC%
){#5}
\rput[\psk@LabelRefPt]{*0}(%
!tx@EcldDict begin
/N@#4 GetNode exch Atan /N@#2 GetNode exch Atan end
2 copy lt { exch 360 sub exch } if
add 2 div \psk@MarkAngleRadius\space exch PtoC%
)%
{\csname\psk@Mark\endcsname}
}%
}%
}%
\makeatother
\begin{document}
\begin{pspicture}(-.5,-.5)(4.5,3)
\pstGeonode[%
PosAngle={180,-90,90},
PointSymbol=none%
](0,0.5){O}(4,0){y}(4,2.5){x}
\pnode(0,0.5){O}%
\pnode(4,0){y}%
\pnode(4,2.5){x}%
\psline(y)(O)(x)%
\pstMarkAngle[MarkAngleRadius=.8,Mark=MarkHash]{y}{O}{x}{}
\pnodes{P}(6,-2)(11,-2)(8.5,-6.5)
\psline(P1)(P0)(P2)%
\pstMarkAngle[MarkAngleRadius=.8,Mark=MarkHashh]{P2}{P0}{P1}{}
\end{pspicture}
\end{document}

Emmanuel

kiki77

unread,
Nov 16, 2011, 1:41:06 PM11/16/11
to
Il faut modifier l'option MarkAngle dans chaque \pstMarkAngle. En
effet, MarkAngle est fixé à 45° par défaut. Désolé, c'est une solution
artisanale. Pour une solution automatique, il faut attendre un expert
comme Herbert...

Herbert Voss

unread,
Nov 17, 2011, 5:26:42 AM11/17/11
to
Am 16.11.2011 19:41, schrieb kiki77:
> Il faut modifier l'option MarkAngle dans chaque \pstMarkAngle. En
> effet, MarkAngle est fixé à 45° par défaut. Désolé, c'est une solution

that is true. the angle can be changed by the optional argument.
Will see, if there is an automatic solution.

Herbert

e2manuel62

unread,
Nov 19, 2011, 10:54:17 AM11/19/11
to
On 17 nov, 11:26, Herbert Voss <Herbert.V...@alumni.tu-berlin.de>
wrote:
Bonjour,

Merci pour vos réponses. Cela règle la question de l'orientation. Mais
le test suivant soulève un problème avec le paramètre MarkHashh. La
position relative des deux traits n'est pas conservée.
\pstMarkAngle[MarkAngleRadius=.8,Mark=MarkHashh,MarkAngle=-10]{P2}{P0}

Herbert Voss

unread,
Nov 19, 2011, 2:38:13 PM11/19/11
to
Am 19.11.2011 16:54, schrieb e2manuel62:

> Merci pour vos réponses. Cela règle la question de l'orientation. Mais
> le test suivant soulève un problème avec le paramètre MarkHashh. La
> position relative des deux traits n'est pas conservée.

The pst-eucl.tex from http://texnik.dante.de/tex/generic/pst-eucl/
has another optional argument mark (lower case m) which prints
nicer slashes, see http://perce.de/temp/test3.pdf

\documentclass{article}
\usepackage{pst-eucl}
\begin{document}

\begin{pspicture}(-.5,-.5)(4.5,3)
\pstGeonode[%
PosAngle={180,-90,90},
PointSymbol=none](0,0.5){O}(4,0){y}(4,2.5){x}
\pnode(0,0.5){O}\pnode(4,0){y}\pnode(4,2.5){x}\psline(y)(O)(x)%
\pstMarkAngle[MarkAngleRadius=.8,Mark=MarkHash]{y}{O}{x}{}% old version
\pnodes{P}(6,2)(11,2)(8.5,-2)
\psline(P1)(P0)(P2)%
\pstMarkAngle[MarkAngleRadius=.8,mark=MarkHashhh]{P2}{P0}{P1}{}% new

kiki77

unread,
Nov 19, 2011, 5:10:22 PM11/19/11
to
On 19 nov, 14:38, Herbert Voss <Herbert.V...@alumni.tu-berlin.de>
wrote:
> Am 19.11.2011 16:54, schrieb e2manuel62:
>
> > Merci pour vos réponses. Cela règle la question de l'orientation. Mais
> > le test suivant soulève un problème avec le paramètre MarkHashh. La
> > position relative des deux traits n'est pas conservée.
>
> The pst-eucl.tex fromhttp://texnik.dante.de/tex/generic/pst-eucl/
> has another optional argument mark (lower case m) which prints
> nicer slashes, seehttp://perce.de/temp/test3.pdf
>
> \documentclass{article}
> \usepackage{pst-eucl}
> \begin{document}
>
> \begin{pspicture}(-.5,-.5)(4.5,3)
> \pstGeonode[%
>    PosAngle={180,-90,90},
>    PointSymbol=none](0,0.5){O}(4,0){y}(4,2.5){x}
> \pnode(0,0.5){O}\pnode(4,0){y}\pnode(4,2.5){x}\psline(y)(O)(x)%
> \pstMarkAngle[MarkAngleRadius=.8,Mark=MarkHash]{y}{O}{x}{}% old version
> \pnodes{P}(6,2)(11,2)(8.5,-2)
> \psline(P1)(P0)(P2)%
> \pstMarkAngle[MarkAngleRadius=.8,mark=MarkHashhh]{P2}{P0}{P1}{}% new
> \end{pspicture}
>
> \end{document}
>
> Herbert



Avec cette nouvelle version (19 novembre 2011), les traits
n'apparaissent pas avec les options mark=pstslash, mark=pstslashh ou
mark=pstslashhh.

The options mark=pstslash, mark=pstslashh or mark=pstslashhh don't
work (the marks don't appear) with the last version of pst-eucl (19
november 2011). The others work very well.

\documentclass{article}
\usepackage{pst-eucl}
\begin{document}

\begin{pspicture}(-.5,-.5)(4.5,3)
\pstGeonode[%
PosAngle={180,-90,90},
PointSymbol=none](0,0.5){O}(4,0){y}(4,2.5){x}
\pnode(0,0.5){O}\pnode(4,0){y}\pnode(4,2.5){x}\psline(y)(O)(x)%
\pstMarkAngle[MarkAngleRadius=.8,mark=pstslash]{y}{O}{x}{}
\pnodes{P}(6,2)(11,2)(8.5,-2)
\psline(P1)(P0)(P2)%
\pstMarkAngle[MarkAngleRadius=.8,mark=pstslashhh]{P2}{P0}{P1}{}
\end{pspicture}

\end{document}

Herbert Voss

unread,
Nov 19, 2011, 5:28:43 PM11/19/11
to
Am 19.11.2011 23:10, schrieb kiki77:

> Avec cette nouvelle version (19 novembre 2011), les traits
> n'apparaissent pas avec les options mark=pstslash, mark=pstslashh ou
> mark=pstslashhh.
>
> The options mark=pstslash, mark=pstslashh or mark=pstslashhh don't
> work (the marks don't appear) with the last version of pst-eucl (19
> november 2011). The others work very well.

true, I tested only the MarkHash h h. But the others eill also
work in the next version.

Herbert
0 new messages