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

how to PDF landscape slides?

43 views
Skip to first unread message

Alan G Isaac

unread,
Mar 6, 2002, 3:04:11 PM3/6/02
to
Using the slides class with the landscape option works great for
making screen presentable slides, *if* I'm willing to stick with my
dvi previewer (e.g., yap). But if I use dvipdfm (or even pdflatex)
the landscape orientation is lost and the slides are cut off at
the portrait orientation borders.

Can I tell dvipdfm to honor this info, which I take it is in the dvi file?

Thanks,
Alan Isaac


Kris Luyten

unread,
Mar 6, 2002, 3:42:36 PM3/6/02
to
Alan G Isaac wrote:

> Using the slides class with the landscape option works great for
> making screen presentable slides, *if* I'm willing to stick with my
> dvi previewer (e.g., yap). But if I use dvipdfm (or even pdflatex)
> the landscape orientation is lost and the slides are cut off at
> the portrait orientation borders.


I am not sure, but I think I rememeber :-P adding "landscape" in the
documentclass options
and \usepackage{hyperref} works for pdf files


regards,
Kris
--
Kris Luyten
kris ad lumumba dot luc dot ac dot be
http://lumumba.luc.ac.be/kris

Alan G Isaac

unread,
Mar 7, 2002, 9:18:10 AM3/7/02
to
> Alan G Isaac wrote:
> > Using the slides class with the landscape option works great for
> > making screen presentable slides, *if* I'm willing to stick with my
> > dvi previewer (e.g., yap). But if I use dvipdfm (or even pdflatex)
> > the landscape orientation is lost and the slides are cut off at
> > the portrait orientation borders.


On Wed, 6 Mar 2002 21:42:36 +0100, Kris Luyten <kris....@luc.ac.be> wrote:
> I am not sure, but I think I rememeber :-P adding "landscape" in the
> documentclass options
> and \usepackage{hyperref} works for pdf files


I am not having trouble with the .dvi file, just with the PDF file.
Yes, using the slides class with the landscape option works great.
But I do not understand why the info that is in the .dvi file is not
honored by dvipdfm.

It is the case that one can force landscape with the -l switch for dvipdfm.
Perhaps I should be very happy about this. (In fact I am!) I am just asking
whether dvipdfm can be configured to honor the information that is in the .dvi
file (when I use the landscape option to the slides class).

I hope that is clearer.

Thanks,
Alan Isaac


Dan Luecking

unread,
Mar 7, 2002, 4:07:39 PM3/7/02
to
Alan G Isaac <ais...@american.edu> wrote in message news:<1103_10...@supernews.american.edu>...

> > Alan G Isaac wrote:
> > > Using the slides class with the landscape option works great for
> > > making screen presentable slides, *if* I'm willing to stick with my
> > > dvi previewer (e.g., yap). But if I use dvipdfm (or even pdflatex)
> > > the landscape orientation is lost and the slides are cut off at
> > > the portrait orientation borders.
>
>
> On Wed, 6 Mar 2002 21:42:36 +0100, Kris Luyten <kris....@luc.ac.be> wrote:
> > I am not sure, but I think I rememeber :-P adding "landscape" in the
> > documentclass options
> > and \usepackage{hyperref} works for pdf files
>
>
> I am not having trouble with the .dvi file, just with the PDF file.
> Yes, using the slides class with the landscape option works great.
> But I do not understand why the info that is in the .dvi file is not
> honored by dvipdfm.

Because there is no information in the dvi file. The landscape
option merely reverses the values of \paperwidth and \paperheight,
which changes LaTeX's computation of \textwidth and \textheight, etc.
That's all, none of that is sent to the dvi file. YAP can auto-detect
landscape versus portrait, but it can sometimes be fooled. There may
be some packages that do send such info to the .dvi. I thought
hyperref might be one, but it doesn't appear to be.

One normally passes such information through the .dvi via
\special commands. Dvipdfm understands only \special commands
that start with "pdf:". The documentation of dvipdfm gives the
following example for landscape pages (letter size paper):

\special{pdf: pagesize width 11.0truein height 8.5truein}

More generically (with the landscape documentclass option):

\special{pdf: pagesize width \the\paperwidth\space
height \the\paperheight}

Without the landscape option, just reverse the above values.


In pdf{la)tex there are several commands (all starting \pdf...)
that function similar to \special. For example

\setlength{\pdfpagewidth}{11in}
\setlength{\pdfpageheight}{8.5in}

should give you a landscape slide (on screen) in pdflatex. You may
need to specify in AcroRead's print dialogue you want the page
rotated to print properly.


Dan Luecking

Alan G Isaac

unread,
Mar 8, 2002, 12:06:13 PM3/8/02
to
> Alan G Isaac <ais...@american.edu> wrote in message news:<1103_10...@supernews.american.edu>...
> > I am not having trouble with the .dvi file, just with the PDF file.
> > Yes, using the slides class with the landscape option works great.
> > But I do not understand why the info that is in the .dvi file is not
> > honored by dvipdfm.

On 7 Mar 2002 13:07:39 -0800, luec...@uark.edu (Dan Luecking) wrote:
> Because there is no information in the dvi file. The landscape
> option merely reverses the values of \paperwidth and \paperheight,
> which changes LaTeX's computation of \textwidth and \textheight, etc.
> That's all, none of that is sent to the dvi file. YAP can auto-detect
> landscape versus portrait, but it can sometimes be fooled.

Aha! Well that's what fooled me!



> One normally passes such information through the .dvi via
> \special commands. Dvipdfm understands only \special commands
> that start with "pdf:". The documentation of dvipdfm gives the
> following example for landscape pages (letter size paper):
> \special{pdf: pagesize width 11.0truein height 8.5truein}

Quite perfect! I must note the documentation did not (in contrast
to the other examples) include the syntax for the special command,
which appeared to suggest some difference but apparently did not.

Very helpful.
Thanks!

Alan Isaac


0 new messages