[pstricks] PSTricks Digest, Vol 170, Issue 1

Adrien BOUZIGUES adrien.bouzigues at gadz.org
Sat Apr 29 20:45:04 CEST 2017


Thanks for your support and for your explanations.

2017-04-29 12:00 GMT+02:00 <pstricks-request at tug.org>:

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


More information about the PSTricks mailing list