[comp.text.tex] LaTeX previewer in X?

bo@hubcap.clemson.edu (Bo Slaughter) (11/13/90)

Hi guys.

I'm looking for a LaTeX previewer that will work with X-Windows
(OpenWindows).  If anyone knows where I can find one, It would be
greatly appreciated.

Thanks,
Bo Slaughter
-- 
+--------------------------------------------------------------+
|  Bo Slaughter                bo@gumby.eng.clemson.edu        |
|    (803)656-2721         "I'm gumby.eng.clemson.edu dammit." |
+--------------------------------------------------------------+

rwberry@hubcap.clemson.edu (Robert W Berry) (11/13/90)

Bo,

You might try one of the following (all available via anonymous ftp at
uunet.uu.net in the X/contrib directory.)

	xdvi
	texx
	xtex
	pageview (If you convert your .dvi file to a postscript file first.)

Hope this helps, (tm)
Bob

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=- Bob Berry -=- PC-Guru's Inc.         ! rwberry@hubcap.clemson.edu   -=-
-=- Teach them quick, before they think. ! 803-654-7623 || 803-656-2635 -=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

yakker@ucrmath.ucr.edu (matt robinson) (11/17/90)

rwberry@hubcap.clemson.edu (Robert W Berry) writes:
->Bo,
->
->You might try one of the following (all available via anonymous ftp at
->uunet.uu.net in the X/contrib directory.)
->
->	xdvi
->	texx
->	xtex
->	pageview (If you convert your .dvi file to a postscript file first.)
->
->Hope this helps, (tm)
->Bob
->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
->-=- Bob Berry -=- PC-Guru's Inc.         ! rwberry@hubcap.clemson.edu   -=-
->-=- Teach them quick, before they think. ! 803-654-7623 || 803-656-2635 -=-
->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Well, since we are on the subject of previewers, I would like to ask a 
few questions, all of which seem to be rather confusing.  

I'm trying to create a document in LaTeX, which will include a PostScript
file within the document.  Now, when I set up the document, I type in:

% Now add a PostScript file...
\begin{figure}[h]
\vspace{5.0in}
\special{psfile=/home/maj/yakker/mypostscriptfile.ps}
\end{figure}
% Done adding Postscript file...

Now, after typing in my entire document properly, I send my file through
LaTex by:

ucrmath% latex myfile.tex

And then I print out the file with:

ucrmath% dvi2ps myfile.dvi | lpr -Plw 

All of which works perfectly fine.

Now the problem.  Say, I want to preview this file, with both the 
LaTeX materials, and the PostScript image in the .dvi file.  None of the
.dvi files can load up the image, and when converted to PostScript, 
neither xps or PageView can handle the file (PageView chokes when trying
to view an additional page by allowing only one page, and puts all of
the text UPSIDE DOWN, over the image!  xps cannot even get the image onto
the screen.)  My guess is that the dvi2ps program is only including my
PostScript file into its output, and not really incorporating the image
with the rest of the document.  Am I wrong, or is something else going
on with LaTeX, dvi2ps, and {pageview|xps}?

Just curious, as I would love to hear from anyone who has gotten anything
similar to this working, or knows of a viewer (public domain) that can
handle this type of functionality.  Thanks for your time, people!

--Matt

______________________________________________________________________________
Matt D. Robinson                             ".....if I only had a brain....."
Systems Programming Group, UC Riverside      Internet:  yakker@ucrmath.ucr.edu

hughes@azroth.csee.usf.EDU (Ken Hughes) (11/18/90)

In article <9966@ucrmath.ucr.edu>, yakker@ucrmath.ucr.edu (matt
robinson) writes:
|> ......
|> Now the problem.  Say, I want to preview this file, with both the 
|> LaTeX materials, and the PostScript image in the .dvi file.  None of
the
|> .dvi files can load up the image, and when converted to PostScript, 
|> neither xps or PageView can handle the file (PageView chokes when
trying
|> ......
|> Just curious, as I would love to hear from anyone who has gotten
anything
|> similar to this working, or knows of a viewer (public domain) that
can
|> handle this type of functionality.  Thanks for your time, people!
|> 

I've never actually looked at it, but I'd assumed the same; LaTeX only
makes
note in the .dvi file that there is another file to be included and it
is
dvi2ps which actually includes the file itself.  This is why it's also
annoying
that my dvimac (dvi to Apple ImageWriter) doesn't show the image
either.

Anyway, I've had success with gettint GhostScript V2.0 to recognize the
dvi2ps
output.  It also seems to recognize other stuff that kills the other
previewers
like PS images from Jef Poskanzer's pgmtops utility.  Last time I looked
I
think it was on gatekeeper.dec.com.

------------------------------------------------------------------------
----
Ken Hughes  (hughes@sol.csee.usf.edu) |  "Which button do I press to
turn
FT-Ph D student, PT-ex-sysadm	      |   it off?"  "Try the red one,
Dept of Comp Sci and Eng	      |   allright?"  "Which red button?"
University of South Florida	      |     from _Heathers_
------------------------------------------------------------------------
----

yorkw@stable.ecn.purdue.edu (Willis F York) (11/18/90)

Well On the suns here, we use XDVI, a Nice DVI previewer prog.
C-ya
.

--
yorkw@ecn.purdue.edu  Willis F York    
----------------------------------------------
Macintosh... Proof that a Person can use a Computer all day and still
not know ANYTHING about computers. 

jdm5548@diamond.tamu.edu (James Darrell McCauley) (11/19/90)

In article <9966@ucrmath.ucr.edu>, yakker@ucrmath.ucr.edu (matt robinson) writes:

[ talk of using psfig in LaTeX deleted]

|> Now the problem.  Say, I want to preview this file, with both the 
|> LaTeX materials, and the PostScript image in the .dvi file.  None of the

Convert it to PostScript and use GhostScript.  It works for me.
GhostScript is available from prep.ai.mit.edu.

Darrell
--- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James Darrell McCauley                 jdm5548@diamond.tamu.edu
Dept of Ag. Engineering                          (409) 845-6484
Texas A&M University, College Station, Texas 77843-2117, USA
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -