[comp.text.tex] Re: Q: ps-tree \Tcircle size

Denis Girou Denis.Girou at idris.fr
Thu Jul 16 20:40:06 CEST 1998


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

------- Start of forwarded message -------
From: Denis Girou <Denis.Girou at idris.fr>
Newsgroups: comp.text.tex
Subject: Re: Q: ps-tree \Tcircle size
Date: 15 Jul 1998 10:00:24 +0200

>>>>> "Ak.Tuah" == Ak Tuah <tuahanj at cs.curtin.edu.au> writes:

    Ak.Tuah> How to make \Tcircle{1} and \Tcircle{10}
    Ak.Tuah> draw circles of the same size?
    Ak.Tuah> I tried \psset{radius=etc} but no result.
    Ak.Tuah> I have a lot of these \Tcircles so
    Ak.Tuah> I prefer a solution where I just change 
    Ak.Tuah> one parameter.

  Use \makebox.

\documentclass{article}

\usepackage{pst-tree}

\pagestyle{empty}

\begin{document}

\newcommand{\MyNode}[1]{\Tcircle{#1}}
\pstree{\MyNode{A}}{\MyNode{AA}\MyNode{AAA}}
\hfill
%
\renewcommand{\MyNode}[1]{\Tcircle{\makebox[1cm]{#1}}}
\pstree{\MyNode{A}}{\MyNode{AA}\MyNode{AAA}}
\hfill
%
\newlength{\MyLength}
\settowidth{\MyLength}{AAA}
\renewcommand{\MyNode}[1]{\Tcircle{\makebox[\MyLength]{#1}}}
\pstree{\MyNode{A}}{\MyNode{AA}\MyNode{AAA}}

\end{document}

------- End of forwarded message -------

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list