annotate docs/WAC2016Poster/a0poster.cls @ 3141:335bc77627e0 tip

fixing discrete interface to allow labels to display
author Dave Moffat <me@davemoffat.com>
date Mon, 26 Jul 2021 12:15:24 +0100
parents 2943abc7ed7b
children
rev   line source
nickjillings@2184 1 %$Id: a0poster.cls,v 1.5 1999/04/05 14:49:56 mjf Exp $
nickjillings@2184 2 %%
nickjillings@2184 3 %% This is file `a0poster.cls'
nickjillings@2184 4 %%
nickjillings@2184 5 %% Copyright (C) 07.05.97 Gerlinde Kettl and Matthias Weiser
nickjillings@2184 6 %%
nickjillings@2184 7 %% Problems, bugs and comments to
nickjillings@2184 8 %% gerlinde.kettl@physik.uni-regensburg.de
nickjillings@2184 9 %%
nickjillings@2184 10 %% changed textwidths and margins to cope with printable area and
nickjillings@2184 11 %% frame. Make sure that the offsets are set to -1in!
nickjillings@2184 12 %% Also changed scaling for a0->a4, since this was wrong.
nickjillings@2184 13
nickjillings@2184 14 %% This version changed by Hugh Pumphrey on 4.5.1999. Every instance
nickjillings@2184 15 %% of the string ``draft'' replaced by the string ``preview''. This gives
nickjillings@2184 16 %% an a4 size preview but includes the postscript figures
nickjillings@2184 17
nickjillings@2184 18 \ProvidesClass{a0poster}[1997/05/07 v1.21b a0poster class (GK, MW)]
nickjillings@2184 19 \NeedsTeXFormat{LaTeX2e}[1995/06/01]
nickjillings@2184 20 \LoadClass{article}
nickjillings@2184 21
nickjillings@2184 22 \newif\ifportrait
nickjillings@2184 23 \newif\ifanullb
nickjillings@2184 24 \newif\ifanull
nickjillings@2184 25 \newif\ifaeins
nickjillings@2184 26 \newif\ifazwei
nickjillings@2184 27 \newif\ifadrei
nickjillings@2184 28 \newif\ifpreview
nickjillings@2184 29
nickjillings@2184 30 \newcount\xkoord
nickjillings@2184 31 \newcount\ykoord
nickjillings@2184 32 \newcount\xscale
nickjillings@2184 33 \newcount\yscale
nickjillings@2184 34
nickjillings@2184 35 \DeclareOption{a0b}{
nickjillings@2184 36 \anullbtrue
nickjillings@2184 37 \xkoord=2592 % big points (1 bp=1/72 inch)
nickjillings@2184 38 \ykoord=3666 % big points (1 bp=1/72 inch)
nickjillings@2184 39 \xscale=23
nickjillings@2184 40 \yscale=23
nickjillings@2184 41 }
nickjillings@2184 42 \DeclareOption{a0}{
nickjillings@2184 43 \anulltrue\anullbfalse
nickjillings@2184 44 \xkoord=2380 % big points (1 bp=1/72 inch)
nickjillings@2184 45 \ykoord=3368 % big points (1 bp=1/72 inch)
nickjillings@2184 46 \xscale=25
nickjillings@2184 47 \yscale=25
nickjillings@2184 48 }
nickjillings@2184 49 \DeclareOption{a1}{
nickjillings@2184 50 \aeinstrue\anullbfalse
nickjillings@2184 51 \xkoord=1684 % big points (1 bp=1/72 inch)
nickjillings@2184 52 \ykoord=2380 % big points (1 bp=1/72 inch)
nickjillings@2184 53 \xscale=3
nickjillings@2184 54 \yscale=3
nickjillings@2184 55 }
nickjillings@2184 56 \DeclareOption{a2}{
nickjillings@2184 57 \azweitrue\anullbfalse
nickjillings@2184 58 \xkoord=1190 % big points (1 bp=1/72 inch)
nickjillings@2184 59 \ykoord=1684 % big points (1 bp=1/72 inch)
nickjillings@2184 60 \xscale=4
nickjillings@2184 61 \yscale=4
nickjillings@2184 62
nickjillings@2184 63 }
nickjillings@2184 64 \DeclareOption{a3}{
nickjillings@2184 65 \adreitrue\anullbfalse
nickjillings@2184 66 \xkoord=842 % big points (1 bp=1/72 inch)
nickjillings@2184 67 \ykoord=1190 % big points (1 bp=1/72 inch)
nickjillings@2184 68 \xscale=6
nickjillings@2184 69 \yscale=6
nickjillings@2184 70 }
nickjillings@2184 71 \DeclareOption{landscape}{
nickjillings@2184 72 \portraitfalse
nickjillings@2184 73 }
nickjillings@2184 74 \DeclareOption{portrait}{
nickjillings@2184 75 \portraittrue
nickjillings@2184 76 }
nickjillings@2184 77 \DeclareOption{preview}{
nickjillings@2184 78 \previewtrue
nickjillings@2184 79 }
nickjillings@2184 80 \DeclareOption{final}{
nickjillings@2184 81 \previewfalse
nickjillings@2184 82 }
nickjillings@2184 83 \DeclareOption*{\PackageWarning{a0poster}{Unknown Option \CurrentOption}}
nickjillings@2184 84 \ExecuteOptions{landscape,a0b,final}
nickjillings@2184 85 \ProcessOptions\relax
nickjillings@2184 86
nickjillings@2184 87 \ifanullb
nickjillings@2184 88 \setlength{\paperwidth}{129.3cm} %% 36 * sqrt(2) in
nickjillings@2184 89 \setlength{\paperheight}{91.4cm} %% 36 in
nickjillings@2184 90 \setlength{\textwidth}{119.3cm} %% paperwidth - (5cm + 5cm)
nickjillings@2184 91 \setlength{\textheight}{81.4cm} %% paperheight - (5cm + 5cm)
nickjillings@2184 92 \else\ifanull
nickjillings@2184 93 \setlength{\paperwidth}{118.82cm}
nickjillings@2184 94 \setlength{\paperheight}{83.96cm}
nickjillings@2184 95 \setlength{\textwidth}{108.82cm} %% paperwidth - (5cm + 5cm)
nickjillings@2184 96 \setlength{\textheight}{73.96cm} %% paperheight - (5cm + 5cm)
nickjillings@2184 97 \else\ifaeins
nickjillings@2184 98 \setlength{\paperwidth}{83.96cm}
nickjillings@2184 99 \setlength{\paperheight}{59.4cm}
nickjillings@2184 100 \setlength{\textwidth}{79.96cm}
nickjillings@2184 101 \setlength{\textheight}{55.4cm}
nickjillings@2184 102 \else\ifazwei
nickjillings@2184 103 \setlength{\paperwidth}{59.4cm}
nickjillings@2184 104 \setlength{\paperheight}{41.98cm}
nickjillings@2184 105 \setlength{\textwidth}{55.4cm}
nickjillings@2184 106 \setlength{\textheight}{37.98cm}
nickjillings@2184 107 \else\ifadrei
nickjillings@2184 108 \setlength{\paperwidth}{41.98cm}
nickjillings@2184 109 \setlength{\paperheight}{29.7cm}
nickjillings@2184 110 \setlength{\textwidth}{37.98cm}
nickjillings@2184 111 \setlength{\textheight}{25.7cm}
nickjillings@2184 112 \else\relax
nickjillings@2184 113 \fi
nickjillings@2184 114 \fi
nickjillings@2184 115 \fi
nickjillings@2184 116 \fi
nickjillings@2184 117 \fi
nickjillings@2184 118
nickjillings@2184 119
nickjillings@2184 120 \ifportrait
nickjillings@2184 121 \newdimen\tausch
nickjillings@2184 122 \setlength{\tausch}{\paperwidth}
nickjillings@2184 123 \setlength{\paperwidth}{\paperheight}
nickjillings@2184 124 \setlength{\paperheight}{\tausch}
nickjillings@2184 125 \setlength{\tausch}{\textwidth}
nickjillings@2184 126 \setlength{\textwidth}{\textheight}
nickjillings@2184 127 \setlength{\textheight}{\tausch}
nickjillings@2184 128 \else\relax
nickjillings@2184 129 \fi
nickjillings@2184 130
nickjillings@2184 131 %% Setting proper dimensions for the HP2500CP printer (height = 36 in)
nickjillings@2184 132 %% Landscape: unprintable areas
nickjillings@2184 133 %% L: 27.6mm
nickjillings@2184 134 %% R: 27.1mm
nickjillings@2184 135 %% T: 18.4mm
nickjillings@2184 136 %% B: 18.1mm
nickjillings@2184 137
nickjillings@2184 138
nickjillings@2184 139 \voffset -1in
nickjillings@2184 140 \hoffset -1in
nickjillings@2184 141
nickjillings@2184 142 \setlength{\headheight}{0 cm}
nickjillings@2184 143 \setlength{\headsep}{0 cm}
nickjillings@2184 144 \setlength{\topmargin}{5 cm} %% 3 cm for unprintable at top
nickjillings@2184 145 %% (landscape) + 2 cm from border
nickjillings@2184 146 \setlength{\oddsidemargin}{5 cm} %% 3 cm for unprintable at left
nickjillings@2184 147 %% (landscape) + 2 cm from border
nickjillings@2184 148 \setlength{\topskip}{0 cm}
nickjillings@2184 149
nickjillings@2184 150 \catcode`\%=11
nickjillings@2184 151 \newwrite\Ausgabe
nickjillings@2184 152 \immediate\openout\Ausgabe=a0header.ps
nickjillings@2184 153 \write\Ausgabe{%%BeginFeature *PageSize ISOA0/ISO A0}
nickjillings@2184 154 \ifpreview\write\Ausgabe{2 dict dup /PageSize [595 842] put dup /ImagingBBox null put}
nickjillings@2184 155 \else\write\Ausgabe{2 dict dup /PageSize [\number\xkoord\space \number\ykoord] put dup /ImagingBBox null put}\fi
nickjillings@2184 156 \write\Ausgabe{setpagedevice}
nickjillings@2184 157 \ifpreview\write\Ausgabe{0.\number\xscale\space 0.\number\yscale\space scale}\else\relax\fi
nickjillings@2184 158 \write\Ausgabe{%%EndFeature}
nickjillings@2184 159 \closeout\Ausgabe
nickjillings@2184 160 \catcode`\%=14
nickjillings@2184 161
nickjillings@2184 162 \special{header=./a0header.ps}
nickjillings@2184 163
nickjillings@2184 164 \input{a0size.sty}
nickjillings@2184 165
nickjillings@2184 166 \renewcommand{\tiny}{\fontsize{12}{14}\selectfont}
nickjillings@2184 167 \renewcommand{\scriptsize}{\fontsize{14.4}{18}\selectfont}
nickjillings@2184 168 \renewcommand{\footnotesize}{\fontsize{17.28}{22}\selectfont}
nickjillings@2184 169 \renewcommand{\small}{\fontsize{20.74}{25}\selectfont}
nickjillings@2184 170 \renewcommand{\normalsize}{\fontsize{24.88}{30}\selectfont}
nickjillings@2184 171 \renewcommand{\large}{\fontsize{29.86}{37}\selectfont}
nickjillings@2184 172 \renewcommand{\Large}{\fontsize{35.83}{45}\selectfont}
nickjillings@2184 173 \renewcommand{\LARGE}{\fontsize{43}{54}\selectfont}
nickjillings@2184 174 \renewcommand{\huge}{\fontsize{51.6}{64}\selectfont}
nickjillings@2184 175 \renewcommand{\Huge}{\fontsize{61.92}{77}\selectfont}
nickjillings@2184 176 \newcommand{\veryHuge}{\fontsize{74.3}{93}\selectfont}
nickjillings@2184 177 \newcommand{\VeryHuge}{\fontsize{89.16}{112}\selectfont}
nickjillings@2184 178 \newcommand{\VERYHuge}{\fontsize{107}{134}\selectfont}
nickjillings@2184 179
nickjillings@2184 180 \setlength\smallskipamount{6pt plus 2pt minus 2pt}
nickjillings@2184 181 \setlength\medskipamount{12pt plus 4pt minus 4pt}
nickjillings@2184 182 \setlength\bigskipamount{24pt plus 8pt minus 8pt}
nickjillings@2184 183
nickjillings@2184 184 \setlength\abovecaptionskip{25pt}
nickjillings@2184 185 \setlength\belowcaptionskip{0pt}
nickjillings@2184 186 \setlength\abovedisplayskip{25pt plus 6pt minus 15 pt}
nickjillings@2184 187 \setlength\abovedisplayshortskip{0pt plus 6pt}
nickjillings@2184 188 \setlength\belowdisplayshortskip{13pt plus 7pt minus 6pt}
nickjillings@2184 189 \setlength\belowdisplayskip\abovedisplayskip
nickjillings@2184 190
nickjillings@2184 191 \normalsize
nickjillings@2184 192
nickjillings@2184 193 \AtBeginDocument{
nickjillings@2184 194 \ifanullb
nickjillings@2184 195 \ifportrait\special{papersize=91.4cm,129.3cm}\else\special{papersize=129.3cm,91.4cm}\fi
nickjillings@2184 196 \else\ifanull
nickjillings@2184 197 \ifportrait\special{papersize=83.96cm,118.82cm}\else\special{papersize=118.82cm,83.96cm}\fi
nickjillings@2184 198 \else\ifaeins
nickjillings@2184 199 \ifportrait\special{papersize=59.4cm,83.96cm}\else\special{papersize=83.96cm,59.4cm}\fi
nickjillings@2184 200 \else\ifazwei
nickjillings@2184 201 \ifportrait\special{papersize=41.98cm,59.4cm}\else\special{papersize=59.4cm,41.98cm}\fi
nickjillings@2184 202 \else\ifadrei
nickjillings@2184 203 \ifpreview
nickjillings@2184 204 \ifportrait\special{papersize=29.7cm,41.35cm}\else\special{papersize=41.98cm,29.0cm}\fi
nickjillings@2184 205 \else
nickjillings@2184 206 \ifportrait\special{papersize=29.7cm,41.98cm}\else\special{papersize=41.98cm,29.7cm}\fi
nickjillings@2184 207 \fi
nickjillings@2184 208 \else\relax
nickjillings@2184 209 \fi
nickjillings@2184 210 \fi
nickjillings@2184 211 \fi
nickjillings@2184 212 \fi
nickjillings@2184 213 \fi
nickjillings@2184 214 \pagestyle{empty}}
nickjillings@2184 215
nickjillings@2184 216 \endinput
nickjillings@2184 217 %%
nickjillings@2184 218 %% End of file `a0poster.cls'.