docs/_build/latex/fncychap.sty

Fri, 11 May 2012 13:25:05 +0200

author
ulalume3@yahoo.com
date
Fri, 11 May 2012 13:25:05 +0200
changeset 11
79fea4145278
permissions
-rw-r--r--

Restructuring the repository.

ulalume3@11 1 %%% Copyright Ulf A. Lindgren
ulalume3@11 2 %%%
ulalume3@11 3 %%% Note Premission is granted to modify this file under
ulalume3@11 4 %%% the condition that it is saved using another
ulalume3@11 5 %%% file and package name.
ulalume3@11 6 %%%
ulalume3@11 7 %%% Revision 1.1 (1997)
ulalume3@11 8 %%%
ulalume3@11 9 %%% Jan. 8th Modified package name base date option
ulalume3@11 10 %%% Jan. 22th Modified FmN and FmTi for error in book.cls
ulalume3@11 11 %%% \MakeUppercase{#}->{\MakeUppercase#}
ulalume3@11 12 %%% Apr. 6th Modified Lenny option to prevent undesired
ulalume3@11 13 %%% skip of line.
ulalume3@11 14 %%% Nov. 8th Fixed \@chapapp for AMS
ulalume3@11 15 %%%
ulalume3@11 16 %%% Revision 1.2 (1998)
ulalume3@11 17 %%%
ulalume3@11 18 %%% Feb. 11th Fixed appendix problem related to Bjarne
ulalume3@11 19 %%% Aug. 11th Fixed problem related to 11pt and 12pt
ulalume3@11 20 %%% suggested by Tomas Lundberg. THANKS!
ulalume3@11 21 %%%
ulalume3@11 22 %%% Revision 1.3 (2004)
ulalume3@11 23 %%% Sep. 20th problem with frontmatter, mainmatter and
ulalume3@11 24 %%% backmatter, pointed out by Lapo Mori
ulalume3@11 25 %%%
ulalume3@11 26 %%% Revision 1.31 (2004)
ulalume3@11 27 %%% Sep. 21th problem with the Rejne definition streched text
ulalume3@11 28 %%% caused ugly gaps in the vrule aligned with the title
ulalume3@11 29 %%% text. Kindly pointed out to me by Hendri Adriaens
ulalume3@11 30 %%%
ulalume3@11 31 %%% Revision 1.32 (2005)
ulalume3@11 32 %%% Jun. 23th compatibility problem with the KOMA class 'scrbook.cls'
ulalume3@11 33 %%% a remedy is a redefinition of '\@schapter' in
ulalume3@11 34 %%% line with that used in KOMA. The problem was pointed
ulalume3@11 35 %%% out to me by Mikkel Holm Olsen
ulalume3@11 36 %%%
ulalume3@11 37 %%% Revision 1.33 (2005)
ulalume3@11 38 %%% Aug. 9th misspelled ``TWELV'' corrected, the error was pointed
ulalume3@11 39 %%% out to me by George Pearson
ulalume3@11 40 %%%
ulalume3@11 41 %%% Revision 1.34 (2007)
ulalume3@11 42 %%% Added an alternative to Lenny provided by Peter
ulalume3@11 43 %%% Osborne (2005-11-28)
ulalume3@11 44 %%% Corrected front, main and back matter, based on input
ulalume3@11 45 %%% from Bas van Gils (2006-04-24)
ulalume3@11 46 %%% Jul. 30th Added Bjornstrup option provided by Jean-Marc
ulalume3@11 47 %%% Francois (2007-01-05).
ulalume3@11 48 %%% Reverted to \MakeUppercase{#} see rev 1.1, solved
ulalume3@11 49 %%% problem with MakeUppercase and MakeLowercase pointed
ulalume3@11 50 %%% out by Marco Feuerstein (2007-06-06)
ulalume3@11 51
ulalume3@11 52
ulalume3@11 53 %%% Last modified Jul. 2007
ulalume3@11 54
ulalume3@11 55 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
ulalume3@11 56 \ProvidesPackage{fncychap}
ulalume3@11 57 [2007/07/30 v1.34
ulalume3@11 58 LaTeX package (Revised chapters)]
ulalume3@11 59
ulalume3@11 60 %%%% For conditional inclusion of color
ulalume3@11 61 \newif\ifusecolor
ulalume3@11 62 \usecolorfalse
ulalume3@11 63
ulalume3@11 64
ulalume3@11 65
ulalume3@11 66 %%%% DEFINITION OF Chapapp variables
ulalume3@11 67 \newcommand{\CNV}{\huge\bfseries}
ulalume3@11 68 \newcommand{\ChNameVar}[1]{\renewcommand{\CNV}{#1}}
ulalume3@11 69
ulalume3@11 70
ulalume3@11 71 %%%% DEFINITION OF TheChapter variables
ulalume3@11 72 \newcommand{\CNoV}{\huge\bfseries}
ulalume3@11 73 \newcommand{\ChNumVar}[1]{\renewcommand{\CNoV}{#1}}
ulalume3@11 74
ulalume3@11 75 \newif\ifUCN
ulalume3@11 76 \UCNfalse
ulalume3@11 77 \newif\ifLCN
ulalume3@11 78 \LCNfalse
ulalume3@11 79 \def\ChNameLowerCase{\LCNtrue\UCNfalse}
ulalume3@11 80 \def\ChNameUpperCase{\UCNtrue\LCNfalse}
ulalume3@11 81 \def\ChNameAsIs{\UCNfalse\LCNfalse}
ulalume3@11 82
ulalume3@11 83 %%%%% Fix for AMSBook 971008
ulalume3@11 84
ulalume3@11 85 \@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}
ulalume3@11 86
ulalume3@11 87
ulalume3@11 88 %%%%% Fix for Bjarne and appendix 980211
ulalume3@11 89
ulalume3@11 90 \newif\ifinapp
ulalume3@11 91 \inappfalse
ulalume3@11 92 \renewcommand\appendix{\par
ulalume3@11 93 \setcounter{chapter}{0}%
ulalume3@11 94 \setcounter{section}{0}%
ulalume3@11 95 \inapptrue%
ulalume3@11 96 \renewcommand\@chapapp{\appendixname}%
ulalume3@11 97 \renewcommand\thechapter{\@Alph\c@chapter}}
ulalume3@11 98
ulalume3@11 99 %%%%% Fix for frontmatter, mainmatter, and backmatter 040920
ulalume3@11 100
ulalume3@11 101 \@ifundefined{@mainmatter}{\newif\if@mainmatter \@mainmattertrue}{}
ulalume3@11 102
ulalume3@11 103 %%%%%
ulalume3@11 104
ulalume3@11 105
ulalume3@11 106
ulalume3@11 107 \newcommand{\FmN}[1]{%
ulalume3@11 108 \ifUCN
ulalume3@11 109 {\MakeUppercase{#1}}\LCNfalse
ulalume3@11 110 \else
ulalume3@11 111 \ifLCN
ulalume3@11 112 {\MakeLowercase{#1}}\UCNfalse
ulalume3@11 113 \else #1
ulalume3@11 114 \fi
ulalume3@11 115 \fi}
ulalume3@11 116
ulalume3@11 117
ulalume3@11 118 %%%% DEFINITION OF Title variables
ulalume3@11 119 \newcommand{\CTV}{\Huge\bfseries}
ulalume3@11 120 \newcommand{\ChTitleVar}[1]{\renewcommand{\CTV}{#1}}
ulalume3@11 121
ulalume3@11 122 %%%% DEFINITION OF the basic rule width
ulalume3@11 123 \newlength{\RW}
ulalume3@11 124 \setlength{\RW}{1pt}
ulalume3@11 125 \newcommand{\ChRuleWidth}[1]{\setlength{\RW}{#1}}
ulalume3@11 126
ulalume3@11 127 \newif\ifUCT
ulalume3@11 128 \UCTfalse
ulalume3@11 129 \newif\ifLCT
ulalume3@11 130 \LCTfalse
ulalume3@11 131 \def\ChTitleLowerCase{\LCTtrue\UCTfalse}
ulalume3@11 132 \def\ChTitleUpperCase{\UCTtrue\LCTfalse}
ulalume3@11 133 \def\ChTitleAsIs{\UCTfalse\LCTfalse}
ulalume3@11 134 \newcommand{\FmTi}[1]{%
ulalume3@11 135 \ifUCT
ulalume3@11 136 {\MakeUppercase{#1}}\LCTfalse
ulalume3@11 137 \else
ulalume3@11 138 \ifLCT
ulalume3@11 139 {\MakeLowercase{#1}}\UCTfalse
ulalume3@11 140 \else {#1}
ulalume3@11 141 \fi
ulalume3@11 142 \fi}
ulalume3@11 143
ulalume3@11 144
ulalume3@11 145
ulalume3@11 146 \newlength{\mylen}
ulalume3@11 147 \newlength{\myhi}
ulalume3@11 148 \newlength{\px}
ulalume3@11 149 \newlength{\py}
ulalume3@11 150 \newlength{\pyy}
ulalume3@11 151 \newlength{\pxx}
ulalume3@11 152
ulalume3@11 153
ulalume3@11 154 \def\mghrulefill#1{\leavevmode\leaders\hrule\@height #1\hfill\kern\z@}
ulalume3@11 155
ulalume3@11 156 \newcommand{\DOCH}{%
ulalume3@11 157 \CNV\FmN{\@chapapp}\space \CNoV\thechapter
ulalume3@11 158 \par\nobreak
ulalume3@11 159 \vskip 20\p@
ulalume3@11 160 }
ulalume3@11 161 \newcommand{\DOTI}[1]{%
ulalume3@11 162 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 163 \vskip 40\p@
ulalume3@11 164 }
ulalume3@11 165 \newcommand{\DOTIS}[1]{%
ulalume3@11 166 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 167 \vskip 40\p@
ulalume3@11 168 }
ulalume3@11 169
ulalume3@11 170 %%%%%% SONNY DEF
ulalume3@11 171
ulalume3@11 172 \DeclareOption{Sonny}{%
ulalume3@11 173 \ChNameVar{\Large\sf}
ulalume3@11 174 \ChNumVar{\Huge}
ulalume3@11 175 \ChTitleVar{\Large\sf}
ulalume3@11 176 \ChRuleWidth{0.5pt}
ulalume3@11 177 \ChNameUpperCase
ulalume3@11 178 \renewcommand{\DOCH}{%
ulalume3@11 179 \raggedleft
ulalume3@11 180 \CNV\FmN{\@chapapp}\space \CNoV\thechapter
ulalume3@11 181 \par\nobreak
ulalume3@11 182 \vskip 40\p@}
ulalume3@11 183 \renewcommand{\DOTI}[1]{%
ulalume3@11 184 \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
ulalume3@11 185 \vskip 5\p@
ulalume3@11 186 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 187 \mghrulefill{\RW}\par\nobreak
ulalume3@11 188 \vskip 40\p@}
ulalume3@11 189 \renewcommand{\DOTIS}[1]{%
ulalume3@11 190 \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
ulalume3@11 191 \vskip 5\p@
ulalume3@11 192 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 193 \mghrulefill{\RW}\par\nobreak
ulalume3@11 194 \vskip 40\p@}
ulalume3@11 195 }
ulalume3@11 196
ulalume3@11 197 %%%%%% LENNY DEF
ulalume3@11 198
ulalume3@11 199 \DeclareOption{Lenny}{%
ulalume3@11 200
ulalume3@11 201 \ChNameVar{\fontsize{14}{16}\usefont{OT1}{phv}{m}{n}\selectfont}
ulalume3@11 202 \ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont}
ulalume3@11 203 \ChTitleVar{\Huge\bfseries\rm}
ulalume3@11 204 \ChRuleWidth{1pt}
ulalume3@11 205 \renewcommand{\DOCH}{%
ulalume3@11 206 \settowidth{\px}{\CNV\FmN{\@chapapp}}
ulalume3@11 207 \addtolength{\px}{2pt}
ulalume3@11 208 \settoheight{\py}{\CNV\FmN{\@chapapp}}
ulalume3@11 209 \addtolength{\py}{1pt}
ulalume3@11 210
ulalume3@11 211 \settowidth{\mylen}{\CNV\FmN{\@chapapp}\space\CNoV\thechapter}
ulalume3@11 212 \addtolength{\mylen}{1pt}
ulalume3@11 213 \settowidth{\pxx}{\CNoV\thechapter}
ulalume3@11 214 \addtolength{\pxx}{-1pt}
ulalume3@11 215
ulalume3@11 216 \settoheight{\pyy}{\CNoV\thechapter}
ulalume3@11 217 \addtolength{\pyy}{-2pt}
ulalume3@11 218 \setlength{\myhi}{\pyy}
ulalume3@11 219 \addtolength{\myhi}{-1\py}
ulalume3@11 220 \par
ulalume3@11 221 \parbox[b]{\textwidth}{%
ulalume3@11 222 \rule[\py]{\RW}{\myhi}%
ulalume3@11 223 \hskip -\RW%
ulalume3@11 224 \rule[\pyy]{\px}{\RW}%
ulalume3@11 225 \hskip -\px%
ulalume3@11 226 \raggedright%
ulalume3@11 227 \CNV\FmN{\@chapapp}\space\CNoV\thechapter%
ulalume3@11 228 \hskip1pt%
ulalume3@11 229 \mghrulefill{\RW}%
ulalume3@11 230 \rule{\RW}{\pyy}\par\nobreak%
ulalume3@11 231 \vskip -\baselineskip%
ulalume3@11 232 \vskip -\pyy%
ulalume3@11 233 \hskip \mylen%
ulalume3@11 234 \mghrulefill{\RW}\par\nobreak%
ulalume3@11 235 \vskip \pyy}%
ulalume3@11 236 \vskip 20\p@}
ulalume3@11 237
ulalume3@11 238
ulalume3@11 239 \renewcommand{\DOTI}[1]{%
ulalume3@11 240 \raggedright
ulalume3@11 241 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 242 \vskip 40\p@}
ulalume3@11 243
ulalume3@11 244 \renewcommand{\DOTIS}[1]{%
ulalume3@11 245 \raggedright
ulalume3@11 246 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 247 \vskip 40\p@}
ulalume3@11 248 }
ulalume3@11 249
ulalume3@11 250 %%%%%% Peter Osbornes' version of LENNY DEF
ulalume3@11 251
ulalume3@11 252 \DeclareOption{PetersLenny}{%
ulalume3@11 253
ulalume3@11 254 % five new lengths
ulalume3@11 255 \newlength{\bl} % bottom left : orig \space
ulalume3@11 256 \setlength{\bl}{6pt}
ulalume3@11 257 \newcommand{\BL}[1]{\setlength{\bl}{#1}}
ulalume3@11 258 \newlength{\br} % bottom right : orig 1pt
ulalume3@11 259 \setlength{\br}{1pt}
ulalume3@11 260 \newcommand{\BR}[1]{\setlength{\br}{#1}}
ulalume3@11 261 \newlength{\tl} % top left : orig 2pt
ulalume3@11 262 \setlength{\tl}{2pt}
ulalume3@11 263 \newcommand{\TL}[1]{\setlength{\tl}{#1}}
ulalume3@11 264 \newlength{\trr} % top right :orig 1pt
ulalume3@11 265 \setlength{\trr}{1pt}
ulalume3@11 266 \newcommand{\TR}[1]{\setlength{\trr}{#1}}
ulalume3@11 267 \newlength{\blrule} % top right :orig 1pt
ulalume3@11 268 \setlength{\trr}{0pt}
ulalume3@11 269 \newcommand{\BLrule}[1]{\setlength{\blrule}{#1}}
ulalume3@11 270
ulalume3@11 271
ulalume3@11 272 \ChNameVar{\fontsize{14}{16}\usefont{OT1}{phv}{m}{n}\selectfont}
ulalume3@11 273 \ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont}
ulalume3@11 274 \ChTitleVar{\Huge\bfseries\rm}
ulalume3@11 275 \ChRuleWidth{1pt}
ulalume3@11 276 \renewcommand{\DOCH}{%
ulalume3@11 277
ulalume3@11 278
ulalume3@11 279 %%%%%%% tweaks for 1--9 and A--Z
ulalume3@11 280 \ifcase\c@chapter\relax%
ulalume3@11 281 \or\BL{-3pt}\TL{-4pt}\BR{0pt}\TR{-6pt}%1
ulalume3@11 282 \or\BL{0pt}\TL{-4pt}\BR{2pt}\TR{-4pt}%2
ulalume3@11 283 \or\BL{0pt}\TL{-4pt}\BR{2pt}\TR{-4pt}%3
ulalume3@11 284 \or\BL{0pt}\TL{5pt}\BR{2pt}\TR{-4pt}%4
ulalume3@11 285 \or\BL{0pt}\TL{3pt}\BR{2pt}\TR{-4pt}%5
ulalume3@11 286 \or\BL{-1pt}\TL{0pt}\BR{2pt}\TR{-2pt}%6
ulalume3@11 287 \or\BL{0pt}\TL{-3pt}\BR{2pt}\TR{-2pt}%7
ulalume3@11 288 \or\BL{0pt}\TL{-3pt}\BR{2pt}\TR{-2pt}%8
ulalume3@11 289 \or\BL{0pt}\TL{-3pt}\BR{-4pt}\TR{-2pt}%9
ulalume3@11 290 \or\BL{-3pt}\TL{-3pt}\BR{2pt}\TR{-7pt}%10
ulalume3@11 291 \or\BL{-6pt}\TL{-6pt}\BR{0pt}\TR{-9pt}%11
ulalume3@11 292 \or\BL{-6pt}\TL{-6pt}\BR{2pt}\TR{-7pt}%12
ulalume3@11 293 \or\BL{-5pt}\TL{-5pt}\BR{0pt}\TR{-9pt}%13
ulalume3@11 294 \or\BL{-6pt}\TL{-6pt}\BR{0pt}\TR{-9pt}%14
ulalume3@11 295 \or\BL{-3pt}\TL{-3pt}\BR{3pt}\TR{-6pt}%15
ulalume3@11 296 \or\BL{-3pt}\TL{-3pt}\BR{3pt}\TR{-6pt}%16
ulalume3@11 297 \or\BL{-5pt}\TL{-3pt}\BR{-8pt}\TR{-6pt}%17
ulalume3@11 298 \or\BL{-5pt}\TL{-5pt}\BR{0pt}\TR{-9pt}%18
ulalume3@11 299 \or\BL{-3pt}\TL{-3pt}\BR{-6pt}\TR{-9pt}%19
ulalume3@11 300 \or\BL{0pt}\TL{0pt}\BR{0pt}\TR{-5pt}%20
ulalume3@11 301 \fi
ulalume3@11 302
ulalume3@11 303 \ifinapp\ifcase\c@chapter\relax%
ulalume3@11 304 \or\BL{0pt}\TL{14pt}\BR{5pt}\TR{-19pt}%A
ulalume3@11 305 \or\BL{0pt}\TL{-5pt}\BR{-3pt}\TR{-8pt}%B
ulalume3@11 306 \or\BL{-3pt}\TL{-2pt}\BR{1pt}\TR{-6pt}\BLrule{0pt}%C
ulalume3@11 307 \or\BL{0pt}\TL{-5pt}\BR{-3pt}\TR{-8pt}\BLrule{0pt}%D
ulalume3@11 308 \or\BL{0pt}\TL{-5pt}\BR{2pt}\TR{-3pt}%E
ulalume3@11 309 \or\BL{0pt}\TL{-5pt}\BR{-10pt}\TR{-1pt}%F
ulalume3@11 310 \or\BL{-3pt}\TL{0pt}\BR{0pt}\TR{-7pt}%G
ulalume3@11 311 \or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%H
ulalume3@11 312 \or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%I
ulalume3@11 313 \or\BL{2pt}\TL{0pt}\BR{-3pt}\TR{1pt}%J
ulalume3@11 314 \or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%K
ulalume3@11 315 \or\BL{0pt}\TL{-5pt}\BR{2pt}\TR{-19pt}%L
ulalume3@11 316 \or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%M
ulalume3@11 317 \or\BL{0pt}\TL{-5pt}\BR{-2pt}\TR{-1pt}%N
ulalume3@11 318 \or\BL{-3pt}\TL{-2pt}\BR{-3pt}\TR{-11pt}%O
ulalume3@11 319 \or\BL{0pt}\TL{-5pt}\BR{-9pt}\TR{-3pt}%P
ulalume3@11 320 \or\BL{-3pt}\TL{-2pt}\BR{-3pt}\TR{-11pt}%Q
ulalume3@11 321 \or\BL{0pt}\TL{-5pt}\BR{4pt}\TR{-8pt}%R
ulalume3@11 322 \or\BL{-2pt}\TL{-2pt}\BR{-2pt}\TR{-7pt}%S
ulalume3@11 323 \or\BL{-3pt}\TL{0pt}\BR{-5pt}\TR{4pt}\BLrule{8pt}%T
ulalume3@11 324 \or\BL{-7pt}\TL{-11pt}\BR{-5pt}\TR{-7pt}\BLrule{0pt}%U
ulalume3@11 325 \or\BL{-14pt}\TL{-5pt}\BR{-14pt}\TR{-1pt}\BLrule{14pt}%V
ulalume3@11 326 \or\BL{-10pt}\TL{-9pt}\BR{-13pt}\TR{-3pt}\BLrule{7pt}%W
ulalume3@11 327 \or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}\BLrule{0pt}%X
ulalume3@11 328 \or\BL{-6pt}\TL{-4pt}\BR{-7pt}\TR{1pt}\BLrule{7pt}%Y
ulalume3@11 329 \or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}\BLrule{0pt}%Z
ulalume3@11 330 \fi\fi
ulalume3@11 331 %%%%%%%
ulalume3@11 332 \settowidth{\px}{\CNV\FmN{\@chapapp}}
ulalume3@11 333 \addtolength{\px}{\tl} %MOD change 2pt to \tl
ulalume3@11 334 \settoheight{\py}{\CNV\FmN{\@chapapp}}
ulalume3@11 335 \addtolength{\py}{1pt}
ulalume3@11 336
ulalume3@11 337 \settowidth{\mylen}{\CNV\FmN{\@chapapp}\space\CNoV\thechapter}
ulalume3@11 338 \addtolength{\mylen}{\trr}% MOD change 1pt to \tr
ulalume3@11 339 \settowidth{\pxx}{\CNoV\thechapter}
ulalume3@11 340 \addtolength{\pxx}{-1pt}
ulalume3@11 341
ulalume3@11 342 \settoheight{\pyy}{\CNoV\thechapter}
ulalume3@11 343 \addtolength{\pyy}{-2pt}
ulalume3@11 344 \setlength{\myhi}{\pyy}
ulalume3@11 345 \addtolength{\myhi}{-1\py}
ulalume3@11 346 \par
ulalume3@11 347 \parbox[b]{\textwidth}{%
ulalume3@11 348 \rule[\py]{\RW}{\myhi}%
ulalume3@11 349 \hskip -\RW%
ulalume3@11 350 \rule[\pyy]{\px}{\RW}%
ulalume3@11 351 \hskip -\px%
ulalume3@11 352 \raggedright%
ulalume3@11 353 \CNV\FmN{\@chapapp}\rule{\blrule}{\RW}\hskip\bl\CNoV\thechapter%MOD
ulalume3@11 354 % \CNV\FmN{\@chapapp}\space\CNoV\thechapter %ORIGINAL
ulalume3@11 355 \hskip\br% %MOD 1pt to \br
ulalume3@11 356 \mghrulefill{\RW}%
ulalume3@11 357 \rule{\RW}{\pyy}\par\nobreak%
ulalume3@11 358 \vskip -\baselineskip%
ulalume3@11 359 \vskip -\pyy%
ulalume3@11 360 \hskip \mylen%
ulalume3@11 361 \mghrulefill{\RW}\par\nobreak%
ulalume3@11 362 \vskip \pyy}%
ulalume3@11 363 \vskip 20\p@}
ulalume3@11 364
ulalume3@11 365
ulalume3@11 366 \renewcommand{\DOTI}[1]{%
ulalume3@11 367 \raggedright
ulalume3@11 368 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 369 \vskip 40\p@}
ulalume3@11 370
ulalume3@11 371 \renewcommand{\DOTIS}[1]{%
ulalume3@11 372 \raggedright
ulalume3@11 373 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 374 \vskip 40\p@}
ulalume3@11 375 }
ulalume3@11 376
ulalume3@11 377
ulalume3@11 378 %
ulalume3@11 379
ulalume3@11 380
ulalume3@11 381 %%%%%% BJORNSTRUP DEF
ulalume3@11 382
ulalume3@11 383 \DeclareOption{Bjornstrup}{%
ulalume3@11 384 \usecolortrue
ulalume3@11 385 % pzc (Zapf Chancelery) is nice. ppl (Palatino) is cool too.
ulalume3@11 386 \ChNumVar{\fontsize{76}{80}\usefont{OT1}{pzc}{m}{n}\selectfont}
ulalume3@11 387 \ChTitleVar{\raggedleft\Large\sffamily\bfseries}
ulalume3@11 388
ulalume3@11 389 \setlength{\myhi}{10pt} % Space between grey box border and text
ulalume3@11 390 \setlength{\mylen}{\textwidth}
ulalume3@11 391 \addtolength{\mylen}{-2\myhi}
ulalume3@11 392 \renewcommand{\DOCH}{%
ulalume3@11 393 \settowidth{\py}{\CNoV\thechapter}
ulalume3@11 394 \addtolength{\py}{-10pt} % Amount of space by which the
ulalume3@11 395 % % number is shifted right
ulalume3@11 396 \fboxsep=0pt%
ulalume3@11 397 \colorbox[gray]{.85}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%
ulalume3@11 398 \kern-\py\raise20pt%
ulalume3@11 399 \hbox{\color[gray]{.5}\CNoV\thechapter}\\%
ulalume3@11 400 }
ulalume3@11 401
ulalume3@11 402 \renewcommand{\DOTI}[1]{%
ulalume3@11 403 \nointerlineskip\raggedright%
ulalume3@11 404 \fboxsep=\myhi%
ulalume3@11 405 \vskip-1ex%
ulalume3@11 406 \colorbox[gray]{.85}{\parbox[t]{\mylen}{\CTV\FmTi{#1}}}\par\nobreak%
ulalume3@11 407 \vskip 40\p@%
ulalume3@11 408 }
ulalume3@11 409
ulalume3@11 410 \renewcommand{\DOTIS}[1]{%
ulalume3@11 411 \fboxsep=0pt
ulalume3@11 412 \colorbox[gray]{.85}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%
ulalume3@11 413 \nointerlineskip\raggedright%
ulalume3@11 414 \fboxsep=\myhi%
ulalume3@11 415 \colorbox[gray]{.85}{\parbox[t]{\mylen}{\CTV\FmTi{#1}}}\par\nobreak%
ulalume3@11 416 \vskip 40\p@%
ulalume3@11 417 }
ulalume3@11 418 }
ulalume3@11 419
ulalume3@11 420
ulalume3@11 421 %%%%%%% GLENN DEF
ulalume3@11 422
ulalume3@11 423
ulalume3@11 424 \DeclareOption{Glenn}{%
ulalume3@11 425 \ChNameVar{\bfseries\Large\sf}
ulalume3@11 426 \ChNumVar{\Huge}
ulalume3@11 427 \ChTitleVar{\bfseries\Large\rm}
ulalume3@11 428 \ChRuleWidth{1pt}
ulalume3@11 429 \ChNameUpperCase
ulalume3@11 430 \ChTitleUpperCase
ulalume3@11 431 \renewcommand{\DOCH}{%
ulalume3@11 432 \settoheight{\myhi}{\CTV\FmTi{Test}}
ulalume3@11 433 \setlength{\py}{\baselineskip}
ulalume3@11 434 \addtolength{\py}{\RW}
ulalume3@11 435 \addtolength{\py}{\myhi}
ulalume3@11 436 \setlength{\pyy}{\py}
ulalume3@11 437 \addtolength{\pyy}{-1\RW}
ulalume3@11 438
ulalume3@11 439 \raggedright
ulalume3@11 440 \CNV\FmN{\@chapapp}\space\CNoV\thechapter
ulalume3@11 441 \hskip 3pt\mghrulefill{\RW}\rule[-1\pyy]{2\RW}{\py}\par\nobreak}
ulalume3@11 442
ulalume3@11 443 \renewcommand{\DOTI}[1]{%
ulalume3@11 444 \addtolength{\pyy}{-4pt}
ulalume3@11 445 \settoheight{\myhi}{\CTV\FmTi{#1}}
ulalume3@11 446 \addtolength{\myhi}{\py}
ulalume3@11 447 \addtolength{\myhi}{-1\RW}
ulalume3@11 448 \vskip -1\pyy
ulalume3@11 449 \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt
ulalume3@11 450 \raggedleft\CTV\FmTi{#1}\par\nobreak
ulalume3@11 451 \vskip 80\p@}
ulalume3@11 452
ulalume3@11 453 \newlength{\backskip}
ulalume3@11 454 \renewcommand{\DOTIS}[1]{%
ulalume3@11 455 % \setlength{\py}{10pt}
ulalume3@11 456 % \setlength{\pyy}{\py}
ulalume3@11 457 % \addtolength{\pyy}{\RW}
ulalume3@11 458 % \setlength{\myhi}{\baselineskip}
ulalume3@11 459 % \addtolength{\myhi}{\pyy}
ulalume3@11 460 % \mghrulefill{\RW}\rule[-1\py]{2\RW}{\pyy}\par\nobreak
ulalume3@11 461 % \addtolength{}{}
ulalume3@11 462 %\vskip -1\baselineskip
ulalume3@11 463 % \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt
ulalume3@11 464 % \raggedleft\CTV\FmTi{#1}\par\nobreak
ulalume3@11 465 % \vskip 60\p@}
ulalume3@11 466 %% Fix suggested by Tomas Lundberg
ulalume3@11 467 \setlength{\py}{25pt} % eller vad man vill
ulalume3@11 468 \setlength{\pyy}{\py}
ulalume3@11 469 \setlength{\backskip}{\py}
ulalume3@11 470 \addtolength{\backskip}{2pt}
ulalume3@11 471 \addtolength{\pyy}{\RW}
ulalume3@11 472 \setlength{\myhi}{\baselineskip}
ulalume3@11 473 \addtolength{\myhi}{\pyy}
ulalume3@11 474 \mghrulefill{\RW}\rule[-1\py]{2\RW}{\pyy}\par\nobreak
ulalume3@11 475 \vskip -1\backskip
ulalume3@11 476 \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 3pt %
ulalume3@11 477 \raggedleft\CTV\FmTi{#1}\par\nobreak
ulalume3@11 478 \vskip 40\p@}
ulalume3@11 479 }
ulalume3@11 480
ulalume3@11 481 %%%%%%% CONNY DEF
ulalume3@11 482
ulalume3@11 483 \DeclareOption{Conny}{%
ulalume3@11 484 \ChNameUpperCase
ulalume3@11 485 \ChTitleUpperCase
ulalume3@11 486 \ChNameVar{\centering\Huge\rm\bfseries}
ulalume3@11 487 \ChNumVar{\Huge}
ulalume3@11 488 \ChTitleVar{\centering\Huge\rm}
ulalume3@11 489 \ChRuleWidth{2pt}
ulalume3@11 490
ulalume3@11 491 \renewcommand{\DOCH}{%
ulalume3@11 492 \mghrulefill{3\RW}\par\nobreak
ulalume3@11 493 \vskip -0.5\baselineskip
ulalume3@11 494 \mghrulefill{\RW}\par\nobreak
ulalume3@11 495 \CNV\FmN{\@chapapp}\space \CNoV\thechapter
ulalume3@11 496 \par\nobreak
ulalume3@11 497 \vskip -0.5\baselineskip
ulalume3@11 498 }
ulalume3@11 499 \renewcommand{\DOTI}[1]{%
ulalume3@11 500 \mghrulefill{\RW}\par\nobreak
ulalume3@11 501 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 502 \vskip 60\p@
ulalume3@11 503 }
ulalume3@11 504 \renewcommand{\DOTIS}[1]{%
ulalume3@11 505 \mghrulefill{\RW}\par\nobreak
ulalume3@11 506 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 507 \vskip 60\p@
ulalume3@11 508 }
ulalume3@11 509 }
ulalume3@11 510
ulalume3@11 511 %%%%%%% REJNE DEF
ulalume3@11 512
ulalume3@11 513 \DeclareOption{Rejne}{%
ulalume3@11 514
ulalume3@11 515 \ChNameUpperCase
ulalume3@11 516 \ChTitleUpperCase
ulalume3@11 517 \ChNameVar{\centering\Large\rm}
ulalume3@11 518 \ChNumVar{\Huge}
ulalume3@11 519 \ChTitleVar{\centering\Huge\rm}
ulalume3@11 520 \ChRuleWidth{1pt}
ulalume3@11 521 \renewcommand{\DOCH}{%
ulalume3@11 522 \settoheight{\py}{\CNoV\thechapter}
ulalume3@11 523 \parskip=0pt plus 1pt % Set parskip to default, just in case v1.31
ulalume3@11 524 \addtolength{\py}{-1pt}
ulalume3@11 525 \CNV\FmN{\@chapapp}\par\nobreak
ulalume3@11 526 \vskip 20\p@
ulalume3@11 527 \setlength{\myhi}{2\baselineskip}
ulalume3@11 528 \setlength{\px}{\myhi}
ulalume3@11 529 \addtolength{\px}{-1\RW}
ulalume3@11 530 \rule[-1\px]{\RW}{\myhi}\mghrulefill{\RW}\hskip
ulalume3@11 531 10pt\raisebox{-0.5\py}{\CNoV\thechapter}\hskip 10pt\mghrulefill{\RW}\rule[-1\px]{\RW}{\myhi}\par\nobreak
ulalume3@11 532 \vskip -3\p@% Added -2pt vskip to correct for streched text v1.31
ulalume3@11 533 }
ulalume3@11 534 \renewcommand{\DOTI}[1]{%
ulalume3@11 535 \setlength{\mylen}{\textwidth}
ulalume3@11 536 \parskip=0pt plus 1pt % Set parskip to default, just in case v1.31
ulalume3@11 537 \addtolength{\mylen}{-2\RW}
ulalume3@11 538 {\vrule width\RW}\parbox{\mylen}{\CTV\FmTi{#1}}{\vrule width\RW}\par\nobreak%
ulalume3@11 539 \vskip -3pt\rule{\RW}{2\baselineskip}\mghrulefill{\RW}\rule{\RW}{2\baselineskip}%
ulalume3@11 540 \vskip 60\p@% Added -2pt in vskip to correct for streched text v1.31
ulalume3@11 541 }
ulalume3@11 542 \renewcommand{\DOTIS}[1]{%
ulalume3@11 543 \setlength{\py}{\fboxrule}
ulalume3@11 544 \setlength{\fboxrule}{\RW}
ulalume3@11 545 \setlength{\mylen}{\textwidth}
ulalume3@11 546 \addtolength{\mylen}{-2\RW}
ulalume3@11 547 \fbox{\parbox{\mylen}{\vskip 2\baselineskip\CTV\FmTi{#1}\par\nobreak\vskip \baselineskip}}
ulalume3@11 548 \setlength{\fboxrule}{\py}
ulalume3@11 549 \vskip 60\p@
ulalume3@11 550 }
ulalume3@11 551 }
ulalume3@11 552
ulalume3@11 553
ulalume3@11 554 %%%%%%% BJARNE DEF
ulalume3@11 555
ulalume3@11 556 \DeclareOption{Bjarne}{%
ulalume3@11 557 \ChNameUpperCase
ulalume3@11 558 \ChTitleUpperCase
ulalume3@11 559 \ChNameVar{\raggedleft\normalsize\rm}
ulalume3@11 560 \ChNumVar{\raggedleft \bfseries\Large}
ulalume3@11 561 \ChTitleVar{\raggedleft \Large\rm}
ulalume3@11 562 \ChRuleWidth{1pt}
ulalume3@11 563
ulalume3@11 564
ulalume3@11 565 %% Note thechapter -> c@chapter fix appendix bug
ulalume3@11 566 %% Fixed misspelled 12
ulalume3@11 567
ulalume3@11 568 \newcounter{AlphaCnt}
ulalume3@11 569 \newcounter{AlphaDecCnt}
ulalume3@11 570 \newcommand{\AlphaNo}{%
ulalume3@11 571 \ifcase\number\theAlphaCnt
ulalume3@11 572 \ifnum\c@chapter=0
ulalume3@11 573 ZERO\else{}\fi
ulalume3@11 574 \or ONE\or TWO\or THREE\or FOUR\or FIVE
ulalume3@11 575 \or SIX\or SEVEN\or EIGHT\or NINE\or TEN
ulalume3@11 576 \or ELEVEN\or TWELVE\or THIRTEEN\or FOURTEEN\or FIFTEEN
ulalume3@11 577 \or SIXTEEN\or SEVENTEEN\or EIGHTEEN\or NINETEEN\fi
ulalume3@11 578 }
ulalume3@11 579
ulalume3@11 580 \newcommand{\AlphaDecNo}{%
ulalume3@11 581 \setcounter{AlphaDecCnt}{0}
ulalume3@11 582 \@whilenum\number\theAlphaCnt>0\do
ulalume3@11 583 {\addtocounter{AlphaCnt}{-10}
ulalume3@11 584 \addtocounter{AlphaDecCnt}{1}}
ulalume3@11 585 \ifnum\number\theAlphaCnt=0
ulalume3@11 586 \else
ulalume3@11 587 \addtocounter{AlphaDecCnt}{-1}
ulalume3@11 588 \addtocounter{AlphaCnt}{10}
ulalume3@11 589 \fi
ulalume3@11 590
ulalume3@11 591
ulalume3@11 592 \ifcase\number\theAlphaDecCnt\or TEN\or TWENTY\or THIRTY\or
ulalume3@11 593 FORTY\or FIFTY\or SIXTY\or SEVENTY\or EIGHTY\or NINETY\fi
ulalume3@11 594 }
ulalume3@11 595 \newcommand{\TheAlphaChapter}{%
ulalume3@11 596
ulalume3@11 597 \ifinapp
ulalume3@11 598 \thechapter
ulalume3@11 599 \else
ulalume3@11 600 \setcounter{AlphaCnt}{\c@chapter}
ulalume3@11 601 \ifnum\c@chapter<20
ulalume3@11 602 \AlphaNo
ulalume3@11 603 \else
ulalume3@11 604 \AlphaDecNo\AlphaNo
ulalume3@11 605 \fi
ulalume3@11 606 \fi
ulalume3@11 607 }
ulalume3@11 608 \renewcommand{\DOCH}{%
ulalume3@11 609 \mghrulefill{\RW}\par\nobreak
ulalume3@11 610 \CNV\FmN{\@chapapp}\par\nobreak
ulalume3@11 611 \CNoV\TheAlphaChapter\par\nobreak
ulalume3@11 612 \vskip -1\baselineskip\vskip 5pt\mghrulefill{\RW}\par\nobreak
ulalume3@11 613 \vskip 20\p@
ulalume3@11 614 }
ulalume3@11 615 \renewcommand{\DOTI}[1]{%
ulalume3@11 616 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 617 \vskip 40\p@
ulalume3@11 618 }
ulalume3@11 619 \renewcommand{\DOTIS}[1]{%
ulalume3@11 620 \CTV\FmTi{#1}\par\nobreak
ulalume3@11 621 \vskip 40\p@
ulalume3@11 622 }
ulalume3@11 623 }
ulalume3@11 624
ulalume3@11 625 \DeclareOption*{%
ulalume3@11 626 \PackageWarning{fancychapter}{unknown style option}
ulalume3@11 627 }
ulalume3@11 628
ulalume3@11 629 \ProcessOptions* \relax
ulalume3@11 630
ulalume3@11 631 \ifusecolor
ulalume3@11 632 \RequirePackage{color}
ulalume3@11 633 \fi
ulalume3@11 634 \def\@makechapterhead#1{%
ulalume3@11 635 \vspace*{50\p@}%
ulalume3@11 636 {\parindent \z@ \raggedright \normalfont
ulalume3@11 637 \ifnum \c@secnumdepth >\m@ne
ulalume3@11 638 \if@mainmatter%%%%% Fix for frontmatter, mainmatter, and backmatter 040920
ulalume3@11 639 \DOCH
ulalume3@11 640 \fi
ulalume3@11 641 \fi
ulalume3@11 642 \interlinepenalty\@M
ulalume3@11 643 \if@mainmatter%%%%% Fix for frontmatter, mainmatter, and backmatter 060424
ulalume3@11 644 \DOTI{#1}%
ulalume3@11 645 \else%
ulalume3@11 646 \DOTIS{#1}%
ulalume3@11 647 \fi
ulalume3@11 648 }}
ulalume3@11 649
ulalume3@11 650
ulalume3@11 651 %%% Begin: To avoid problem with scrbook.cls (fncychap version 1.32)
ulalume3@11 652
ulalume3@11 653 %%OUT:
ulalume3@11 654 %\def\@schapter#1{\if@twocolumn
ulalume3@11 655 % \@topnewpage[\@makeschapterhead{#1}]%
ulalume3@11 656 % \else
ulalume3@11 657 % \@makeschapterhead{#1}%
ulalume3@11 658 % \@afterheading
ulalume3@11 659 % \fi}
ulalume3@11 660
ulalume3@11 661 %%IN:
ulalume3@11 662 \def\@schapter#1{%
ulalume3@11 663 \if@twocolumn%
ulalume3@11 664 \@makeschapterhead{#1}%
ulalume3@11 665 \else%
ulalume3@11 666 \@makeschapterhead{#1}%
ulalume3@11 667 \@afterheading%
ulalume3@11 668 \fi}
ulalume3@11 669
ulalume3@11 670 %%% End: To avoid problem with scrbook.cls (fncychap version 1.32)
ulalume3@11 671
ulalume3@11 672 \def\@makeschapterhead#1{%
ulalume3@11 673 \vspace*{50\p@}%
ulalume3@11 674 {\parindent \z@ \raggedright
ulalume3@11 675 \normalfont
ulalume3@11 676 \interlinepenalty\@M
ulalume3@11 677 \DOTIS{#1}
ulalume3@11 678 \vskip 40\p@
ulalume3@11 679 }}
ulalume3@11 680
ulalume3@11 681 \endinput
ulalume3@11 682
ulalume3@11 683

mercurial