LaTeX forum ⇒ TeX Live and MacTeXproblem with xdvi command Topic is solved

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
prudra
Posts: 5
Joined: Sun Nov 10, 2013 9:29 am
Location: Kolkata, India

problem with xdvi command

Postby prudra » Wed Apr 19, 2017 4:52 pm

On my Debian Jessie Marudra@mahasagar:~/groups$ xdvi group.dvi &
[1] 2737
rudra@mahasagar:~/groups$ gs: Unknown device: x11
gs: Unrecoverable error: undefined in .uninstallpagedevice
gs: Operand stack:
gs: defaultdevice
xdvik: read_from_gs: Connection reset by peer

te DE I have texlive-latex3 installed. I have a number of `\includegraphics{figure.eps}' in the `file.tex' file. As long as the total file length was small there was no problem of showing the figures when I ran `xdvi file.dvi &' after running `latex file.tex' . But when the file grew somewhat
large, then for the figure only the boundary was appearing, but nothing inside the boundary. But if I ran `xpdf file.pdf &' after running `latex file.tex' and
`dvipdf file.dvi', then the full figure was appearing. So it seems that the full figure was being generated by latex command but was not being shown by the
xdvi command. Also after running the xdvi command on the terminal appeared

rudra@mahasagar:~/groups$ xdvi group.dvi &
[1] 2737
rudra@mahasagar:~/groups$ gs: Unknown device: x11
gs: Unrecoverable error: undefined in .uninstallpagedevice
gs: Operand stack:
gs: defaultdevice
xdvik: read_from_gs: Connection reset by peer

This is not causing any harm but is a nuisance.
I shall appreciate help in solving the problem and avoiding the nuisance. Thanks.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8349
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Apr 21, 2017 3:52 pm

Perhaps xdvi just cannot display the embedded eps files. eps is not dvi anyway. You may need to look at the final PDF instead of at the dvi file.

Stefan
Site admin

prudra
Posts: 5
Joined: Sun Nov 10, 2013 9:29 am
Location: Kolkata, India

Postby prudra » Sat Apr 22, 2017 5:15 pm

gs --help showed that the device x11 was not listed in gs.
A survey of debian packages list showed that there is a package in their repository that has this device
ghostscript-x (9.06~dfsg-2+deb8u4)
interpreter for the PostScript language and for PDF - X11 support

So #apt-get install ghostscript-x
solved the problem.


Return to “TeX Live and MacTeX”

Who is online

Users browsing this forum: No registered users and 1 guest