[OS X TeX] PStricks
Alan Munn
amunn at msu.edu
Mon Apr 9 18:45:55 CEST 2007
At 10:59 AM -0500 4/9/07, Salvatore Enrico Indiogine wrote:
>Greetings!
>
>I am trying to figure out PStricks which seems to be a very powerful tool.
>
>After some Googling I produced this simple tex file using TeXShop:
>
>=======================================================
>%! program = pdflatex
Should be %! TS-program = latex
>
>\documentclass[12pt]{article}
>\usepackage{geometry} % see geometry.pdf on how to lay out the page.
>There's lots.
>\geometry{letterpaper} % or letter or a5paper or ... etc
>
>\usepackage{pstricks,pst-node,pst-tree}
>
>\title{Prova PStricks}
>\author{SEI}
>\date{\today}
>
>%%% BEGIN DOCUMENT
>\begin{document}
>
>\pstree[]{\TR{RootNode} }{
> \TR{D1}
> \pstree{ \TR{D2} }{
> \TR{D2.1}
> \TR{D2.2}
> }
> \TR{D3}
> \TR{D4}
> }
>
>\end{document}
>========================================================
>
>I try to run it and obtain the following error message:
pstricks must be run with latex + dvips NOT with pdflatex. Your
document will work if you typeset it with TeX + Ghostscript.
If you're just interested pstricks for tree drawing, I would
recommend qtree (available on ctan) which works with pdftex and has a
very easy to use interface. It's mainly for drawing linguistic trees
but may work well for your purposes too.
\usepackage{qtree}
\Tree [.RootNode D1 [.D2 D2.1 D2.2 ] D3 D4 ]
(The tree doesn't look exactly the same, although that could be
fixed with lowerlevel commands )
Alan
--
Alan Munn
amunn at msu.edu
Department of Linguistics
and Germanic, Slavic, Asian and African Languages Fax. +1-517-432-2736
Michigan State University, East Lansing MI 48824 Tel. +1-517-355-7491
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the macostex-archives
mailing list