28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Local configuration<br />

15.2. Slide production with seminar 339<br />

The seminar class reads in the file seminar.con if it exists. This gives<br />

the user the chance <strong>to</strong> write all the specifications <strong>and</strong> new definitions that<br />

he or she always employs <strong>to</strong> this file, <strong>to</strong> have them au<strong>to</strong>matically included<br />

in every seminar source file.<br />

15.2.7 Using pdfT E X with seminar<br />

Although the seminar class originated in the pre-L AT E X 2ε days, <strong>and</strong> many<br />

of its extra features are coded for PostScript <strong>and</strong> the dvips driver without<br />

the modern graphics <strong>and</strong> color packages, there is no problem using it<br />

with <strong>to</strong>day’s L AT E X <strong>and</strong> those packages. This is particularly true for PDF<br />

output.<br />

However, with pdfT E X itself, there are some extra length parameters<br />

\pdfpagewidth <strong>and</strong> \pdfpageheight which need <strong>to</strong> be properly set <strong>to</strong><br />

get the output right. This is most simply guaranteed by including the<br />

hyperref package (Section 10.2.4) even if no other of its features is<br />

needed.<br />

Another difficulty arises if l<strong>and</strong>scape <strong>and</strong> portrait slides are mixed.<br />

If the goal is only <strong>to</strong> print <strong>to</strong> paper or transparencies, then the two<br />

orientations may be processed <strong>and</strong> output separately, as explained above.<br />

However, for an electronic presentation, this would be most inconvenient.<br />

Certainly the ability <strong>to</strong> mix the two orientations is highly desirable.<br />

The following code makes this possible. It revises the slide* environment<br />

<strong>to</strong> interchange the PDF page dimensions, so that a true portrait<br />

page is produced. (This is not possible with printed output where a single<br />

print job must have a fixed orientation.)<br />

\@ifundefined{pdfoutput}{\endinput}{%<br />

\ifcase\pdfoutput \endinput \fi}<br />

\newcomm<strong>and</strong>*{\pdf@revpage}{%<br />

\@tempdima=\pdfpagewidth<br />

\pdfpagewidth=\pdfpageheight<br />

\pdfpageheight=\@tempdima<br />

\@tempdima=\paperwidth<br />

\paperwidth=\paperheight<br />

\paperheight=\@tempdima<br />

}<br />

\ifarticle \pdf@revpage \fi<br />

\renewcomm<strong>and</strong>{\printl<strong>and</strong>scape}{}<br />

\exp<strong>and</strong>after\let\exp<strong>and</strong>after\slide@str<br />

\csname slide*\endcsname<br />

\@namedef{slide*}{\pdf@revpage\slide@str}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!