Document Classesportrait/landscape mess with seminar documentclass

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
blake5634
Posts: 5
Joined: Wed Oct 22, 2008 6:01 am

portrait/landscape mess with seminar documentclass

Post by blake5634 »

I've been making slides with \documentclass{seminar} happily for years but now with my new kubuntu 8.04 distro, seminar slides come out on portrait paper (but printed as though the paper was landscape) so that the right 1/3 of the slide is cut off and there is a huge white space below the slide.

documents that compile perfectly on other machines make this problem on the kubuntu 8.04.

Any ideas?

Blake

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

portrait/landscape mess with seminar documentclass

Post by Stefan Kottwitz »

Hi Blake,

welcome to the board!
Could you post a minimal working example showing the problem?
I'm using Ubuntu 8.04 to and would test it on my system trying to find a fix.

Stefan
LaTeX.org admin
blake5634
Posts: 5
Joined: Wed Oct 22, 2008 6:01 am

Re: portrait/landscape mess with seminar documentclass

Post by blake5634 »

Thanks! Attached find minimal example. Works slightly differently with pdflatex but still wrong.

Blake
Attachments
example.zip
t.tex, outputwith pdflatex, output with latex/dvips
(19.15 KiB) Downloaded 369 times
blake5634
Posts: 5
Joined: Wed Oct 22, 2008 6:01 am

Re: portrait/landscape mess with seminar documentclass

Post by blake5634 »

Even more minimal example:

\documentclass{seminar}
\begin{document}
\begin{slide}
\section{Hello!}
\end{slide}
\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

portrait/landscape mess with seminar documentclass

Post by Stefan Kottwitz »

Hi,

a very quick solution is to use pdflatex and hyperref, just load hyperref in the preamble.
hyperref will correct it, in that case there's no need to experiment using the geometry package or changing \pdfpagewidth, \pdfpageheight. But of course one could examine the hyperref source code to find out how it's done. But I don't think it's important because the seminar class is really old, the most recent version is more than 11 years old, today I'm preferring other packages, have a look at LaTeX classes designed to create presentations for classes and links or look into the TeX Catalogue.

Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

portrait/landscape mess with seminar documentclass

Post by Stefan Kottwitz »

Hi,

here's a solution inspired by the hyperref code for use with pdflatex:

Code: Select all

\setlength{\pdfhorigin}{1truein}
\setlength{\pdfvorigin}{1truein}
\makeatletter
\setlength{\pdfpagewidth}{\strip@pt\paperheight truept}
\setlength{\pdfpageheight}{\strip@pt\paperwidth truept}
\makeatother
Just insert this into your preamble.

Stefan
LaTeX.org admin
blake5634
Posts: 5
Joined: Wed Oct 22, 2008 6:01 am

Re: portrait/landscape mess with seminar documentclass

Post by blake5634 »

Thanks for the great, fast, help everyone!

B
blake5634
Posts: 5
Joined: Wed Oct 22, 2008 6:01 am

Re: portrait/landscape mess with seminar documentclass

Post by blake5634 »

Quick follow up:

The last solution (code extracted from hyperref) still requires pdflatex to work, i.e. does not work with plain latex.

I am using seminar class and latex sometimes because of older material that I have around that I need to be compatible with.

A huge hassle is the fact that latex will only take eps files and pdflatex will not. This makes it hard to switch over to pdflatex.

Blake
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: portrait/landscape mess with seminar documentclass

Post by phi »

pdftex can include PDF graphics, so convert your EPS files to PDF files using the tool epstopdf or the newer a2ping, which should be included in your TeX distribution. For TeXLive on Ubuntu, they are part of the package texlive-extra-utils and texlive-base-bin, respectively.
Post Reply