<div dir="ltr">Thanks for your support and for your explanations.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-29 12:00 GMT+02:00  <span dir="ltr"><<a href="mailto:pstricks-request@tug.org" target="_blank">pstricks-request@tug.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send PSTricks mailing list submissions to<br>
        <a href="mailto:pstricks@tug.org">pstricks@tug.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://tug.org/mailman/listinfo/pstricks" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/pstricks</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:pstricks-request@tug.org">pstricks-request@tug.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:pstricks-owner@tug.org">pstricks-owner@tug.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of PSTricks digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Pstricks help (Adrien BOUZIGUES)<br>
   2. Re: Pstricks help (Herbert Voss)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Fri, 28 Apr 2017 13:35:02 +0200<br>
From: Adrien BOUZIGUES <<a href="mailto:adrien.bouzigues@gadz.org">adrien.bouzigues@gadz.org</a>><br>
To: <a href="mailto:pstricks@tug.org">pstricks@tug.org</a><br>
Subject: [pstricks] Pstricks help<br>
Message-ID:<br>
        <<a href="mailto:CAOUdgXuNzL7dj-NwZ%2BNZFG8qQmhUuWKEtop_GAppygTodsDhQg@mail.gmail.com">CAOUdgXuNzL7dj-NwZ+<wbr>NZFG8qQmhUuWKEtop_<wbr>GAppygTodsDhQg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello,<br>
<br>
After multiple hours of searching and with less hair on my head (no I'm<br>
kidding, I'm not that mad), I've resigned to find a solution. That's why I<br>
try sending e-mails to various users of Pstricks to find an answer.<br>
<br>
My question is : is it possible to extract the coordinates of two points<br>
(in a psfigure) to create a length (for a parbox for example) ?<br>
I mean, there are A(x1,y1) and B(x2,y2) and I would like to create<br>
"\parbox{|x1-x2|}{Text}" (put a text in a psframe of a size I want : there<br>
is a little difference with a psframebox).<br>
I know how to extract coordinates, to add them with the RPN but how to<br>
create such a length is my problem.<br>
<br>
Can we do it ? How ?<br>
<br>
Thanks a lot if you have an answer,<br>
<br>
Adrien BOUZIGUES<br>
LaTeX user<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://tug.org/pipermail/pstricks/attachments/20170428/be35dbf9/attachment-0001.html" rel="noreferrer" target="_blank">http://tug.org/pipermail/<wbr>pstricks/attachments/20170428/<wbr>be35dbf9/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 28 Apr 2017 19:58:11 +0200<br>
From: Herbert Voss <Herbert.Voss@FU-Berlin.DE><br>
To: <a href="mailto:pstricks@tug.org">pstricks@tug.org</a><br>
Subject: Re: [pstricks] Pstricks help<br>
Message-ID: <d7516d5a-83ee-87e6-f03b-<wbr>bf006cda9060@FU-Berlin.DE><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
Am 28.04.2017 um 13:35 schrieb Adrien BOUZIGUES:<br>
>My question is : is it possible to extract the coordinates of two points<br>
> (in a psfigure) to create a length (for a parbox for example) ?<br>
> I mean, there are A(x1,y1) and B(x2,y2) and I would like to create<br>
> "\parbox{|x1-x2|}{Text}" (put a text in a psframe of a size I want :<br>
> there is a little difference with a psframebox).<br>
> I know how to extract coordinates, to add them with the RPN but how to<br>
> create such a length is my problem.<br>
><br>
> Can we do it ? How ?<br>
<br>
there is no such macro. The points are handled on PostScript<br>
level, but the value fpr the parbox on LaTeX level. You can<br>
pass values from LaTeX->PostScript but not vice versa.<br>
<br>
However, there is \psTextFrame. Maybe it helps:<br>
<br>
\documentclass{article}<br>
\usepackage{pstricks}<br>
\begin{document}<br>
<br>
\begin{pspicture}[showgrid](0,<wbr>-0.5)(10,10)<br>
\psTextFrame[linecolor=<wbr>lightgray,ref=l](0,0.5)(4,1.5)<wbr>{Hallo}<br>
\psTextFrame[linecolor=blue](<wbr>2,4)(4,7){\color{blue}Hallo}<br>
\psTextFrame[linestyle=dashed]<wbr>(9,9)(10,10){\huge H}<br>
\psTextFrame*[linecolor=red,<wbr>linestyle=dashed](7,7)(9,9){\<wbr>Huge H}<br>
\psTextFrame*[linecolor=red!<wbr>40,ref=lB](7,4)(9,6){\Huge H}<br>
\psTextFrame*[linecolor=blue!<wbr>40,ref=rt](7,1)(9,3){\Huge H}<br>
\psTextFrame[linestyle=dashed]<wbr>(4.5,0)(6.5,10){%<br>
   \parbox{2cm}{\centering Here comes some more text over<br>
        several lines, which is also horizontally and vertically<br>
        centered and written in a parbox.}}<br>
\psTextFrame*[linecolor=cyan!<wbr>20,rot=90](.5,2)(1.5,10){%<br>
        \parbox{8cm}{\centering Here comes some more text over<br>
                several lines and rotated by 90 degrees.}}<br>
\end{pspicture}<br>
<br>
\end{document}<br>
<br>
Herbert<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
PSTricks mailing list<br>
<a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a><br>
<a href="http://tug.org/mailman/listinfo/pstricks" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/pstricks</a><br>
<br>
<br>
------------------------------<br>
<br>
End of PSTricks Digest, Vol 170, Issue 1<br>
******************************<wbr>**********<br>
</blockquote></div><br></div>