[OS X TeX] pstricks question

Peter Dyballa Peter_Dyballa at Web.DE
Thu Mar 17 05:50:12 EST 2005


Am 17.03.2005 um 07:33 schrieb Alain Matthes:

> \documentclass[11pt]{article}
> \usepackage{ifpdf}
> \ifpdf%
>        \usepackage{pdftricks}
>
>        \begin{psinputs}
>            \usepackage{pstricks}
>            \usepackage{pstricks-add}
>            \usepackage{pst-plot}
>            \usepackage{pst-text,pst-node,pst-tree}
>        \end{psinputs}
> \else
>        \usepackage{pstricks}
>        \usepackage{pstricks-add}
>        \usepackage{pst-plot}
>        \usepackage{pst-text,pst-node,pst-tree}
>
> \fi
>
> \begin{document}
> \begin{pdfdisplay}
> \pstree[nodesep=3D2pt]{\Tr{EI}}{\Tr{P} \pstree{\Tr{a}}{\Tr{S}}}
> \end{pdfdisplay}
> \end{document}

Which can be abreviated to:

	\documentclass[11pt]{article}
	\usepackage{ifpdf}

	\ifpdf%
        \usepackage{pdftricks}
        \begin{psinputs}
	\fi

	\usepackage{pstricks,pstricks-add}
	\usepackage{pst-plot,pst-text,pst-node,pst-tree}

	\ifpdf%
	   \end{psinputs}
	\fi
	
	\begin{document}
		\begin{pdfdisplay}
			\pstree[nodesep=12pt]{\Tr{EI}}{\Tr{P} \pstree{\Tr{a}}{\Tr{S}}}
		\end{pdfdisplay}
	\end{document}

For this tricks to do pdfTeX just needs an extra preamble and an extra 
postamble compared to 'plain' LaTeX, all other 'text' stays the same.

--
Greetings

   Pete                           <]
              o        __o         |__    o       HPV, the real
     ___o    /I       -\<,         |o \  -\),-%     high speed!
___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________


--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list