[pstricks] Factor tree supporting comments

David Arnold dwarnold45 at suddenlink.net
Sun Mar 8 17:01:43 CET 2009


Hmmm... Page 146 seems to indicate the use of \SpecialCoor. I didn't  
use that, but things look OK.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 53778 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20090308/76ce560a/attachment-0001.tiff 
-------------- next part --------------


My code snippet for the above:

\begin{example}\label{example:PrimeFactor1}
Express 24 as a product of prime factors.

\medskip\noindent\textbf{Solution.} We use a factor tree to break 24  
down into a product of primes.

\pstree[nodesep=3pt,treesep=1,levelsep=0.7cm]{\Tr{24}}{%
	\pstree{\Tr{4}}{\Tr{2}\Tr{2}}
	\pstree{\Tr[name=six]{6}}{\Tr{2}\Tr[name=three]{3}}}
\rput[l](0.25\linewidth,0|six){\color{darkred}$24=4\cdot 6$}%
\rput[l](0.25\linewidth,0|three){\color{darkred}$4=2\cdot 2$ and $6=2 
\cdot 3$}%
\pcline[linestyle=dotted,nodesepA=5pt,nodesepB=0.5em](six)(0.25 
\linewidth,0|six)%
\pcline[linestyle=dotted,nodesepA=5pt,nodesepB=1em](three)(0.25 
\linewidth,0|three)%

\bigbreak

Am I gonna be OK here?

D.
On Mar 7, 2009, at 11:09 PM, Herbert Voss wrote:

David Arnold schrieb:
> Very nice! Exactly what I need. However, I cannot find this in the
> documentation anywhere:
>
> \rput[rc](\linewidth,0|A){1.}%
>
> What does the 0|A mean?

takes the x argument from the first point \linewidth,0 and
the y argument from the second point A
See documentation, page 146
http://www.dante.de/CTAN/graphics/pstricks/base/doc/pstricks-doc.pdf

> And while I am on this, another one. What does this mean?
>
> linecolor=black!10

10% of color black

Herbert
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list