[pstricks] Unable to successfully include PostScript code in PSTricks code
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Fri Nov 5 13:12:56 CET 2004
R (Chandra) Chandrasekhar wrote:
> I am making diagrams for teaching geometric vectors using PSTricks and
> LaTeX. I use a Debian teTeX distribution on an i386 machine and can
> provide further details of my setup if necessary.
>
> I went through the excellent PSTricks tutorial at
>
> http://sarovar.org/projects/pstricks/
>
> and realized that I could use PostScript code within PSTricks commands
> to compute dimensions of geometric objects. I value this as it would
> save me calculating separately, say, the square root of 6, and entering it.
>
> I attach herewith a file, <Circle.tex> and a bash shell script,
> <makegraphics> which works on <Circle.tex> to successfully produce .eps
> and .pdf file outputs.
>
> However, if I change the line
>
> \pscircle[linecolor=Mahogany](-1, 7){2.4495}
>
> to
>
> \pscircle[linecolor=Mahogany](-1, 7){!6 sqrt}
this is only possible for the coordinates, not for the radius.
The radius is a length and pstricks has to build the right
unit, which can not be done by PostScript.
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list