Viewers for PDF, PS, and DVIGhostscript or dviout error? / dviout does not work with qtree-package

Information and discussion about output viewers related to LaTeX (e.g. Adobe Reader, Ghostview, YAP, ...)
Post Reply
justBfree
Posts: 2
Joined: Thu Nov 24, 2016 12:47 pm

Ghostscript or dviout error? / dviout does not work with qtree-package

Post by justBfree »

Hi Guys,

For some reason I have a problem with the combination of dviout and the qtree package.

Example:

Code: Select all

\documentclass[BCOR5mm,paper=a4,twoside,fleqn,pagesize,parskip,headsepline,toc=bib,
numbers=noenddot,captions=tableheading]{scrreprt}
\usepackage{qtree}                    
\begin{document}
\Tree [.S ]
\end{document}
(Be aware of the spacing in the \Tree textline.)

If I run this code with Win7, 64bit + LiveTex 2015 then I get the following error message from dviout:
"Failed to make...by the command..."
2016-11-23 20_45_25-Warning.jpg
2016-11-23 20_45_25-Warning.jpg (67.55 KiB) Viewed 72560 times
Further I get the hint from dviout "Cannot get E:\Diss\tmpps21.pbm" and dviout freezes for about 1 to 2 minutes.

I tried E:\Diss>C:/texlive/2015/tlpkg/tlgs/bin/gswin32c @tmp$.@@@
in order to get the complete error message:

Error: /stackunderflow in --restore--
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
lse 1 %stopped_push 1983 1 3 %oparray_pop 1982 1 3 %oparray_
pop 1966 1 3 %oparray_pop 1852 1 3 %oparray_pop --nostringval-
- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringv
al-- 2 %stopped_push --nostringval-- 1904 0 3 %oparray_pop --nos
tringval-- 1888 0 3 %oparray_pop --nostringval--
Dictionary stack:
--dict:1197/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)--
Current allocation mode is local
Current file position is 24
GPL Ghostscript 9.16: Unrecoverable error, exit code 1

The problem might be that for some reason the file "tmpps21.pbm" (see above) was not created.

I found the following hint in the dviout-Help:
"A Ghostscript is used that does not support the output of raw PBM files (or BMP files) specified by -GIF: (Q_E4), or there was an error in a file write (be careful with the current directory or -gdat: settings)."

So, I played arround with some dviout settings. When I change the GIF setting from RAW to something else (e.g. to "monochrome BMP"), then the situation is improved.
2016-11-24 07_48_45-Eigenschaften von DVIOUT.jpg
2016-11-24 07_48_45-Eigenschaften von DVIOUT.jpg (150.79 KiB) Viewed 72560 times
With this setting dviout does not freeze anymore, but it does not show the complete qtree (lines are missing) and still does not seem to run completely smooth, I still get a warning "Unknown special:ps: restore".

Due to my extensive use of psfrag-package PDFLaTeX is no option for me. I need dviout. Switching to Miktex with yap is also no option, yap is much too slow.

Guys, any hints or tricks or further remarks to this?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Ghostscript or dviout error? / dviout does not work with qtree-package

Post by Stefan Kottwitz »

There is pdfrack that could replace psfrag. But, pst-pdf and auto-pst-pdf can work with psfrag too.

Another suggestion: you could create the qtree image in another document, and include that as a PDF later on.

You could take a look at tikz-qtree. It should work also with LaTeX in DVI mode. Switching to that can solve this otherwise perhaps difficult issue, provides better quality (vector instead of raster image) and is good for future use with pdfLaTeX too.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Ghostscript or dviout error? / dviout does not work with qtree-package

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
justBfree
Posts: 2
Joined: Thu Nov 24, 2016 12:47 pm

Ghostscript or dviout error? / dviout does not work with qtree-package

Post by justBfree »

Stefan Kottwitz wrote:There is pdfrack that could replace psfrag. But, pst-pdf and auto-pst-pdf can work with psfrag too.

Another suggestion: ...
Hi Stefan,
Thanks for your suggestions!

Unfortunately I had the same problems with tikz-qtree. But meanwhile I played around with some dviout settings and it seems the problem is solved. But due to a lot of back and forth I cannot really say what has been the decisive point, but I think 'guessing' of the TEXROOT and TEXPK paths in the FONT tab of the dviout settings was helpful. However, I am going to take a closer look at the alternatives you mentioned, but for the time being my problem seems to be solved.
Post Reply