kuplinsk@math.rutgers.edu (Julio Kuplinsky) (10/06/89)
I have tried unsuccessfully to include a LaTeX picture in a plain TeX file by using the following procedure: 1. latex myfile %myfile.tex is a LaTeX source. 2. dvi2ps myfile.dvi > myfile.ps 3. create the file myfile2.tex \vskip 2 in %space for the picture \special{psfile=myfile.ps} \bye 4. tex myfile2 5. lpr -d myfile2.dvi I wasn't expecting any problems since this is not something funny like a macintosh picture. Can anybody tell me what's wrong? Thanx.
tara@math.rutgers.edu (Tara Madhyastha) (10/07/89)
In article <Oct.5.18.12.00.1989.10808@math.rutgers.edu> kuplinsk@math.rutgers.edu (Julio Kuplinsky) writes: > I have tried unsuccessfully to include a LaTeX picture in a plain TeX file > by using the following procedure: > > 1. latex myfile %myfile.tex is a LaTeX source. > 2. dvi2ps myfile.dvi > myfile.ps > 3. create the file myfile2.tex > > \vskip 2 in %space for the picture > \special{psfile=myfile.ps} > \bye > > 4. tex myfile2 > 5. lpr -d myfile2.dvi > Assuming by "LaTeX picture", you mean a LaTeX file which uses the built-in picture environment, you don't need to convert it to PostScript. Inserting the line \input pictex.tex \input latexpicobjs.tex in the beginning of your TeX document will allow you to use the LaTeX picture objects. You might also want to check out the PicTeX macros for simple \TeX figures. In general, TeX documents converted to PostScript via dvi2ps cannot be included well as \specials other TeX documents. The new filter I hope to install shortly, dvitps, will be better that way. tara -- Tara Madhyastha tara@rutgers.edu
kuplinsk@math.rutgers.edu (Julio Kuplinsky) (10/07/89)
Subject: Re: tex pictures Newsgroups: ru.qa.tex,comp.text Distribution: usa Keywords: LateX TeX Summary: doesn't work References: <Oct.5.18.12.00.1989.10808@math.rutgers.edu> <Oct.6.15.43.00.1989.23045@math.rutgers.edu> In article <Oct.6.15.43.00.1989.23045@math.rutgers.edu>, tara@math.rutgers.edu (Tara Madhyastha) writes: > In article <Oct.5.18.12.00.1989.10808@math.rutgers.edu> kuplinsk@math.rutgers.edu (Julio Kuplinsky) writes: > > > I have tried unsuccessfully to include a LaTeX picture in a plain TeX file > > by using the following procedure: > > > > 1. latex myfile %myfile.tex is a LaTeX source. > > 2. dvi2ps myfile.dvi > myfile.ps > > 3. create the file myfile2.tex > > > > \vskip 2 in %space for the picture > > \special{psfile=myfile.ps} > > \bye > > > > 4. tex myfile2 > > 5. lpr -d myfile2.dvi > > > Assuming by "LaTeX picture", you mean a LaTeX file which uses the > built-in picture environment, you don't need to convert it to > PostScript. Inserting the line > > \input pictex.tex > \input latexpicobjs.tex > > in the beginning of your TeX document will allow you to use the LaTeX > picture objects. You might also want to check out the PicTeX macros > for simple \TeX figures. > > In general, TeX documents converted to PostScript via dvi2ps cannot be > included well as \specials other TeX documents. The new filter I hope > to install shortly, dvitps, will be better that way. > > tara > -- > Tara Madhyastha tara@rutgers.edu Well, it doesn't work. I'm referring to "Rutgers Tex, Latex and Amstex Reference, by D. Steiner and T. Madhyastha": p. 34: The picture environment in Latex provides ... picture objects ... Users of plain Tex can get access to these Latex picture objects by inputting the file latexpicobjs.tex. So my plain tex file is: \input pictex.tex \input latexpicobjs.tex \setlength{\unitlength}{1mm} \vskip 1 in \begin{picture}(70,40)(-35,-20) \thicklines \put(30,5){A} \put(30,5){\line(2,1){10}} \put(20,5){\circle*{1.5}} \end{picture} \bye Texing it produces all sorts of error messages. Deleting \begin/end{picture} doesn't help either. Am I missing something? Julio.
tara@math.rutgers.edu (Tara Madhyastha) (10/10/89)
In article <Oct.6.18.56.08.1989.25600@math.rutgers.edu> kuplinsk@math.rutgers.edu (Julio Kuplinsky) writes: > > Well, it doesn't work. I'm referring to "Rutgers Tex, Latex and Amstex > Reference, by D. Steiner and T. Madhyastha": > > p. 34: The picture environment in Latex provides ... picture objects ... > Users of plain Tex can get access to these Latex picture objects by > inputting the file latexpicobjs.tex. > > So my plain tex file is: > [...] > > Texing it produces all sorts of error messages. Deleting > \begin/end{picture} doesn't help either. Am I missing something? > Julio. Yes, I'm afraid it isn't that easy! Referring to the same reference, a little further down: "Complete descriptions of all the PiCTeX macros and examples of how to place LaTeX picture objects in a PiCTeX picture are provided in The PiCTeX Manual by Michael Wichurn." You access LaTeX picture objects in TeX by typing \put {picture object} [B1] at xcoord ycoord Complete instructions are given in the PiCTeX manual, which you can get from TUG. (tug@math.ams.com) I recommend that you either use the LaTeX picture environment within an LaTeX document *or* the PiCTeX picture environment within a TeX document (\put 'ing your LaTeX picture inside the PiCTeX picture). Tara Madhyastha -- Tara Madhyastha tara@rutgers.edu