
n@1105: %$Id: a0poster.cls,v 1.5 1999/04/05 14:49:56 mjf Exp $
n@1105: %% 
n@1105: %% This is file `a0poster.cls'
n@1105: %% 
n@1105: %% Copyright (C) 07.05.97 Gerlinde Kettl and Matthias Weiser
n@1105: %%
n@1105: %% Problems, bugs and comments to 
n@1105: %% gerlinde.kettl@physik.uni-regensburg.de
n@1105: %% 
n@1105: %% changed textwidths and margins to cope with printable area and
n@1105: %% frame.  Make sure that the offsets are set to -1in!
n@1105: %% Also changed scaling for a0->a4, since this was wrong.
n@1105: 
n@1105: %% This version changed by Hugh Pumphrey on 4.5.1999. Every instance
n@1105: %% of the string ``draft'' replaced by the string ``preview''. This gives 
n@1105: %% an a4 size preview but includes the postscript figures
n@1105: 
n@1105: \ProvidesClass{a0poster}[1997/05/07 v1.21b a0poster class (GK, MW)]
n@1105: \NeedsTeXFormat{LaTeX2e}[1995/06/01]
n@1105: \LoadClass{article}
n@1105: 
n@1105: \newif\ifportrait
n@1105: \newif\ifanullb
n@1105: \newif\ifanull
n@1105: \newif\ifaeins
n@1105: \newif\ifazwei
n@1105: \newif\ifadrei
n@1105: \newif\ifpreview
n@1105: 
n@1105: \newcount\xkoord
n@1105: \newcount\ykoord
n@1105: \newcount\xscale
n@1105: \newcount\yscale
n@1105: 
n@1105: \DeclareOption{a0b}{
n@1105: \anullbtrue
n@1105: \xkoord=2592 % big points (1 bp=1/72 inch)
n@1105: \ykoord=3666 % big points (1 bp=1/72 inch)
n@1105: \xscale=23
n@1105: \yscale=23
n@1105: }
n@1105: \DeclareOption{a0}{
n@1105: \anulltrue\anullbfalse
n@1105: \xkoord=2380 % big points (1 bp=1/72 inch)
n@1105: \ykoord=3368 % big points (1 bp=1/72 inch)
n@1105: \xscale=25
n@1105: \yscale=25
n@1105: }
n@1105: \DeclareOption{a1}{
n@1105: \aeinstrue\anullbfalse
n@1105: \xkoord=1684 % big points (1 bp=1/72 inch)
n@1105: \ykoord=2380 % big points (1 bp=1/72 inch)
n@1105: \xscale=3
n@1105: \yscale=3
n@1105: }
n@1105: \DeclareOption{a2}{
n@1105: \azweitrue\anullbfalse
n@1105: \xkoord=1190 % big points (1 bp=1/72 inch)
n@1105: \ykoord=1684 % big points (1 bp=1/72 inch)
n@1105: \xscale=4
n@1105: \yscale=4
n@1105: 
n@1105: }
n@1105: \DeclareOption{a3}{
n@1105: \adreitrue\anullbfalse
n@1105: \xkoord=842  % big points (1 bp=1/72 inch)
n@1105: \ykoord=1190 % big points (1 bp=1/72 inch)
n@1105: \xscale=6
n@1105: \yscale=6
n@1105: }
n@1105: \DeclareOption{landscape}{
n@1105: \portraitfalse
n@1105: }
n@1105: \DeclareOption{portrait}{
n@1105: \portraittrue
n@1105: }
n@1105: \DeclareOption{preview}{
n@1105: \previewtrue
n@1105: }
n@1105: \DeclareOption{final}{
n@1105: \previewfalse
n@1105: }
n@1105: \DeclareOption*{\PackageWarning{a0poster}{Unknown Option \CurrentOption}}
n@1105: \ExecuteOptions{landscape,a0b,final}
n@1105: \ProcessOptions\relax
n@1105: 
n@1105: \ifanullb
n@1105:    \setlength{\paperwidth}{129.3cm} %% 36 * sqrt(2) in
n@1105:    \setlength{\paperheight}{91.4cm} %% 36 in
n@1105:    \setlength{\textwidth}{119.3cm} %% paperwidth - (5cm + 5cm)
n@1105:    \setlength{\textheight}{81.4cm} %% paperheight - (5cm + 5cm)
n@1105: \else\ifanull
n@1105:         \setlength{\paperwidth}{118.82cm}
n@1105:         \setlength{\paperheight}{83.96cm}
n@1105:         \setlength{\textwidth}{108.82cm} %% paperwidth - (5cm + 5cm)
n@1105:         \setlength{\textheight}{73.96cm} %% paperheight - (5cm + 5cm)
n@1105:      \else\ifaeins
n@1105:              \setlength{\paperwidth}{83.96cm}
n@1105:              \setlength{\paperheight}{59.4cm}
n@1105:              \setlength{\textwidth}{79.96cm}
n@1105:              \setlength{\textheight}{55.4cm}
n@1105:           \else\ifazwei
n@1105:                   \setlength{\paperwidth}{59.4cm}
n@1105:                   \setlength{\paperheight}{41.98cm}
n@1105:                   \setlength{\textwidth}{55.4cm}
n@1105:                   \setlength{\textheight}{37.98cm}
n@1105:                \else\ifadrei
n@1105:                        \setlength{\paperwidth}{41.98cm}
n@1105:                        \setlength{\paperheight}{29.7cm}
n@1105:                        \setlength{\textwidth}{37.98cm}
n@1105:                        \setlength{\textheight}{25.7cm}
n@1105:                     \else\relax
n@1105:                     \fi
n@1105:                \fi
n@1105:           \fi
n@1105:      \fi
n@1105: \fi
n@1105: 
n@1105: 
n@1105: \ifportrait
n@1105:    \newdimen\tausch
n@1105:    \setlength{\tausch}{\paperwidth}
n@1105:    \setlength{\paperwidth}{\paperheight}
n@1105:    \setlength{\paperheight}{\tausch}
n@1105:    \setlength{\tausch}{\textwidth}
n@1105:    \setlength{\textwidth}{\textheight}
n@1105:    \setlength{\textheight}{\tausch}
n@1105: \else\relax
n@1105: \fi
n@1105: 
n@1105: %% Setting proper dimensions for the HP2500CP printer (height = 36 in)
n@1105: %%   Landscape: unprintable areas
n@1105: %%   	L: 27.6mm
n@1105: %%   	R: 27.1mm
n@1105: %%   	T: 18.4mm
n@1105: %%   	B: 18.1mm
n@1105: 
n@1105: 
n@1105: \voffset -1in
n@1105: \hoffset -1in
n@1105: 
n@1105: \setlength{\headheight}{0 cm}
n@1105: \setlength{\headsep}{0 cm}
n@1105: \setlength{\topmargin}{5 cm} %% 3 cm for unprintable at top
n@1105: 			     %% (landscape) + 2 cm from border
n@1105: \setlength{\oddsidemargin}{5 cm} %% 3 cm for unprintable at left
n@1105: 			    	 %% (landscape) + 2 cm from border
n@1105: \setlength{\topskip}{0 cm}
n@1105: 
n@1105: \catcode`\%=11
n@1105: \newwrite\Ausgabe
n@1105: \immediate\openout\Ausgabe=a0header.ps
n@1105: \write\Ausgabe{%%BeginFeature *PageSize ISOA0/ISO A0}
n@1105: \ifpreview\write\Ausgabe{2 dict dup /PageSize [595 842] put dup /ImagingBBox null put}
n@1105: \else\write\Ausgabe{2 dict dup /PageSize [\number\xkoord\space \number\ykoord] put dup /ImagingBBox null put}\fi
n@1105: \write\Ausgabe{setpagedevice}
n@1105: \ifpreview\write\Ausgabe{0.\number\xscale\space 0.\number\yscale\space scale}\else\relax\fi
n@1105: \write\Ausgabe{%%EndFeature}
n@1105: \closeout\Ausgabe
n@1105: \catcode`\%=14
n@1105: 
n@1105: \special{header=./a0header.ps}
n@1105: 
n@1105: \input{a0size.sty}
n@1105: 
n@1105: \renewcommand{\tiny}{\fontsize{12}{14}\selectfont}
n@1105: \renewcommand{\scriptsize}{\fontsize{14.4}{18}\selectfont}   
n@1105: \renewcommand{\footnotesize}{\fontsize{17.28}{22}\selectfont}
n@1105: \renewcommand{\small}{\fontsize{20.74}{25}\selectfont}
n@1105: \renewcommand{\normalsize}{\fontsize{24.88}{30}\selectfont}
n@1105: \renewcommand{\large}{\fontsize{29.86}{37}\selectfont}
n@1105: \renewcommand{\Large}{\fontsize{35.83}{45}\selectfont}
n@1105: \renewcommand{\LARGE}{\fontsize{43}{54}\selectfont}
n@1105: \renewcommand{\huge}{\fontsize{51.6}{64}\selectfont}
n@1105: \renewcommand{\Huge}{\fontsize{61.92}{77}\selectfont}
n@1105: \newcommand{\veryHuge}{\fontsize{74.3}{93}\selectfont}
n@1105: \newcommand{\VeryHuge}{\fontsize{89.16}{112}\selectfont}
n@1105: \newcommand{\VERYHuge}{\fontsize{107}{134}\selectfont}
n@1105: 
n@1105: \setlength\smallskipamount{6pt plus 2pt minus 2pt}
n@1105: \setlength\medskipamount{12pt plus 4pt minus 4pt}
n@1105: \setlength\bigskipamount{24pt plus 8pt minus 8pt}
n@1105: 
n@1105: \setlength\abovecaptionskip{25pt}
n@1105: \setlength\belowcaptionskip{0pt}
n@1105: \setlength\abovedisplayskip{25pt plus 6pt minus 15 pt}
n@1105: \setlength\abovedisplayshortskip{0pt plus 6pt}
n@1105: \setlength\belowdisplayshortskip{13pt plus 7pt minus 6pt}
n@1105: \setlength\belowdisplayskip\abovedisplayskip
n@1105: 
n@1105: \normalsize
n@1105: 
n@1105: \AtBeginDocument{
n@1105: \ifanullb
n@1105:    \ifportrait\special{papersize=91.4cm,129.3cm}\else\special{papersize=129.3cm,91.4cm}\fi
n@1105: \else\ifanull
n@1105:         \ifportrait\special{papersize=83.96cm,118.82cm}\else\special{papersize=118.82cm,83.96cm}\fi
n@1105:      \else\ifaeins
n@1105:              \ifportrait\special{papersize=59.4cm,83.96cm}\else\special{papersize=83.96cm,59.4cm}\fi
n@1105:           \else\ifazwei
n@1105:                   \ifportrait\special{papersize=41.98cm,59.4cm}\else\special{papersize=59.4cm,41.98cm}\fi
n@1105:                \else\ifadrei
n@1105:                       \ifpreview
n@1105:                        \ifportrait\special{papersize=29.7cm,41.35cm}\else\special{papersize=41.98cm,29.0cm}\fi
n@1105:                       \else
n@1105:                        \ifportrait\special{papersize=29.7cm,41.98cm}\else\special{papersize=41.98cm,29.7cm}\fi
n@1105:                       \fi
n@1105:                     \else\relax
n@1105:                     \fi
n@1105:                \fi
n@1105:           \fi
n@1105:      \fi
n@1105: \fi
n@1105: \pagestyle{empty}}
n@1105: 
n@1105: \endinput
n@1105: %% 
n@1105: %% End of file `a0poster.cls'.




