From 84afcfa4f1d6ef99297910a2950641b51d21e1e4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 4 Jul 2008 00:38:31 +0000 Subject: new pstricks script pst2pdf (3jul08) git-svn-id: svn://tug.org/texlive/trunk@9208 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/pst2pdf/Changes | 10 ++++ Master/texmf-dist/doc/latex/pst2pdf/README | 35 +++++++++++++ Master/texmf-dist/doc/latex/pst2pdf/test-pdf.pdf | Bin 0 -> 109313 bytes Master/texmf-dist/doc/latex/pst2pdf/test-pdf.tex | 41 ++++++++++++++++ Master/texmf-dist/doc/latex/pst2pdf/test.tex | 60 +++++++++++++++++++++++ 5 files changed, 146 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/pst2pdf/Changes create mode 100644 Master/texmf-dist/doc/latex/pst2pdf/README create mode 100644 Master/texmf-dist/doc/latex/pst2pdf/test-pdf.pdf create mode 100644 Master/texmf-dist/doc/latex/pst2pdf/test-pdf.tex create mode 100644 Master/texmf-dist/doc/latex/pst2pdf/test.tex (limited to 'Master/texmf-dist/doc/latex/pst2pdf') diff --git a/Master/texmf-dist/doc/latex/pst2pdf/Changes b/Master/texmf-dist/doc/latex/pst2pdf/Changes new file mode 100644 index 00000000000..499e84e9dbd --- /dev/null +++ b/Master/texmf-dist/doc/latex/pst2pdf/Changes @@ -0,0 +1,10 @@ +PST2pdf.pl -------- +0.06 2007-08-28 - fix bug with \begin{pspicture} and \pspicture +0.05 2007-07-05 - allow different extensions for the source file + e.g. tex, ltx + - ignore verbatim environment + - better log file support +0.04 2007-07-04 allow all \begin ..\end sequences anywhere + in a line, see testcase +0.03 2007-06-21 fix nested environments +0.02 2007-06-20 first (public) version diff --git a/Master/texmf-dist/doc/latex/pst2pdf/README b/Master/texmf-dist/doc/latex/pst2pdf/README new file mode 100644 index 00000000000..0379a4c4b0d --- /dev/null +++ b/Master/texmf-dist/doc/latex/pst2pdf/README @@ -0,0 +1,35 @@ +PST2pdf is a Perl script which isolates all PostScript or +PSTricks related parts of the TeX document into single +LaTeX files, for which an eps and pdf image is created. +The pdf ones are then imported in a last pdflatex run +for the pdf output of the main document. The eps and +pdf files are saved in a subdirectory images. + +Syntax: PST2pdf.pl <file>.tex + +alternative: perl PST2pdf.pl <file>.tex + + +Some restrictions: +\begin{postscript} +... +\begin{pspicture} +.... +\end{pspicture} +... +\end{postscript} + +The pspicture environment can be nested, the postscript one NOT! +pspicture can be inside of a postscript environment, but +not vice versa. + +The postscript environment should be used for all other +PostScript related commands, which are not part of +a pspicture environment, e.g. nodes inside normal text. + +PST2pdf creates a document <file>-pdf.tex for use with +pdflatex, which then creates <file>-pdf.pdf. The created +images are named <file>-tmp-<No>.pdf + +-- +Herbert Voss 2007-07-04 diff --git a/Master/texmf-dist/doc/latex/pst2pdf/test-pdf.pdf b/Master/texmf-dist/doc/latex/pst2pdf/test-pdf.pdf new file mode 100644 index 00000000000..b77085a3efa Binary files /dev/null and b/Master/texmf-dist/doc/latex/pst2pdf/test-pdf.pdf differ diff --git a/Master/texmf-dist/doc/latex/pst2pdf/test-pdf.tex b/Master/texmf-dist/doc/latex/pst2pdf/test-pdf.tex new file mode 100644 index 00000000000..b76f89aafbd --- /dev/null +++ b/Master/texmf-dist/doc/latex/pst2pdf/test-pdf.tex @@ -0,0 +1,41 @@ +\RequirePackage{graphicx} +\RequirePackage[pdftex]{xcolor} +\documentclass[12pt]{article} +\usepackage[T1]{fontenc} +\usepackage{pstricks} +\usepackage{pst-node} +\usepackage{pst-3dplot} +\usepackage{pst-calendar} +\usepackage{graphicx} +\usepackage{microtype} + +\begin{document} + +foo\includegraphics[scale=1]{images/./test-tmp-0.pdf}bar + +foo +\includegraphics[scale=1]{images/./test-tmp-1.pdf} +bar + +foo +\includegraphics[scale=1]{images/./test-tmp-2.pdf} +bar + +\clearpage +foo +\includegraphics[scale=1]{images/./test-tmp-3.pdf} +bar + +\includegraphics{tux}% a jpg image + +\clearpage + +foo bar baz foo bar baz + +\includegraphics[scale=1]{images/./test-tmp-4.pdf} + +foo bar baz + +\includegraphics[scale=1]{images/./test-tmp-5.pdf} + +\end{document} \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/pst2pdf/test.tex b/Master/texmf-dist/doc/latex/pst2pdf/test.tex new file mode 100644 index 00000000000..96f297026c5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pst2pdf/test.tex @@ -0,0 +1,60 @@ +\documentclass[12pt]{article} +\usepackage[T1]{fontenc} +\usepackage{pstricks} +\usepackage{pst-node} +\usepackage{pst-3dplot} +\usepackage{pst-calendar} +\usepackage{graphicx} +\usepackage{microtype} + +\begin{document} + +foo\begin{pspicture}[showgrid=true](4,2)\psscaleboxto(8,2){foo}\end{pspicture}bar + +foo +\begin{pspicture}[showgrid=true](4,2) + \psscaleboxto(8,2){foo bar} +\end{pspicture} +bar + +foo +\begin{pspicture}[showgrid=true](4,2) + \psscaleboxto(8,2){foo bar baz} +\end{pspicture} +bar + +\clearpage +foo +\begin{postscript} +\psscalebox{0.5}{% +\psCalDodecaeder[style=july,unit=0.75,Year=2007] +} +\end{postscript} +bar + +\includegraphics{tux}% a jpg image + +\clearpage + +foo bar baz foo bar baz + +\begin{postscript}\rnode{foo}{foo} bar baz + +foo bar baz foo bar \rnode{baz}{baz} foo bar baz +\ncarc[linecolor=red]{<->}{foo}{baz}\end{postscript} + +foo bar baz + +\begin{postscript} +\psframebox{% +\begin{pspicture}(-3,-2)(3,6.5) +\pstThreeDCoor[zMax=7] +\pstIIIDCylinder[RotY=30,fillstyle=solid,fillcolor=red!20,linecolor=black!60](0,0,0){2}{5} +\pstThreeDLine[linecolor=red]{->}(0,0,5)(0,0,7) +\pstThreeDLine[linecolor=red]{->}(-1,0,0)(4,0,0) +\pstThreeDLine[linecolor=red]{->}(0,-1,0)(0,4,0) +\end{pspicture} +} +\end{postscript} + +\end{document} \ No newline at end of file -- cgit v1.2.3