[pstricks] Re: Hyperbolas

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Wed Feb 9 20:11:27 CET 2005


Jacques L'helgoualc'h wrote:

> \makeatletter
> \def\psthyperbola{\pst at object{psthyperbola}}
> \def\psthyperbola at i#1#2{%

it maybe a good idea to gave a \hyperbola with an optional
origin:

\def\psthyperbola{\pst at object{psthyperbola}}
\def\psthyperbola at i{\@ifnextchar({\psthyperbola at ii}{\psthyperbola at ii(0,0)}}
\def\psthyperbola at ii(#1,#2)#3#4{
...


then we can have something like
\psthyperbola[linecolor=blue]{1}{3 sqrt}% a b
\psthyperbola[linecolor=blue](1,-1){1}{3 sqrt}% a b


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