[pstricks] calculating the length of a line segment.

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Nov 14 10:15:29 CET 2009


Am 14.11.2009 00:22, schrieb hh-brasil:
> Nothing easier. You produce a ps-page and look at the (e)ps-page with ghostscript/ghostview. 
> Probably both were installed during your TeX-installation.

The pstricks-add version from
http://archiv.dante.de/~herbert/PSTricks-TDS/tex/generic/pstricks-add/
you need also the new pst-fp

knows \psGetDistance

\documentclass{article}
\usepackage{pstricks-add}
\begin{document}

\psGetDistance(0,0)(2,1)\Val
\Val

\end{document}

Herbert


> 
> Ghostview has an Menu command "measure" (me desculpe: I have only the german version). 
> You click on this "measure", and will get another menu for measuring (choose e.g. mm or in).
> Click on the starting point and move the cursor to the endpoint. You will see the length between both y-values, between both x-values, of the line length between the two points and the angle (if any).
> 
> hh
> 
> 
> 
> Em 11/11/2009 18:13, Régis da Silva < rg3915 at yahoo.com.br > escreveu:
> How to calculate the length of a line segment.
> my segment in Cartesian Coord, ex, \psline(0,0)(2,1).
> The lenght is...?
> Régis
> 
> 
>       ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
> 
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/



More information about the PSTricks mailing list