Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gv clipping in landscape?!

0 views
Skip to first unread message

Christian Sgraja

unread,
Dec 10, 2001, 11:19:04 AM12/10/01
to
Hello,

I have a problem displaying pages which are in landscape orientation
(e.g. slides made with latex and dvips). gv displays the ps-file
in landscape orientation, but clips the right side. The ps-file
prints fine, and the ps-code looks correct!

Duncan McEwan posted the same problem in June this year
(comp.lang.postscript) and reported the following:

> If I tell gv to display the page in portrait orientation,
> so that it is displayed on its side, the page is not clipped.

> It seems as if the clipping region is not being rotated when the
> page is displayed in landscape orientation and so is only 595 units
> wide rather than the 842 I would expect (these are A4 pages).

I'm also getting this behaviour of gv...

Unfortunetly the REactions on Duncan's posting did not help
solving the problem :-( So the question is still open for me.

My configuration:
- Unix solaris 7
- gs 7.03
- gv 3.5.8

A sample file is here:
http://it.e-technik.uni-ulm.de/~sgraja/test.ps

Thanx for any advice.

Christian.

dunkie

unread,
Dec 10, 2001, 9:30:13 PM12/10/01
to
In article <3C14E078...@it.e-technik.uni-ulm.de>, Christian Sgraja
<christia...@it.e-technik.uni-ulm.de> wrote:

Looks fine when distilled to a PDF using Adobe Acrobat Distiller and
viewed using Adobe Acrobat. :)

Lee Sau Dan

unread,
Dec 11, 2001, 2:52:08 AM12/11/01
to
>>>>> "Christian" == Christian Sgraja <christia...@it.e-technik.uni-ulm.de> writes:

Christian> Hello, I have a problem displaying pages which are in
Christian> landscape orientation (e.g. slides made with latex and
Christian> dvips). gv displays the ps-file in landscape
Christian> orientation, but clips the right side. The ps-file
Christian> prints fine, and the ps-code looks correct!

How did you generate the Postscript? Try running "dvips" with AND
without "-t landscape" to see if there are any differences. If using
A4, try also adding "-t a4". Try all combinations to see which works.
This is a bit black art, I think.

Also check the bounding box specification of your PS file with the
command "grep ^%%BoundingBox: postscript_file". Does it match the
orientation of the paper? For A4, it should say "0 0 842 595" or
something close (due to margins) for landscape.

>> If I tell gv to display the page in portrait orientation, so
>> that it is displayed on its side, the page is not clipped.

>> It seems as if the clipping region is not being rotated when
>> the page is displayed in landscape orientation and so is only
>> 595 units wide rather than the 842 I would expect (these are A4
>> pages).

Maybe, this is a problem with "gv"? I can view landscape without
problems with "gv". Does the old "ghostview" behave the same?


A last hack to try is to locate the "clip" operators in your
Postscript file, and replace them with "newpath" to see what happens.
If the result is still the same, then it should be something wrong
with "gv" and, less likely, Ghostscript. If this hack works, then
there is something wrong with the Postscript file. The program that
generated the Postscript (dvips?) would be the suspect. If you didn't
use "epsf" or "epsfig" or any Postscript specials in your LaTeX
manuscript, you can try to use "pdflatex" to generate a PDF file, and
then use a PDF utility (such as Acrobat's free Reader) to generate a
Postscript file. Does the problem go away? If so, blame "dvips", or
your inability to use the suitable (but tricky) options.

Since the Postscript can print on the printer, it is possible that it
is just the DSC comments that are fooling "gv" around. As the
printers ignore all DSC comments, they are unaffected. In this case,
the solution is to tell "gv" not to "respect document structure",
which is a toggle item on the "State" pull-down menu.


--
Lee Sau Dan 李守敦(Big5) ~{@nJX6X~}(HZ)

E-mail: dan...@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee

0 new messages