[pstricks] Multi-inputing PStricks files :-)
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Tue Dec 2 15:25:42 CET 2003
Сторожев Максим wrote:
> Well, I have a good idea (it's seems to so :-)).
>
> Sometimes I need to arrange some PStricks files to one. Let's call that file
> master-file, but for PStricks ones.
>
> So, we have:
>
> PStricks files 1.pic -- it's own coordinates -- (0,0)(40,40)
> PStricks files 2.pic -- it's own coordinates -- (0,0)(40,40)
> PStricks files 3.pic -- it's own coordinates -- (0,0)(40,40)
> PStricks files 4.pic -- it's own coordinates -- (0,0)(40,40)
>
> \begin{pspicture}(0,0)(100,100)
> \input(5,60){1.pic}
> \input(55,60){2.pic}
> \input(5,5){3.pic}
> \input(55,5){4.pic}
> \end{pspicture}
>
> A small picture to illustrate that --- in attachment.
>
> My question is: is it impossible???
sure, by using the default \rput macro. The file contents
for this demo (/tmp/testa.pic) is a one liner:
\psframe[linecolor=red,linewidth=4pt](0,0)(40,40)
but can contain any pstricks stuff.
Herbert
\documentclass[a4paper,12pt]{article}
\usepackage{pstricks}
\begin{document}
\psset{unit=1mm}
\begin{pspicture}(0,0)(100,100)
\psframe(0,0)(100,100)
\rput[lb](5,55){\input{/tmp/testa.pic}}
\rput[lb](55,55){\input{/tmp/testa.pic}}
\rput[lb](5,5){\input{/tmp/testa.pic}}
\rput[lb](55,5){\input{/tmp/testa.pic}}
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list