restart-case more elaborate
[clqr.git] / clqr.tex
blob922259e4c9e64e45594386132459027bff405767
1 % Copyright (C) 2008 Bert Burgemeister
3 % Permission is granted to copy, distribute and/or modify this
4 % document under the terms of the GNU Free Documentation License,
5 % Version 1.2 or any later version published by the Free Software
6 % Foundation; with no Invariant Sections, no Front-Cover Texts and
7 % no Back-Cover Texts. For details see file COPYING.
10 \newcommand{\maintitle}{Common\ Lisp\ Quick\ Reference}
11 \newcommand{\AUTHOR}{Bert\ Burgemeister}
13 %%%%%%%%%%%%%%%%%%
14 % pdf info
15 \newcommand{\SUBJECT}{Common\ Lisp}
16 \newcommand{\KEYWORDS}{clqr}
18 \documentclass[8pt,pagesize,twoside,footexclude,headexclude]{scrartcl}
20 %%%%%%%%%%%%%%%%%%
21 % outsourced page dimensions
22 \input{paper-current}
23 %\setlength{\paperwidth}{10.5cm}
24 %\setlength{\paperheight}{29.7cm}
25 %%\areaset[3mm]{9cm}{28.3cm}
26 %\typearea[2mm]{20}
27 %%%%%%%%%%%%%%%%%%
29 %%%%%%%%%%%%%%%%%%
30 % outsourced hypertext colors
31 \input{color-current}
32 %\newcommand{\linkcolor}{Fuchsia}
33 %\newcommand{\urlcolor}{MidnightBlue}
34 %\newcommand{\bookmarks}{true}
35 %\newcommand{\pdfpagelayout}{TwoColumnLeft}
36 %%%%%%%%%%%%%%%%%%
38 \usepackage{amsmath}
39 \usepackage{amsfonts}
40 \usepackage{amssymb}
41 \usepackage{rotating}
42 \usepackage{graphics}
43 \usepackage{multicol}
44 \usepackage{textcase}
45 \usepackage{textcomp}
46 \usepackage{ulem}
47 \usepackage[usenames,dvips]{color}
48 \usepackage{suffix}
49 \usepackage{makeidx}
50 \definecolor{frontcovergray}{gray}{.85}
51 \definecolor{backcovergray}{gray}{.9}
52 \usepackage[pagestyles]{titlesec}
53 \usepackage{titletoc}
55 %%%%%%%%%%%%%%%%%%
56 % Two font alternatives:
57 % (A) All (except cover pages) Computer Modern --
58 % everything comes from the same sound root; gets about 5% longer
59 % than alternative (B)
60 \usepackage{type1cm}
61 \usepackage{exscale}
62 %%%%%%%%%%%%%%%%%%
63 % (B) Times mixed with Helvetica --
64 % different sources; need scaling as they don't even agree in
65 % their concept of height
66 %\usepackage{mathptmx}
67 %\usepackage[scaled]{helvet}
68 %%%%%%%%%%%%%%%%%%
70 % should remain last usepackage:
71 \usepackage%
72 [breaklinks,linktocpage,colorlinks,%
73 bookmarksnumbered,bookmarks=\bookmarks,%
74 linkcolor=\linkcolor,urlcolor=\urlcolor,%
75 pdfpagelayout=\pdfpagelayout,%
76 pdftitle=\maintitle,pdfauthor=\AUTHOR,%
77 pdfsubject=\SUBJECT,pdfkeywords=\KEYWORDS]%
78 {hyperref}
80 \makeindex
81 \titleformat{\section}{\sffamily\mdseries\slshape}
82 {\huge\thesection}{.7em}{\huge}[{\titlerule[0.25pt]}]
84 \titleformat{\subsection}{\sffamily\mdseries\slshape}
85 {\Large\thesubsection}{.7em}{\Large}[{\titlerule[0.25pt]}]
87 % Kill toc header as we want it to span columns
88 \makeatletter
89 \renewcommand{\toc@heading}{}
90 \makeatother
92 \titlecontents{section}%
93 [1.5em]%
94 {\vspace{.5em plus 1em minus .2em}\sffamily\bfseries\upshape\filright}%
95 {\contentslabel{1.5em}}%
96 {\hspace*{3em}}%
97 {\hfill\contentspage\vspace{.1em}}%
99 \titlecontents{subsection}%
100 [4em]%
101 {\sffamily\mdseries\upshape\filright}%
102 {\contentslabel{2.5em}}%
103 {\hspace*{5.5em}}%
104 {\hspace{.5ex plus .5ex minus .3ex}\titlerule*[1em]{.}\contentspage}%
106 \newlength{\LISTlinewidth}
107 \newenvironment{LIST}[1]%
109 \LISTlinewidth=\linewidth%
110 \begin{flushleft}%
111 \begin{list}{}%
112 {\setlength{\itemindent}{-#1}\setlength{\leftmargin}{#1}}%
113 %\parskip0pt\itemsep0pt%
115 {\end{list}%
116 \end{flushleft}%
119 %\renewcommand{\topfraction}{1}
120 \renewcommand{\bottomfraction}{1}
121 %\renewcommand*{\figureformat}{}
122 %\renewcommand*{\captionformat}{}
123 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
125 \setlength{\parfillskip}{5cm plus1cm minus3cm}
126 \setlength{\arraycolsep}{0pt}
129 \def\startexplanation{$\triangleright$\hskip1.4ex}
130 \newlength{\ITwidth}
131 \newlength{\ITrest}
132 \newlength{\ITtab}\ITtab=3em
134 \def\IT#1 #2 {%
135 \settowidth{\ITwidth}{#1\unskip\hskip1em\hskip\ITtab}%
136 \ITrest=\LISTlinewidth\advance\ITrest by -\ITwidth%
137 \loop\ifdim\ITrest > \ITtab%
138 \advance\ITrest by -\ITtab%
139 \repeat%
141 \settowidth{\ITwidth}{%
142 #1\unskip\hskip1em\hskip\ITrest%
143 \startexplanation#2%
145 \item{}%
146 \ifdim\ITwidth < \LISTlinewidth% Entry fits into a single line
147 #1\unskip\hskip1em\hskip\ITrest%
148 \startexplanation#2%
149 \else%
151 \unskip\penalty-10000%
152 \parbox[t]{\linewidth}{\startexplanation#2}%
153 \fi%
157 \newpagestyle{lispref}[\sffamily\mdseries\slshape]{
158 \headrule\footrule
159 \sethead*{}{}{\maintitle\/}
160 \setfoot*{}{}{\thepage\/}}
161 \pagestyle{lispref}
164 % Literal Text
165 \newcommand{\LIT}[1]{\text{{\fontfamily{cmtt}\selectfont#1}}}
167 % Variable Text
168 \newcommand{\VAR}[1]{\text{{\fontfamily{cmr}\fontshape{it}\selectfont#1\/}}}
170 % Not Evaluated
171 \newcommand{\NEV}[1]{\text{{$\widehat{#1}$}}}
173 % Subjected to Destruction
174 \newcommand{\DES}[1]{\text{{$\widetilde{#1}$}}}
176 % Default Value
177 \newcommand{\DF}[1]{\text{\textsubscript{\setlength{\fboxsep}{.5pt}\setlength{\fboxrule}{.1pt}\fbox{#1}}}}
179 % Optional Part, [], two sizes
180 \newcommand{\OP}[1]{{\text{$\big[$}{#1}\text{$\big]$}}}
181 \newcommand{\Op}[1]{{\text{$[$}{#1}\text{$]$}}}
183 % Or, |
184 \newcommand{\XOR}{\hspace{1pt}\text{\rule[-.9ex]{.25pt}{3ex}}\hspace{1pt}}
185 %\newcommand{\XOR}{\text{$\mid$}\hspace{0pt}}
187 % Optional Parts, *
188 \newcommand{\OPn}[1]{{{#1}\text{${}^{*}$}}}
190 % Required Parts, +
191 \newcommand{\RP}[1]{{{#1}\text{${}^{+}$}}}
193 % Implicit PROGN, P*
194 \newcommand{\PROGN}[1]{{{#1}\text{${}^{{\raisebox{.5ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{-.6ex}P}}*}}$}}}
196 % Group of Objects {}, three sizes
197 \newcommand{\GOO}[1]{{\text{$\Big\{$}{#1}\text{$\Big\}$}}}
198 \newcommand{\GOo}[1]{{\text{$\big\{$}{#1}\text{$\big\}$}}}
199 \newcommand{\Goo}[1]{{\text{$\{$}{#1}\text{$\}$}}}
200 % Optional Group of Objects, {}*, three sizes
201 \newcommand{\GOOs}[1]{{$\Big\{${#1}$\Big\}^{\!\!*}$}} % this one can
202 % have line breaks
203 \newcommand{\GOos}[1]{\text{{$\big\{${#1}$\big\}^{\!\!*}$}}}
204 \newcommand{\Goos}[1]{\text{{$\{${#1}$\}^{\!*}$}}}
205 % Required Group of Objects, {}+, three sizes
206 \newcommand{\GOOp}[1]{{\text{$\Big\{$}{#1}\text{$\Big\}^{\!\!+}$}}}
207 \newcommand{\GOop}[1]{{\text{$\big\{$}{#1}\text{$\big\}^{\!\!+}$}}}
208 \newcommand{\Goop}[1]{{\text{$\{$}{#1}\text{$\}^{\!+}$}}}
210 % Vertically Arranged Group of Alternatives, {
211 % usage: \xorGOO{line1\\ line2...}{closing delimiter}
212 \newcommand{\xorGOO}[2]{\text{\(%
213 \left\{\!%
214 \begin{array}{l}%
216 \end{array}\!%
217 \right#2%
218 \)}}
220 % Vertically Arranged Group of Optional Objects, {|
221 % usage: \orGOO{line1\\line2}{closing delimiter}
222 \newcommand{\orGOO}[2]{\text{\(%
223 \left\{\!\left|%
224 \begin{array}{l}%
226 \end{array}\!%
227 \right.\right#2%
228 \)}}
230 % Vertically Arranged Group of Objects, No Opening {
231 % usage: \arrGOO{line1\\line2}{closing delimiter}
232 \newcommand{\arrGOO}[2]{\text{\(\!%
233 \left.%
234 \begin{array}{l}%
236 \end{array}\!%
237 \right#2%
238 \)}}
240 % Boxed Group of Alternatives
241 % usage: \boxGOO{line1\\ line2...}
242 \newcommand{\boxGOO}[1]{\text{\hspace{1ex}\(%
243 \setlength{\fboxsep}{1pt}\setlength{\fboxrule}{0pt}
244 \boxed{
245 \setlength{\fboxsep}{1pt}\setlength{\fboxrule}{.1pt}
246 \boxed{\;%
247 \begin{array}{l}%
249 \end{array}%
252 \)}}
255 % In a Boxed Group of Alternatives: Replacement for \\ with additional
256 % vspace
257 \newcommand{\boxGOOcr}{\vspace{1ex}\\}
260 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
261 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
262 % All sorts of tags attached to lisp keywords
263 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
264 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
266 \newlength{\TAGwidth}
267 \newlength{\KEYWORDwidth}
269 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
270 % Generic Keyword, Lowercase
271 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
272 \newcommand{\kwd}[1]{\text{{\sffamily\bfseries\selectfont%
273 \lowercase{#1}}}}
275 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
276 % Generic Keyword, Uppercase
277 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
278 \newcommand{\KWD}[1]{\text{{\sffamily\bfseries\selectfont%
279 \uppercase{#1}}}}
281 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
282 % Macro
283 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
284 \newcommand{\MC}[1]{%
285 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}Mx}% x just for space
286 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
287 \ifdim\TAGwidth > \KEYWORDwidth%
288 \text{{\sffamily\bfseries\selectfont%
289 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}M}}\lowercase{#1}}}}%
290 \else%
291 \text{{\sffamily\bfseries\selectfont%
292 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}M}}\lowercase{#1}}}}%
293 \fi}
295 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
296 % Special Operator
297 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
298 \newcommand{\SO}[1]{%
299 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}SOx}% x just for space
300 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
301 \ifdim\TAGwidth > \KEYWORDwidth%
302 \text{{\sffamily\bfseries\selectfont%
303 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}sO}}\lowercase{#1}}}}%
304 \else%
305 \text{{\sffamily\bfseries\selectfont%
306 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}sO}}\lowercase{#1}}}}%
307 \fi}
309 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
310 % Function
311 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
312 \newcommand{\FU}[1]{%
313 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}Fux}% x just for space
314 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
315 \ifdim\TAGwidth > \KEYWORDwidth%
316 \text{{\sffamily\bfseries\selectfont%
317 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}Fu}}\lowercase{#1}}}}%
318 \else%
319 \text{{\sffamily\bfseries\selectfont%
320 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}Fu}}\lowercase{#1}}}}%
321 \fi}
323 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
324 % Generic Function
325 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
326 \newcommand{\GFU}[1]{%
327 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}gFx}% x just for space
328 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
329 \ifdim\TAGwidth > \KEYWORDwidth%
330 \text{{\sffamily\bfseries\selectfont%
331 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}gF}}\lowercase{#1}}}}%
332 \else%
333 \text{{\sffamily\bfseries\selectfont%
334 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}gF}}\lowercase{#1}}}}%
335 \fi}
337 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
338 % Variable
339 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
340 \newcommand{\V}[1]{%
341 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.8em}varx}% x just for space
342 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
343 \ifdim\TAGwidth > \KEYWORDwidth%
344 \text{{\sffamily\bfseries\selectfont%
345 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}var}}\lowercase{#1}}}}%
346 \else%
347 \text{{\sffamily\bfseries\selectfont%
348 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.8em}var}}\lowercase{#1}}}}%
349 \fi}
351 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
352 % Constant
353 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
354 \newcommand{\CNS}[1]{%
355 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}cox}% x just for space
356 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
357 \ifdim\TAGwidth > \KEYWORDwidth%
358 \text{{\sffamily\bfseries\selectfont%
359 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}co}}\lowercase{#1}}}}%
360 \else%
361 \text{{\sffamily\bfseries\selectfont%
362 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}co}}\lowercase{#1}}}}%
363 \fi}
365 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
366 % Loop Keyword
367 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
368 \newcommand{\LKWD}[1]{\text{{\sffamily\bfseries\selectfont%
369 {\raisebox{1.4ex}[1ex][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}}}\lowercase{#1}}}}}
371 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
372 % Return values, First, Second, nth, Third
373 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
374 \renewcommand{\ULthickness}{.2pt}
375 \newcommand{\retval}[1]{\uline{#1}}
376 %\newcommand{\retvalii}[1]{\uuline{#1}}
377 \newcommand{\retvaln}[2]{{%
378 {\raisebox{-1.7ex}[0pt][1.4ex]{\tiny\sffamily\upshape\mdseries\makebox[0pt][l]{\hspace{-.1em}#1}}\uline{#2}}}}
379 \newcommand{\retvalii}[1]{\retvaln{2}{#1}}
380 \newcommand{\retvaliii}[1]{\retvaln{3}{#1}}
382 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
383 % T and NIL
384 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
385 \newcommand{\T}{\text{\ttfamily T}}
386 \newcommand{\NIL}{\text{\ttfamily NIL}}
388 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
389 % ~ (slightly lowered)
390 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
391 \newcommand{\TLD}{{\protect\raisebox{-.8ex}{\textasciitilde}}}
393 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
394 % * (lowered version)
395 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
396 \newcommand{\A}{\textasteriskcentered}
398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
399 % Starred versions send their argument into index:
400 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
401 \WithSuffix\newcommand\kwd*[1]{\kwd{#1}\uppercase{\index{#1}}}
402 \WithSuffix\newcommand\KWD*[1]{\KWD{#1}\uppercase{\index{#1}}}
403 \WithSuffix\newcommand\MC*[1]{\MC{#1}\uppercase{\index{#1}}}
404 \WithSuffix\newcommand\SO*[1]{\SO{#1}\uppercase{\index{#1}}}
405 \WithSuffix\newcommand\FU*[1]{\FU{#1}\uppercase{\index{#1}}}
406 \WithSuffix\newcommand\GFU*[1]{\GFU{#1}\uppercase{\index{#1}}}
407 \WithSuffix\newcommand\V*[1]{\V{#1}\uppercase{\index{#1}}}
408 \WithSuffix\newcommand\CNS*[1]{\CNS{#1}\uppercase{\index{#1}}}
409 \WithSuffix\newcommand\LKWD*[1]{\LKWD{#1}\uppercase{\index{#1}}}
411 \hyphenation{white-space pa-ra-me-ters}
413 \begin{document}
415 \newlength{\titlepagewidth}
416 \setlength{\titlepagewidth}{8cm}
417 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
418 %% Front Cover
419 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
420 \begin{titlepage}
421 \renewcommand{\rmdefault}{ptm} %% Always times fonts on title
422 \vspace*{15mm}
423 \begin{center}
424 \begin{minipage}{\titlepagewidth}
425 \begin{center}
426 \rmfamily\mdseries\itshape\fontsize{20}{0}\selectfont
427 Quick Reference\\
428 \end{center}
429 \end{minipage}
430 \vfill
431 \begin{minipage}{\titlepagewidth}
432 \begin{center}
433 \rmfamily\mdseries\itshape%
434 \fontsize{300}{0}\selectfont{\color{frontcovergray}cl\/}\\
435 \end{center}
436 \end{minipage}
437 \vfill
438 \begin{minipage}{\titlepagewidth}
439 \rmfamily\mdseries\itshape\fontsize{36}{0}\selectfont
440 \hfill Common\/\\[2mm]
441 \rmfamily\mdseries\upshape\fontsize{157}{0}\selectfont
442 \rule[3mm]{\textwidth}{1.5mm}\\
443 lisp\\[-10mm]
444 \rule[15mm]{5.5cm}{1.5mm}\hfill\rule[15mm]{1.77cm}{1.5mm}
445 \end{minipage}
446 \begin{minipage}{\titlepagewidth}
447 \rmfamily\mdseries\upshape\fontsize{14}{0}\selectfont
448 \AUTHOR
449 \vspace*{4mm}
450 \end{minipage}
451 \end{center}
453 \end{titlepage}
455 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
456 % TOC
457 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
458 \section*{\contentsname}
459 \vspace{-3ex}
461 \setlength{\columnsep}{1.5em}%
462 \begin{multicols}{2}
463 \tableofcontents
464 \end{multicols}%
466 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
467 \vfill
468 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
469 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
470 %%% CONTENT STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%
471 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
473 \input{clqr-typographic-conventions}
474 \clearpage
475 \input{clqr-numbers}
476 \input{clqr-characters}
477 \input{clqr-strings}
478 \input{clqr-conses}
479 \input{clqr-arrays}
480 \input{clqr-sequences}
481 \input{clqr-hash-tables}
482 \input{clqr-structures}
483 \input{clqr-control-structure}
484 \input{clqr-clos}
485 \input{clqr-conditions-and-errors}
486 %\input{clqr-input-output}
487 %\input{clqr-types-and-classes}
488 %\input{clqr-packages-and-symbols}
489 %\input{clqr-compiler}
490 %\input{clqr-external-environment}
492 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
493 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
494 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
496 \clearpage % Uncomment/comment this line to waste/save some space
498 \renewcommand{\indexpagestyle}{lispref}
499 \renewenvironment{theindex}%
500 {\begin{list}{}%
501 {\setlength{\itemindent}{-1em}\setlength{\leftmargin}{1em}}%
502 \parskip0pt plus .1pt \itemsep0pt%
503 \raggedright\looseness=-1%
505 {\end{list}}
506 \begin{multicols}{4}
507 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
508 [\section*{Index}\vspace{-5ex}]
509 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
510 % Stock \printindex won't do as we want more than two columns.
511 \tiny\sffamily\input{clqr.ind}
512 \end{multicols}
515 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
516 % Make (total) page count a multiple of four.
517 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
518 \clearpage
519 \pagestyle{empty}
520 \newcount\currentpage
521 \currentpage=\value{page}
522 \divide\currentpage by 4
523 \multiply\currentpage by 4
524 \advance\currentpage by -\value{page}
526 \ifnum\the\currentpage=-3
527 \rule{0pt}{0pt}\clearpage
528 \else\ifnum\the\currentpage=-2
529 \rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage
530 \else\ifnum\the\currentpage=-1
531 \rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage
532 \fi\fi\fi
534 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
535 %% Back Cover
536 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
537 \begin{titlepage}
538 \begin{center}
539 \renewcommand{\rmdefault}{ptm} %% Always times fonts on title
540 \vspace*{20pt}
541 \vfill
542 \begin{minipage}{\titlepagewidth}
543 \begin{center}
544 \rmfamily\mdseries\itshape\fontsize{300}{0}\selectfont
545 \reflectbox{{\color{backcovergray}cl\/}}\\
546 \end{center}
547 \end{minipage}
548 \vfill
549 \vspace*{43mm}% Adjust here if text below changes
550 \begin{minipage}{\titlepagewidth}
551 \hrule
552 \vspace{1.5mm}
553 \rmfamily\small
554 \makebox[\textwidth][l]{\maintitle\ \hfill Revision \input{REVISION}
555 [\input{DATE}\hspace{-.65ex}]}
556 \makebox[\textwidth][l]{Copyright \copyright\ 2008 \AUTHOR\hfill\LaTeX\ source:
557 \href{http://clqr.berlios.de}{http://clqr.berlios.de}}\\[1.5mm]
558 Permission is granted to copy, distribute and/or modify this
559 document under the terms of the GNU Free Documentation License,
560 Version 1.2 or any later version published by the Free Software
561 Foundation; with no Invariant Sections, no Front-Cover Texts and
562 no Back-Cover Texts.\hfill
563 \href{http://www.gnu.org/licenses/fdl.html}{http://www.gnu.org/licenses/fdl.html}\\
564 \vspace{-1mm}
565 \hrule
566 \end{minipage}
567 \end{center}
568 \end{titlepage}
570 \end{document}
571 % -*-latex-*-
573 % LocalWords: ptm lightgray cl lispref theindex pt