diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-26 21:40:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-26 21:40:43 +0000 |
commit | 58ae8ff32e96babab9565a8a03521b84314b5ef5 (patch) | |
tree | 82a5f0c0fa96f45c449423e48d53a3e00f250997 /Master/texmf-dist/doc/generic/pst-pdf/pst-pdf-example.tex | |
parent | 0a57e6b100604ff3a5631232cdad6713dea9f5be (diff) |
pst-pdf 1.1n (24jul06)
git-svn-id: svn://tug.org/texlive/trunk@1924 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-pdf/pst-pdf-example.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-pdf/pst-pdf-example.tex | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-pdf/pst-pdf-example.tex b/Master/texmf-dist/doc/generic/pst-pdf/pst-pdf-example.tex index fe00b69c35d..3caa9b15123 100644 --- a/Master/texmf-dist/doc/generic/pst-pdf/pst-pdf-example.tex +++ b/Master/texmf-dist/doc/generic/pst-pdf/pst-pdf-example.tex @@ -20,7 +20,13 @@ %% and version 1.2 or later is part of all distributions of LaTeX version %% 1999/12/01 or later. %% - +%% Process this file with the scripts `ps4pdf' or `ps4pdf.bat' or call +%% +%% latex pst-pdf-example.tex +%% dvips -Ppdf -o pst-pdf-example-pics.ps pst-pdf-example.dvi +%% ps2pdf -dAutoRotatePages=/None pst-pdf-example-pics.ps pst-pdf-example-pics.pdf +%% pdflatex pst-pdf-example.tex +%% \listfiles\errorcontextlines=100\relax \documentclass[12pt]{article} @@ -39,6 +45,46 @@ \end{postscript} \savepicture{ps:A} +\begin{pst-pdf-defs}% + +%% This definition must be within the pst-pdf-defs environment! +\newcommand*\mytree{% + \begin{psmatrix}[rowsep=.2cm,colsep=2cm] + & & E \\ + & A & \\ + & & F \\ + $\bullet$ & & \\ + & & G \\ + & B & \\ + & & H \\ + \scriptsize + \psset{shortput=nab,arrows=->,labelsep=2pt,nodesep=2pt,nrot=:U} + + \ncline{4,1}{2,2}\ncput*{$0,2$} + \ncline{4,1}{6,2}\ncput*{$x$} + + \ncline{2,2}{1,3}\ncput*{$0,3$} + \ncline{2,2}{3,3}\ncput*{$y$} + + \ncline{6,2}{5,3}\ncput*{$z$} + \ncline{6,2}{7,3}\ncput*{$0,8$} + \end{psmatrix}% +} + +\end{pst-pdf-defs}% + +%% This works without the pst-pdf-defs environment! +\newcommand*\mymatrix{% + \begin{postscript} + \[ + \begin{array}{rcl} + a & b & c \\ + 1 & 2 & 3 \\ + \end{array} + \] + \end{postscript}% +} + \begin{document} \setkeys{Gin}{showname,frame}% @@ -218,6 +264,14 @@ \ncline[nodesep=-1em,linecolor=red]{D}{J} \end{displaymath} +\bigskip + +\mytree + +\bigskip + +\mymatrix + \end{document} \endinput %% |