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