[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#289848: tetex-bin: pdflatex generates truncated seminar slides



On Fri, Jan 14, 2005 at 06:03:19PM +0100, Frank Küster wrote:

> Heiko Oberdiek <oberdiek@uni-freiburg.de> wrote:
> 
> > I would not use and I am not using pdfTeX with seminar, too many problems.
> 
> Do you mean this in the sense that we should not even support users who
> still do it, and not put anything for pdfTeX in the conffile?

I am meaning me, not you. A long time ago, my decision was, not
to use or support seminar. Especially I dislike the use of
\mag. It complicates the unit handling unnecessarily.

> > Also the problem is not entirely clear to me, you mean the setting
> > of the /Rotate entry in the page attributes?
> 
> Well, look at the following minimal example:
> 
> \documentclass[a4]{seminar}
> 
> % \input seminar.bug
> % \input seminar.bg2
> 
> \begin{document}
> 
> 
> \begin{slide}
> \centerline{Slide Test}
> \end{slide}
> \end{document}
> 
> (commenting in the \input's does not change it). With latex-dvips-ps2pdf
> you get a landscape slide that is displayed as landscape by xpdf,
> acroread, etc. (I think there is still some gv bug). With the same file
> and pdflatex, you get a landscape slide that is displayed on a portrait
> sheet by the viewers, i.e. there's empty space at the bottom, while the
> rigth third is truncated.
> 
> > Then the token register \pdfpagesattr
> >   \pdfpagesattr{/Rotate 90}
> > could be used for pdfTeX.
> 
> \documentclass[a4]{seminar}
> 
> % \input seminar.bug
> % \input seminar.bg2
> 
> \pdfpagesattr{/Rotate 90}
> 
> \begin{document}
> 
> \begin{slide}
> \centerline{Slide Test}
> \end{slide}
> \end{document}
> 
> gives the same truncated page, but rotated to the right. If I put the
> command within the slide environment, nothing changes in acroread, and
> xpdf makes funny things.

Here the rotated stuff is not needed, the generated orientation
is the correct one. But you have to set the origin and page
dimensions to *true* values:

\AtBeginDocument{%
  \pdfhorigin=1truein
  \pdfvorigin=1truein
  \pdfpagewidth=297truemm
  \pdfpageheight=210truemm
}
\documentclass[a4]{seminar}

% \input seminar.bug
% \input seminar.bg2

\begin{document}

\begin{slide}
\centerline{Slide Test}
\end{slide}
\end{document}

Yours sincerely
  Heiko <oberdiek@uni-freiburg.de>



Reply to: