LaTeX forum ⇒ Viewers for PDF, PS, and DVI ⇒ Ghostscript or dviout error? / dviout does not work with qtree-package Topic is solved

justBfree
Posts: 2
Joined: Thu Nov 24, 2016 12:47 pm

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

Hi Guys,

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

Example:
\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 (67.55 KiB) Viewed 6433 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 (150.79 KiB) Viewed 6433 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!

Stefan Kottwitz
Posts: 8208
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
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

Johannes_B
Site Moderator
Posts: 3405
Joined: Thu Nov 01, 2012 4:08 pm
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
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,