added titles to tilde directives
[clqr.git] / clqr.tex
blob1600b0ed8a424647775be9c19b39bcc90e584454
1 % Copyright (C) 2008, 2009 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}
170 % Emphasize
171 \newcommand{\EM}[1]{\text{{\fontfamily{cmr}\fontseries{b}\fontshape{n}\selectfont#1}}}
174 % Literal Text
175 \newcommand{\LIT}[1]{\text{{\fontfamily{cmtt}\selectfont#1}}}
177 % Variable Text
178 \newcommand{\VAR}[1]{\text{{\fontfamily{cmr}\fontshape{it}\selectfont#1\/}}}
180 % Not Evaluated
181 \newcommand{\NEV}[1]{\text{{$\widehat{#1}$}}}
183 % Subjected to Destruction
184 \newcommand{\DES}[1]{\text{{$\widetilde{#1}$}}}
186 % Default Value
187 \newcommand{\DF}[1]{\text{\textsubscript{\setlength{\fboxsep}{.5pt}\setlength{\fboxrule}{.1pt}\fbox{#1}}}}
189 % Optional Part, [], two sizes
190 \newcommand{\OP}[1]{{\text{$\big[$}{#1}\text{$\big]$}}}
191 \newcommand{\Op}[1]{{\text{$[$}{#1}\text{$]$}}}
193 % Or, |
194 \newcommand{\XOR}{\hspace{1pt}\text{\rule[-.9ex]{.25pt}{3ex}}\hspace{1pt}}
195 %\newcommand{\XOR}{\text{$\mid$}\hspace{0pt}}
197 % Optional Parts, *
198 \newcommand{\OPn}[1]{{{#1}\text{${}^{*}$}}}
200 % Required Parts, +
201 \newcommand{\RP}[1]{{{#1}\text{${}^{+}$}}}
203 % Implicit PROGN, P*
204 \newcommand{\PROGN}[1]{{{#1}\text{${}^{{\raisebox{.5ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{-.6ex}P}}*}}$}}}
206 % Group of Objects {}, three sizes
207 \newcommand{\GOO}[1]{{\text{$\Big\{$}{#1}\text{$\Big\}$}}}
208 \newcommand{\GOo}[1]{{\text{$\big\{$}{#1}\text{$\big\}$}}}
209 \newcommand{\Goo}[1]{{\text{$\{$}{#1}\text{$\}$}}}
210 % Optional Group of Objects, {}*, three sizes
211 \newcommand{\GOOs}[1]{{$\Big\{${#1}$\Big\}^{\!\!*}$}} % this one can
212 % have line breaks
213 \newcommand{\GOos}[1]{\text{{$\big\{${#1}$\big\}^{\!\!*}$}}}
214 \newcommand{\Goos}[1]{\text{{$\{${#1}$\}^{\!*}$}}}
215 % Required Group of Objects, {}+, three sizes
216 \newcommand{\GOOp}[1]{{\text{$\Big\{$}{#1}\text{$\Big\}^{\!\!+}$}}}
217 \newcommand{\GOop}[1]{{\text{$\big\{$}{#1}\text{$\big\}^{\!\!+}$}}}
218 \newcommand{\Goop}[1]{{\text{$\{$}{#1}\text{$\}^{\!+}$}}}
220 % Vertically Arranged Group of Alternatives, {
221 % usage: \xorGOO{line1\\ line2...}{closing delimiter}
222 \newcommand{\xorGOO}[2]{\text{\(%
223 \left\{\!%
224 \begin{array}{l}%
226 \end{array}\!%
227 \right#2%
228 \)}}
230 % Vertically Arranged Group of Optional Objects, {|
231 % usage: \orGOO{line1\\line2}{closing delimiter}
232 \newcommand{\orGOO}[2]{\text{\(%
233 \left\{\!\left|%
234 \begin{array}{l}%
236 \end{array}\!%
237 \right.\right#2%
238 \)}}
240 % Vertically Arranged Group of Objects, No Opening {
241 % usage: \arrGOO{line1\\line2}{closing delimiter}
242 \newcommand{\arrGOO}[2]{\text{\(\!%
243 \left.%
244 \begin{array}{l}%
246 \end{array}\!%
247 \right#2%
248 \)}}
250 % Boxed Group of Alternatives
251 % usage: \boxGOO{line1\\ line2...}
252 \newcommand{\boxGOO}[1]{\text{\hspace{1ex}\(%
253 \setlength{\fboxsep}{1pt}\setlength{\fboxrule}{0pt}
254 \boxed{
255 \setlength{\fboxsep}{1pt}\setlength{\fboxrule}{.1pt}
256 \boxed{\;%
257 \begin{array}[t]{l}%
259 \end{array}%
262 \)}}
264 % In a Boxed Group of Alternatives: Replacement for \\ with additional
265 % vspace
266 \newcommand{\boxGOOcr}{\vspace{1ex}\\}
269 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
270 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
271 % All sorts of tags attached to lisp keywords
272 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
273 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
275 \newlength{\TAGwidth}
276 \newlength{\KEYWORDwidth}
278 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
279 % Generic Keyword, Lowercase
280 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
281 \newcommand{\kwd}[1]{\text{{\sffamily\bfseries\selectfont%
282 \lowercase{#1}}}}
284 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
285 % Generic Keyword, Uppercase
286 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
287 \newcommand{\KWD}[1]{\text{{\sffamily\bfseries\selectfont%
288 \uppercase{#1}}}}
290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
291 % Macro
292 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
293 \newcommand{\MC}[1]{%
294 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}Mx}% x just for space
295 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
296 \ifdim\TAGwidth > \KEYWORDwidth%
297 \text{{\sffamily\bfseries\selectfont%
298 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}M}}\lowercase{#1}}}}%
299 \else%
300 \text{{\sffamily\bfseries\selectfont%
301 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}M}}\lowercase{#1}}}}%
302 \fi}
304 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
305 % Special Operator
306 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
307 \newcommand{\SO}[1]{%
308 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}SOx}% x just for space
309 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
310 \ifdim\TAGwidth > \KEYWORDwidth%
311 \text{{\sffamily\bfseries\selectfont%
312 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}sO}}\lowercase{#1}}}}%
313 \else%
314 \text{{\sffamily\bfseries\selectfont%
315 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}sO}}\lowercase{#1}}}}%
316 \fi}
318 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
319 % Function
320 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
321 \newcommand{\FU}[1]{%
322 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}Fux}% x just for space
323 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
324 \ifdim\TAGwidth > \KEYWORDwidth%
325 \text{{\sffamily\bfseries\selectfont%
326 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}Fu}}\lowercase{#1}}}}%
327 \else%
328 \text{{\sffamily\bfseries\selectfont%
329 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}Fu}}\lowercase{#1}}}}%
330 \fi}
332 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
333 % Generic Function
334 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
335 \newcommand{\GFU}[1]{%
336 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}gFx}% x just for space
337 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
338 \ifdim\TAGwidth > \KEYWORDwidth%
339 \text{{\sffamily\bfseries\selectfont%
340 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}gF}}\lowercase{#1}}}}%
341 \else%
342 \text{{\sffamily\bfseries\selectfont%
343 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}gF}}\lowercase{#1}}}}%
344 \fi}
346 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
347 % Variable
348 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
349 \newcommand{\V}[1]{%
350 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.8em}varx}% x just for space
351 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
352 \ifdim\TAGwidth > \KEYWORDwidth%
353 \text{{\sffamily\bfseries\selectfont%
354 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}var}}\lowercase{#1}}}}%
355 \else%
356 \text{{\sffamily\bfseries\selectfont%
357 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.8em}var}}\lowercase{#1}}}}%
358 \fi}
360 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
361 % Constant
362 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
363 \newcommand{\CNS}[1]{%
364 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}cox}% x just for space
365 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
366 \ifdim\TAGwidth > \KEYWORDwidth%
367 \text{{\sffamily\bfseries\selectfont%
368 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}co}}\lowercase{#1}}}}%
369 \else%
370 \text{{\sffamily\bfseries\selectfont%
371 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}co}}\lowercase{#1}}}}%
372 \fi}
374 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
375 % Loop Keyword
376 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
377 \newcommand{\LKWD}[1]{\text{{\sffamily\bfseries\selectfont%
378 {\raisebox{1.4ex}[1ex][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}}}\lowercase{#1}}}}}
380 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
381 % Return Values, First, Second, nth, Third
382 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
383 \renewcommand{\ULthickness}{.2pt}
384 \newcommand{\retval}[1]{\uline{#1}}
385 %\newcommand{\retvalii}[1]{\uuline{#1}}
386 \newcommand{\retvaln}[2]{{%
387 {\raisebox{-1.7ex}[0pt][1.4ex]{\tiny\sffamily\upshape\mdseries\makebox[0pt][l]{\hspace{-.1em}#1}}\uline{#2}}}}
388 \newcommand{\retvalii}[1]{\retvaln{2}{#1}}
389 \newcommand{\retvaliii}[1]{\retvaln{3}{#1}}
391 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
392 % T and NIL
393 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
394 \newcommand{\T}{\text{\ttfamily T}}
395 \newcommand{\NIL}{\text{\ttfamily NIL}}
397 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
398 % ~ (slightly lowered)
399 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
400 \newcommand{\TLD}{{\protect\raisebox{-.8ex}{\textasciitilde}}}
402 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
403 % * (lowered version)
404 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
405 \newcommand{\A}{\textasteriskcentered}
407 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
408 % Starred commands send their argument into index:
409 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
410 \WithSuffix\newcommand\kwd*[1]{\kwd{#1}\uppercase{\index{#1}}}
411 \WithSuffix\newcommand\KWD*[1]{\KWD{#1}\uppercase{\index{#1}}}
412 \WithSuffix\newcommand\MC*[1]{\MC{#1}\uppercase{\index{#1}}}
413 \WithSuffix\newcommand\SO*[1]{\SO{#1}\uppercase{\index{#1}}}
414 \WithSuffix\newcommand\FU*[1]{\FU{#1}\uppercase{\index{#1}}}
415 \WithSuffix\newcommand\GFU*[1]{\GFU{#1}\uppercase{\index{#1}}}
416 \WithSuffix\newcommand\V*[1]{\V{#1}\uppercase{\index{#1}}}
417 \WithSuffix\newcommand\CNS*[1]{\CNS{#1}\uppercase{\index{#1}}}
418 \WithSuffix\newcommand\LKWD*[1]{\LKWD{#1}\uppercase{\index{#1}}}
420 \hyphenation{white-space pa-ra-me-ters}
422 \begin{document}
424 \newlength{\titlepagewidth}
425 \setlength{\titlepagewidth}{8cm}
426 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
427 %% Front Cover
428 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
429 \begin{titlepage}
430 \renewcommand{\rmdefault}{ptm} %% Always times fonts on title
431 \advance\oddsidemargin by 1.5mm
432 \vspace*{15mm}
433 \begin{center}
434 \begin{minipage}{\titlepagewidth}
435 \begin{center}
436 \rmfamily\mdseries\itshape\fontsize{20}{0}\selectfont
437 Quick Reference\\
438 \end{center}
439 \end{minipage}
440 \vfill
441 \begin{minipage}{\titlepagewidth}
442 \begin{center}
443 \rmfamily\mdseries\itshape%
444 \fontsize{300}{0}\selectfont{\color{frontcovergray}cl\/}\\
445 \end{center}
446 \end{minipage}
447 \vfill
448 \begin{minipage}{\titlepagewidth}
449 \rmfamily\mdseries\itshape\fontsize{36}{0}\selectfont
450 \hfill Common\/\\[2mm]
451 \rmfamily\mdseries\upshape\fontsize{157}{0}\selectfont
452 \rule[3mm]{\textwidth}{1.5mm}\\
453 lisp\\[-10mm]
454 \rule[15mm]{5.5cm}{1.5mm}\hfill\rule[15mm]{1.77cm}{1.5mm}
455 \end{minipage}\\
456 \begin{minipage}{\titlepagewidth}
457 \rmfamily\mdseries\upshape\fontsize{14}{0}\selectfont
458 \AUTHOR
459 \vspace*{4mm}
460 \end{minipage}
461 \end{center}
463 \end{titlepage}
465 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
466 % TOC
467 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
468 \section*{\contentsname}
469 \vspace{-3ex}
471 \setlength{\columnsep}{1.5em}%
472 \begin{multicols}{2}
473 \tableofcontents
474 \end{multicols}%
476 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
477 \vfill
478 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
479 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
480 %%% CONTENT STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%
481 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
483 \input{clqr-typographic-conventions}
484 \clearpage
485 \input{clqr-numbers}
486 \input{clqr-characters}
487 \input{clqr-strings}
488 \input{clqr-conses}
489 \input{clqr-arrays}
490 \input{clqr-sequences}
491 \input{clqr-hash-tables}
492 \input{clqr-structures}
493 \input{clqr-control-structure}
494 \input{clqr-clos}
495 \input{clqr-conditions-and-errors}
496 \input{clqr-input-output}
497 \input{clqr-types-and-classes}
498 \input{clqr-packages-and-symbols}
499 \input{clqr-compiler}
500 \input{clqr-external-environment}
502 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
503 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
504 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
506 \clearpagebeforeindex % \clearpage dependent on paper size
508 \renewcommand{\indexpagestyle}{lispref}
509 \renewenvironment{theindex}%
510 {\begin{list}{}%
511 {\setlength{\itemindent}{-1em}\setlength{\leftmargin}{1em}}%
512 \parskip0pt plus .1pt \itemsep0pt%
513 \raggedright\looseness=-1%
515 {\end{list}}
516 \begin{multicols}{4}
517 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
518 [\section*{Index}\vspace{-5ex}]
519 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
520 % Stock \printindex won't do as we want more than two columns.
521 \tiny\sffamily\input{clqr.ind}
522 \end{multicols}
525 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
526 % Make (total) page count a multiple of four.
527 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
528 \clearpage
529 \pagestyle{empty}
530 \newcount\currentpage
531 \currentpage=\value{page}
532 \divide\currentpage by 4
533 \multiply\currentpage by 4
534 \advance\currentpage by -\value{page}
536 \ifnum\the\currentpage=-3
537 \rule{0pt}{0pt}\clearpage
538 \else\ifnum\the\currentpage=-2
539 \rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage
540 \else\ifnum\the\currentpage=-1
541 \rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage
542 \fi\fi\fi
544 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
545 %% Back Cover
546 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
547 \begin{titlepage}
548 \advance\evensidemargin by -1.5mm
549 \begin{center}
550 \renewcommand{\rmdefault}{ptm} %% Always times fonts on title
551 \vspace*{20pt}
552 \vfill
553 \begin{minipage}{\titlepagewidth}
554 \begin{center}
555 \rmfamily\mdseries\itshape\fontsize{300}{0}\selectfont
556 \reflectbox{{\color{backcovergray}cl\/}}\\
557 \end{center}
558 \end{minipage}
559 \vfill
560 \vspace*{40.5mm}% Adjust here if text below changes
561 \begin{minipage}{\titlepagewidth}
562 \hrule
563 \vspace{1.5mm}
564 \rmfamily\small
565 \makebox[\textwidth][l]{\maintitle\ \hfill Revision \input{REVISION}
566 [\input{DATE}\hspace{-.65ex}]}
567 \makebox[\textwidth][l]{Copyright \copyright\ 2008, 2009
568 \AUTHOR\hfill}
569 \makebox[\textwidth][l]{\LaTeX\ source:
570 \href{http://clqr.berlios.de}{http://clqr.berlios.de}\hfill}\\[1mm]
571 Permission is granted to copy, distribute and/or modify this
572 document under the terms of the GNU Free Documentation License,
573 Version 1.2 or any later version published by the Free Software
574 Foundation; with no Invariant Sections, no Front-Cover Texts and
575 no Back-Cover Texts.\hfill
576 \href{http://www.gnu.org/licenses/fdl.html}{http://www.gnu.org/licenses/fdl.html}\\
577 \vspace{-1mm}
578 \hrule
579 \end{minipage}
580 \end{center}
581 \end{titlepage}
583 \end{document}
584 % -*-latex-*-
586 % LocalWords: ptm lightgray cl lispref theindex pt
588 %%% Local Variables:
589 %%% mode: latex
590 %%% TeX-master: t
591 %%% End: