LaTeX forum ⇒ Viewers for PDF, PS, and DVIAlternative DVI Viewers

Information and discussion about output viewers related to LaTeX (e.g. Adobe Reader, Ghostview, YAP, ...)
Parallax
Posts: 5
Joined: Sun Sep 25, 2011 4:59 pm

Alternative DVI Viewers

Postby Parallax » Sun Sep 25, 2011 5:13 pm

Using TeXnicCenter and MiKTeX with Yap viewer for DVI output currently. Yap doesn't have options I want in a DVI viewer (easy zooming to 100% or fit, etc...), so I'm trying to find something else to use. Any suggestions for other DVI viewers?

I like the TeXworks viewer that comes with MiKTeX, but unfortunately it doesn't seem to handle DVI files.

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Sun Sep 25, 2011 5:41 pm

Why do want to look at the DVI output at all? DVI is only an intermediate format and not intended to show the final output. Most viewers have difficulties in rendering postscript stuff correctly. Furthermore this format doesn't embed external graphics.

LaTeX aims more and more for PDF as final output format, be it by compiling directly with PDFLaTeX or indirectly with LaTeX to DVI with subsequent conversion via PS to PDF. And TeXworks accommodates to that with its internal PDF viewer and its settings for PDF producing compiler engines.


Best regards and welcome to the board
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Parallax
Posts: 5
Joined: Sun Sep 25, 2011 4:59 pm

Postby Parallax » Sun Sep 25, 2011 6:54 pm

I would like to use pdf as the output, but my compile times increase quickly when I include only a few images. For example, my current document contains about 10 pages of text and 10 diagrams, and the compile time is ~6 seconds. The diagrams are relatively simple, mostly .eps format or .png.

Including just one of the eps files which contains 100 circles increases the compile time by ~1 second, and I can't figure out why. I am using the epstopdf package which converts the eps files during compile, but watching the console output during compile shows this is almost instantaneous.

Not embedding the images by using dvi output means that I can reliably compile in about 1 second, and is the only way I've found to speed up the compile process.

I've tried compiling with/without text and images and achieved the following times:

pdf:
no text, no images: 1 second
text, no images: 1 second
text, images: 6 seconds

dvi(no raster images):
no text, no images: 1 second
text, no images: 1 second
text, images: 1 second

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Sun Sep 25, 2011 7:26 pm

It will make almost no difference if you compile directly to PDF or via conversion. The compilation to DVI seems fast, but you didn't take the time for the subsequent conversion for the whole document into account. And of course the conversion needs time.

As far as I know, using the epstopdf package only converts the images once, hence following compilation processes should go faster. On modern TeX distributions (TeX Live 2010 and newer, MiKTeX 2.9) this package is not necessary any more. I still think that you are better with direct compilation by PDFLaTeX.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Parallax
Posts: 5
Joined: Sun Sep 25, 2011 4:59 pm

Postby Parallax » Sun Sep 25, 2011 9:43 pm

I'm trying to view the dvi directly so I don't need to perform the dvi->pdf conversion. The final paper will be output in pdf, but for local editing and viewing I don't care what format it's in(as long as I can see the formatted document with images).

I am using the Miktex texify command if that makes a difference (it can output pdf or dvi).

The epstopdf package seems to perform the conversion on every compile, and there are no converted pdf files remaining after the compilation process completes. I am using Miktex 2.9, so is there a better way to include eps files?

Thanks for your you help btw.

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Sep 26, 2011 10:12 am

As far as I know there is a Wind0ws port for Evince available. It is a multi-format viewer not only for DVI. So I suggest to give this a try.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Parallax
Posts: 5
Joined: Sun Sep 25, 2011 4:59 pm

Postby Parallax » Mon Sep 26, 2011 3:27 pm

Evince looks like it might be ok, unfortunately it seems working dvi support never made it into the windows version since it crashes when trying to open one. I'm trying to install and configure some supporting libraries, but no luck yet.

Parallax
Posts: 5
Joined: Sun Sep 25, 2011 4:59 pm

Postby Parallax » Mon Sep 26, 2011 4:57 pm

Found part of the reason for slow pdf compilation: using -c option for texify. The documentation states this "removes all auxiliary files", but apparently old versions of the files can be used to speed up the next compilation.

Removing the -c option and adding -q (hide text output) brings the compilation down to 2-3 seconds for pdf. This also has the side effect of allowing pdfs created by epstopdf to remain after compilation, though this does clutter the folders somewhat.

It's still not as fast as dvi, but is a little more usable for me now.


Return to “Viewers for PDF, PS, and DVI”

Who is online

Users browsing this forum: No registered users and 2 guests