Quote:
Originally Posted by astrogeek
If I understand your problem description corrrectly, I suspect that the problem which causes the error message is also the cause of the xdvi layout problem. Because PDF appears to be correct Latex is probably not involved.
I am not a Debian user, but a quick DuckDuckGo of the error message turns up multiple threads which indicate this to be a problem of gs version under Debian releases. For example this one.
You may also find the GNU documentation for gs devices helpful.
I would recommend trying to resolve the gs device issue first, then fix your TeX source if layout problems persist.
|
I went through the first link and one of the answers is here
07/06/07 20:33
Well, I have figured a work-around. There seem to have been two
versions of gs on my system! So when I would do:
$which gs
I would get: /usr/local/bin/gs, and doing
$/usr/local/bin/gs --help
didn't return x11 as an output driver. I figured out that there was
another 'version' of gs on my machine at /usr/bin/gs; this was
actually a soft link pointing to /etc/alternatives/gs. Luckily, this
build of gs had x11 in it - i.e. doing a
$/etc/alternatives/gs --help
did return x11 as a device driver. So I just renamed /usr/local/bin/gs
to something else, and everything (xdvi, gv etc.) began working!
In my case /usr/bin/gs --help showed that no x11 was listed as device. However, there was no other gs in
/etc/alternatives/ So that really didn't help. But there was another post in that link:
I have the same problem now, "gs - Unkown device x11".
Does someone else know how to fix it?
Re: gs - unknown device x11 jych...@gmail.com 05/07/07 03:01
OK, I figured out the how.....
I re-compiled ghostscript source code and then installed it.
everything starts working fine.
I think this is the way out for me; but HOW TO DO THE TASK? Any Tutorial?