Thread View: ru.qa.tex
4 messages
4 total messages
Started by Julio Kuplinsky
Thu, 05 Oct 1989 22:12
tex pictures
Author: Julio Kuplinsky
Date: Thu, 05 Oct 1989 22:12
Date: Thu, 05 Oct 1989 22:12
18 lines
919 bytes
919 bytes
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.
Re: tex pictures
Author: Tara Madhyastha
Date: Fri, 06 Oct 1989 19:43
Date: Fri, 06 Oct 1989 19:43
34 lines
1655 bytes
1655 bytes
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
Re: tex pictures
Author: Julio Kuplinsky
Date: Fri, 06 Oct 1989 22:56
Date: Fri, 06 Oct 1989 22:56
71 lines
2868 bytes
2868 bytes
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.
Re: tex pictures
Author: Tara Madhyastha
Date: Mon, 09 Oct 1989 21:14
Date: Mon, 09 Oct 1989 21:14
38 lines
1984 bytes
1984 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads