Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 629 lines (594 sloc) 18.993 kB
57fec11 @trebb intial revision, cleaned for public
authored
1 % Copyright (C) 2008 Bert Burgemeister
2 %
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.
8 %
9
6360751 @trebb hyperlinks added, html slightly changed
authored
10 \newcommand{\maintitle}{Common\ Lisp\ Quick\ Reference}
11 \newcommand{\AUTHOR}{Bert~Burgemeister}
57fec11 @trebb intial revision, cleaned for public
authored
12
13 \documentclass[8pt,pagesize,twoside,footexclude,headexclude]{scrartcl}
14 %
15 %%%%%%%%%%%%%%%%%%
16 % outsourced page dimensions
17 \input{paper-current}
18 %\setlength{\paperwidth}{10.5cm}
19 %\setlength{\paperheight}{29.7cm}
20 %%\areaset[3mm]{9cm}{28.3cm}
21 %\typearea[2mm]{20}
22 %%%%%%%%%%%%%%%%%%
6360751 @trebb hyperlinks added, html slightly changed
authored
23 %
24 %%%%%%%%%%%%%%%%%%
25 % outsourced hypertext colors
26 \input{color-current}
27 %\newcommand{\linkcolor}{Fuchsia}
28 %\newcommand{\urlcolor}{MidnightBlue}
29 %\newcommand{\bookmarks}{true}
30 %\newcommand{\pdfpagelayout}{TwoColumnLeft}
31 %%%%%%%%%%%%%%%%%%
32 %
57fec11 @trebb intial revision, cleaned for public
authored
33 \usepackage{amsmath}
34 \usepackage{amsfonts}
35 \usepackage{amssymb}
36 \usepackage{rotating}
37 \usepackage{graphics}
38 \usepackage{multicol}
39 \usepackage{textcase}
7b1099a @trebb continued work
authored
40 \usepackage{ulem}
57fec11 @trebb intial revision, cleaned for public
authored
41 \usepackage[usenames,dvips]{color}
42 \usepackage{ifthen}
43 \usepackage{suffix}
44 \usepackage{makeidx}
45 \definecolor{lightgray}{gray}{.85}
46 \usepackage[pagestyles]{titlesec}
47 \usepackage{titletoc}
48 %
49 %%%%%%%%%%%%%%%%%%
50 % Two font alternatives:
250be92 @trebb minor changes
authored
51 % (A) All Computer Modern
57fec11 @trebb intial revision, cleaned for public
authored
52 \usepackage{type1cm}
53 \usepackage{exscale}
54 %%%%%%%%%%%%%%%%%%
250be92 @trebb minor changes
authored
55 % (B) Times mixed with Helvetica
57fec11 @trebb intial revision, cleaned for public
authored
56 %\usepackage{mathptmx}
57 %\usepackage[scaled]{helvet}
58 %%%%%%%%%%%%%%%%%%
59 %
6360751 @trebb hyperlinks added, html slightly changed
authored
60 % should remain last usepackage:
61 \usepackage%
62 [breaklinks,linktocpage,colorlinks,%
63 bookmarksnumbered,bookmarks=\bookmarks,%
64 linkcolor=\linkcolor,urlcolor=\urlcolor,%
65 pdfpagelayout=\pdfpagelayout,%
66 pdftitle=\maintitle,pdfauthor=\AUTHOR]%
67 {hyperref}
68 %
57fec11 @trebb intial revision, cleaned for public
authored
69 \makeindex
70 \titleformat{\section}{\sffamily\mdseries\slshape}
71 {\huge\thesection}{.7em}{\huge}[{\titlerule[0.25pt]}]
72
73 \titleformat{\subsection}{\sffamily\mdseries\slshape}
74 {\Large\thesubsection}{.7em}{\Large}[{\titlerule[0.25pt]}]
75
76 % Kill toc header as we want it to span columns
77 \makeatletter
78 \renewcommand{\toc@heading}{}
79 \makeatother
80
ba50327 @trebb toc partly abbreviated, lots of typos fixed
authored
81 \titlecontents{section}%
82 [1.5em]%
83 {\vspace{.5em plus 1em minus .2em}\sffamily\bfseries\upshape\filright}%
84 {\contentslabel{1.5em}}%
85 {\hspace*{3em}}%
86 {\hfill\contentspage\vspace{.1em}}%
87
88 \titlecontents{subsection}%
89 [4em]%
90 {\sffamily\mdseries\upshape\filright}%
91 {\contentslabel{2.5em}}%
92 {\hspace*{5.5em}}%
93 {\hspace{1ex}\titlerule*[1.5ex]{.}\contentspage}%
57fec11 @trebb intial revision, cleaned for public
authored
94
327abd6 @trebb improved layout
authored
95 \newlength{\LISTlinewidth}
57fec11 @trebb intial revision, cleaned for public
authored
96 \newenvironment{LIST}[1]%
97 {%
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
98 \LISTlinewidth=\linewidth%
843d07c @trebb minor changes, mainly layout
authored
99 \begin{flushleft}%
57fec11 @trebb intial revision, cleaned for public
authored
100 \begin{list}{}%
101 {\setlength{\itemindent}{-#1}\setlength{\leftmargin}{#1}}%
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
102 %\parskip0pt\itemsep0pt%
57fec11 @trebb intial revision, cleaned for public
authored
103 }%
104 {\end{list}%
843d07c @trebb minor changes, mainly layout
authored
105 \end{flushleft}%
57fec11 @trebb intial revision, cleaned for public
authored
106 }%
107 %
327abd6 @trebb improved layout
authored
108 %\renewcommand{\topfraction}{1}
57fec11 @trebb intial revision, cleaned for public
authored
109 \renewcommand{\bottomfraction}{1}
110 \renewcommand*{\figureformat}{}
111 \renewcommand*{\captionformat}{}
112 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
113 %
114 \setlength{\parfillskip}{5cm plus1cm minus3cm}
115 \setlength{\arraycolsep}{0pt}
116 %
327abd6 @trebb improved layout
authored
117 %
1b75018 @trebb continued work
authored
118 \def\startexplanation{$\triangleright$\hskip1.4ex}
327abd6 @trebb improved layout
authored
119 \newlength{\ITwidth}
120 \newlength{\ITrest}
121 \newlength{\ITtab}\ITtab=3em
122 %
123 \def\IT#1 #2 {%
124 \settowidth{\ITwidth}{#1\unskip\hskip1em\hskip\ITtab}%
125 \ITrest=\LISTlinewidth\advance\ITrest by -\ITwidth%
126 \loop\ifdim\ITrest > \ITtab%
127 \advance\ITrest by -\ITtab%
128 \repeat%
129 %
130 \settowidth{\ITwidth}{%
131 #1\unskip\hskip1em\hskip\ITrest%
132 \startexplanation#2%
133 }%
134 \item{}%
135 \ifdim\ITwidth < \LISTlinewidth% Entry fits into a single line
136 #1\unskip\hskip1em\hskip\ITrest%
137 \startexplanation#2%
138 \else%
139 #1%
843d07c @trebb minor changes, mainly layout
authored
140 \unskip\penalty-10000%
141 \parbox[t]{\linewidth}{\startexplanation#2}%
327abd6 @trebb improved layout
authored
142 \fi%
143 }
144 %
57fec11 @trebb intial revision, cleaned for public
authored
145 %
146 \newpagestyle{lispref}[\sffamily\mdseries\slshape]{
147 \headrule\footrule
148 \sethead*{}{}{\maintitle\/}
149 \setfoot*{}{}{\thepage\/}}
150 \pagestyle{lispref}
151
152 %
153 % Literal Text
154 \newcommand{\LIT}[1]{\text{{\fontfamily{cmtt}\selectfont#1}}}
155 %
156 % Variable Text
157 \newcommand{\VAR}[1]{\text{{\fontfamily{cmr}\fontshape{it}\selectfont#1\/}}}
158 %
0fb7e5b @trebb minor layout changes
authored
159 % Not Evaluated
160 \newcommand{\NEV}[1]{\text{{$\widehat{#1}$}}}
161 %
ba50327 @trebb toc partly abbreviated, lots of typos fixed
authored
162 % Subjected to Destruction
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
163 % (not yet visible)
164 %\newcommand{\DES}[1]{\text{{$\widetilde{#1}$}}}
165 \newcommand{\DES}[1]{#1}
ba50327 @trebb toc partly abbreviated, lots of typos fixed
authored
166 %
57fec11 @trebb intial revision, cleaned for public
authored
167 % Default Value
168 \newcommand{\DF}[1]{\text{\textsubscript{\setlength{\fboxsep}{.5pt}\setlength{\fboxrule}{.1pt}\fbox{#1}}}}
169 %
170 % Optional Part, [], two sizes
171 \newcommand{\OP}[1]{{\text{$\big[$}{#1}\text{$\big]$}}}
172 \newcommand{\Op}[1]{{\text{$[$}{#1}\text{$]$}}}
173 %
174 % Or, |
175 \newcommand{\XOR}{\hspace{1pt}\text{\rule[-.9ex]{.25pt}{3ex}}\hspace{1pt}}
176 %\newcommand{\XOR}{\text{$\mid$}\hspace{0pt}}
177 %
178 % Optional Parts, *
179 \newcommand{\OPn}[1]{{{#1}\text{${}^{*}$}}}
180 %
181 % Required Parts, +
182 \newcommand{\RP}[1]{{{#1}\text{${}^{+}$}}}
183 %
184 %
185 % Group of Objects {}, three sizes
186 \newcommand{\GOO}[1]{{\text{$\Big\{$}{#1}\text{$\Big\}$}}}
187 \newcommand{\GOo}[1]{{\text{$\big\{$}{#1}\text{$\big\}$}}}
188 \newcommand{\Goo}[1]{{\text{$\{$}{#1}\text{$\}$}}}
189 % Optional Group of Objects, {}*, three sizes
190 \newcommand{\GOOs}[1]{{$\Big\{${#1}$\Big\}^{\!\!*}$}}
191 \newcommand{\GOos}[1]{\text{{$\big\{${#1}$\big\}^{\!\!*}$}}}
192 \newcommand{\Goos}[1]{\text{{$\{${#1}$\}^{\!*}$}}}
193 % Required Group of Objects, {}+, three sizes
2279aca @trebb minor changes, mainly html
authored
194 \newcommand{\GOOp}[1]{{\text{$\Big\{$}{#1}\text{$\Big\}^{\!\!+}$}}}
195 \newcommand{\GOop}[1]{{\text{$\big\{$}{#1}\text{$\big\}^{\!\!+}$}}}
196 \newcommand{\Goop}[1]{{\text{$\{$}{#1}\text{$\}^{\!+}$}}}
57fec11 @trebb intial revision, cleaned for public
authored
197 %
198 % Vertically Arranged Group of Alternatives, {
199 % usage: \xorGOO{line1\\ line2...}{closing delimiter}
200 \newcommand{\xorGOO}[2]{\text{\(%
8593f12 @trebb rearragements, changes in layout
authored
201 \left\{\!%
57fec11 @trebb intial revision, cleaned for public
authored
202 \begin{array}{l}%
203 #1%
8593f12 @trebb rearragements, changes in layout
authored
204 \end{array}\!%
57fec11 @trebb intial revision, cleaned for public
authored
205 \right#2%
206 \)}}
207 %
208 % Vertically Arranged Group of Optional Objects, {|
209 % usage: \orGOO{line1\\line2}{closing delimiter}
210 \newcommand{\orGOO}[2]{\text{\(%
211 \left\{\!\left|%
212 \begin{array}{l}%
213 #1%
8593f12 @trebb rearragements, changes in layout
authored
214 \end{array}\!%
57fec11 @trebb intial revision, cleaned for public
authored
215 \right.\right#2%
216 \)}}
217 %
218 % Vertically Arranged Group of Objects, No Opening {
219 % usage: \arrGOO{line1\\line2}{closing delimiter}
af15371 @trebb lots of corrections
authored
220 \newcommand{\arrGOO}[2]{\text{\(\!%
57fec11 @trebb intial revision, cleaned for public
authored
221 \left.%
222 \begin{array}{l}%
223 #1%
8593f12 @trebb rearragements, changes in layout
authored
224 \end{array}\!%
57fec11 @trebb intial revision, cleaned for public
authored
225 \right#2%
226 \)}}
227 %
228 % Boxed Group of Alternatives
229 % usage: \boxGOO{line1\\ line2...}
230 \newcommand{\boxGOO}[1]{\text{\hspace{1ex}\(%
231 \setlength{\fboxsep}{1pt}\setlength{\fboxrule}{0pt}
232 \boxed{
233 \setlength{\fboxsep}{1pt}\setlength{\fboxrule}{.1pt}
234 \boxed{\;%
235 \begin{array}{l}%
236 #1%
237 \end{array}%
238 }%
239 }%
240 \)}}
241 %
242 %
1b75018 @trebb continued work
authored
243 % In a Boxed Group of Alternatives: Replacement for \\ with additional
244 % vspace
245 \newcommand{\boxGOOcr}{\vspace{1ex}\\}
246 %
247 %
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
248 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
249 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
250 % All sorts of tags attached to lisp keywords
251 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
252 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
253 %
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
254 \newlength{\TAGwidth}
255 \newlength{\KEYWORDwidth}
256 %
257 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
258 % Generic Keyword, Lowercase
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
259 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
260 \newcommand{\kwd}[1]{\text{{\sffamily\bfseries\selectfont%
261 \lowercase{#1}}}}
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
262 %
263 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
264 % Generic Keyword, Uppercase
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
265 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
266 \newcommand{\KWD}[1]{\text{{\sffamily\bfseries\selectfont%
267 \uppercase{#1}}}}
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
268 %
269 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
efeaeb8 @trebb SF (special form) markers replaced by MC (macro) and SO (special oper…
authored
270 % Macro
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
271 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
272 \newcommand{\MC}[1]{%
273 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}M}%
274 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
275 \ifdim\TAGwidth > \KEYWORDwidth%
276 \text{{\sffamily\bfseries\selectfont%
277 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}M}}\lowercase{#1}}}}%
278 \else%
279 \text{{\sffamily\bfseries\selectfont%
280 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}M}}\lowercase{#1}}}}%
281 \fi}
282 %
283 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
efeaeb8 @trebb SF (special form) markers replaced by MC (macro) and SO (special oper…
authored
284 % Special Operator
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
285 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
286 \newcommand{\SO}[1]{%
287 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}SO}%
288 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
289 \ifdim\TAGwidth > \KEYWORDwidth%
290 \text{{\sffamily\bfseries\selectfont%
291 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}SO}}\lowercase{#1}}}}%
292 \else%
293 \text{{\sffamily\bfseries\selectfont%
294 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}SO}}\lowercase{#1}}}}%
295 \fi}
296 %
297 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
298 % Function
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
299 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
300 \newcommand{\FU}[1]{%
301 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}Fu}%
302 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
303 \ifdim\TAGwidth > \KEYWORDwidth%
304 \text{{\sffamily\bfseries\selectfont%
305 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}Fu}}\lowercase{#1}}}}%
306 \else%
307 \text{{\sffamily\bfseries\selectfont%
308 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}Fu}}\lowercase{#1}}}}%
309 \fi}
310 %
311 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
312 % Generic Function
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
313 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
314 \newcommand{\GFU}[1]{%
315 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}gF}%
316 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
317 \ifdim\TAGwidth > \KEYWORDwidth%
318 \text{{\sffamily\bfseries\selectfont%
319 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}gF}}\lowercase{#1}}}}%
320 \else%
321 \text{{\sffamily\bfseries\selectfont%
322 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}gF}}\lowercase{#1}}}}%
323 \fi}
324 %
325 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
326 % Variable
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
327 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
328 \newcommand{\V}[1]{%
329 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.8em}var}%
330 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
331 \ifdim\TAGwidth > \KEYWORDwidth%
332 \text{{\sffamily\bfseries\selectfont%
333 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}var}}\lowercase{#1}}}}%
334 \else%
335 \text{{\sffamily\bfseries\selectfont%
336 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.8em}var}}\lowercase{#1}}}}%
337 \fi}
338 %
339 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
340 % Constant
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
341 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
342 \newcommand{\CNS}[1]{%
343 \settowidth{\TAGwidth}{\tiny\sffamily\mdseries\hspace*{.5em}co}%
344 \settowidth{\KEYWORDwidth}{\lowercase{#1}}%
345 \ifdim\TAGwidth > \KEYWORDwidth%
346 \text{{\sffamily\bfseries\selectfont%
347 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{0em}co}}\lowercase{#1}}}}%
348 \else%
349 \text{{\sffamily\bfseries\selectfont%
350 {\raisebox{1.4ex}[0pt][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}co}}\lowercase{#1}}}}%
351 \fi}
352 %
353 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
354 % Loop Keyword
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
355 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
356 \newcommand{\LKWD}[1]{\text{{\sffamily\bfseries\selectfont%
357 {\raisebox{1.4ex}[1ex][0pt]{\tiny\sffamily\mdseries\makebox[0pt][l]{\hspace{.5em}}}\lowercase{#1}}}}}
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
358 %
359 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
0fb7e5b @trebb minor layout changes
authored
360 % Return values, First, Second, nth, Third
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
361 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
7b1099a @trebb continued work
authored
362 \newcommand{\retval}[1]{\uline{#1}}
363 \newcommand{\retvalii}[1]{\uuline{#1}}
0fb7e5b @trebb minor layout changes
authored
364 \newcommand{\retvaln}[2]{{%
365 {\raisebox{-1.7ex}[1ex][0pt]{\tiny\sffamily\upshape\mdseries\makebox[0pt][l]{\hspace{-.1em}#1}}\uline{#2}}}}
366 \newcommand{\retvaliii}[1]{\retvaln{3}{#1}}
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
367 %
368 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
369 % T and NIL
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
370 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
371 \newcommand{\T}{\text{\ttfamily T}}
372 \newcommand{\NIL}{\text{\ttfamily NIL}}
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
373 %
374 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
375 % ~
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
376 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
377 \newcommand{\TLD}{{\textasciitilde}}
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
378 %
379 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
380 % Starred versions send their argument into index:
381 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
382 \WithSuffix\newcommand\kwd*[1]{\kwd{#1}\uppercase{\index{#1}}}
383 \WithSuffix\newcommand\KWD*[1]{\KWD{#1}\uppercase{\index{#1}}}
efeaeb8 @trebb SF (special form) markers replaced by MC (macro) and SO (special oper…
authored
384 \WithSuffix\newcommand\MC*[1]{\MC{#1}\uppercase{\index{#1}}}
385 \WithSuffix\newcommand\SO*[1]{\SO{#1}\uppercase{\index{#1}}}
57fec11 @trebb intial revision, cleaned for public
authored
386 \WithSuffix\newcommand\FU*[1]{\FU{#1}\uppercase{\index{#1}}}
387 \WithSuffix\newcommand\GFU*[1]{\GFU{#1}\uppercase{\index{#1}}}
388 \WithSuffix\newcommand\V*[1]{\V{#1}\uppercase{\index{#1}}}
389 \WithSuffix\newcommand\CNS*[1]{\CNS{#1}\uppercase{\index{#1}}}
390 \WithSuffix\newcommand\LKWD*[1]{\LKWD{#1}\uppercase{\index{#1}}}
391
392 \begin{document}
393
394 \newlength{\titlepagewidth}
395 \setlength{\titlepagewidth}{8cm}
396 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
397 %% Front Cover
398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
399 \begin{titlepage}
400 \renewcommand{\rmdefault}{ptm} %% Always times font on title
401 \vspace*{15mm}
402 \begin{center}
403 \begin{minipage}{\titlepagewidth}
404 \begin{center}
405 \rmfamily\mdseries\itshape\fontsize{20}{0}\selectfont
406 Quick Reference\\
407 \end{center}
408 \end{minipage}
409 \vfill
410 \begin{minipage}{\titlepagewidth}
411 \begin{center}
412 \rmfamily\mdseries\itshape\fontsize{300}{0}\selectfont%
413 {\color{lightgray}cl\/}\\
414 \end{center}
415 \end{minipage}
416 \vfill
417 \begin{minipage}{\titlepagewidth}
418 \rmfamily\mdseries\itshape\fontsize{36}{0}\selectfont
419 \hfill Common\/\\[2mm]
420 \rmfamily\mdseries\upshape\fontsize{157}{0}\selectfont
421 \rule[3mm]{\textwidth}{1.5mm}\\
422 lisp\\[-10mm]
423 \rule[15mm]{5.5cm}{1.5mm}\hfill\rule[15mm]{1.77cm}{1.5mm}
424 \end{minipage}
425 \begin{minipage}{\titlepagewidth}
426 \rmfamily\mdseries\upshape\fontsize{14}{0}\selectfont
6360751 @trebb hyperlinks added, html slightly changed
authored
427 \AUTHOR
57fec11 @trebb intial revision, cleaned for public
authored
428 \vspace*{4mm}
429 \end{minipage}
430 \end{center}
431
432 \end{titlepage}
433
434 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
435 \section*{\contentsname}
436 \vspace{-3ex}
437 {%
438 \setlength{\columnsep}{1.5em}%
439 \begin{multicols}{2}
440 \tableofcontents
441 \end{multicols}%
442 }
443 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
444 \vfill
8593f12 @trebb rearragements, changes in layout
authored
445
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
446 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
447 \section*{Typographic Conventions}
448 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8593f12 @trebb rearragements, changes in layout
authored
449
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
450 \begin{LIST}{1cm}
451
452 \IT{\kwd{NAME}, \FU{NAME}, \MC{NAME}, \SO{NAME}, \GFU{NAME}, \V{*name*},
453 \CNS{name}}
454 {
455 Symbol defined in Common Lisp; esp.\ function, macro, special operator, generic function,
456 variable, constant.
457 }
458
459 \IT{\VAR{them}\qquad\qquad\qquad}
460 {
461 Placeholder for actual code.
462 }
463
464 \IT{\LIT{me}\qquad\qquad\qquad\qquad}
465 {
466 Text to input literally, or output literally.
467 }
468
469 \IT{\Op{\VAR{foo}\DF{\LIT{bar}}}\qquad\qquad}
470 {
471 Either one \VAR{foo} or nothing; defaults to \LIT{bar}.
472 }
473
474 \IT{\OPn{\VAR{foo}}; \Goos{\VAR{foo}}}
475 {
476 Zero or more \VAR{foo}s.
477 }
478
479 \IT{\RP{\VAR{foo}}; \Goop{\VAR{foo}}}
480 {
481 One or more \VAR{foo}s.
482 }
483
484 \IT{\VAR{foos}\qquad\qquad\qquad}
485 {
486 English plural denotes a list argument.
487 }
488
489 \IT{\Goo{\VAR{foo}\XOR\VAR{bar}\XOR\VAR{baz}};
490 \xorGOO{
491 \VAR{foo}\\
492 \VAR{bar}\\
493 \VAR{baz}%
494 }{.}}
495 {
496 Either \VAR{foo}, or \VAR{bar}, or \VAR{baz}.
497 }
498
499 \IT{\orGOO{
500 \VAR{foo}\\
501 \VAR{bar}\\
502 \VAR{baz}
503 }{.}}
504 {
505 Anything from none to each of \VAR{foo}, \VAR{bar}, and \VAR{baz}.
506 }
507
508 \IT{\NEV{\VAR{bar}}\qquad\qquad\qquad}
509 {
510 \VAR{bar} is not evaluated.
511 }
512
513 \IT{\retval{\VAR{foo}}; \retvalii{\VAR{bar}};
514 \retvaln{\VAR{n}}{\VAR{baz}}}
515 {
516 First, second and \VAR{n}th return value.
517 }
518
519 \IT{\T\qquad\qquad\qquad\qquad}
520 {
521 \kwd*{T}, or truth in general.
522 }
523
524 \IT{\NIL\qquad\qquad\qquad}
525 {
526 \kwd*{NIL} or \kwd{()}.
527 }
528
529 \end{LIST}
530 \clearpage
531 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
532 %%% Content starts here %%%%%%%%%%%%%%%%%%%%%%%%%%
533 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8593f12 @trebb rearragements, changes in layout
authored
534
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
535 \input{clqr-numbers}
536 \input{clqr-characters}
537 \input{clqr-strings}
538 \input{clqr-conses}
539 \input{clqr-arrays}
540 \input{clqr-sequences}
541 \input{clqr-hash-tables}
542 \input{clqr-structures}
543 \input{clqr-control-structure}
544 \input{clqr-clos}
545 \input{clqr-conditions-and-errors}
546 \input{clqr-input-output}
547 \input{clqr-types-and-classes}
548 \input{clqr-packages-and-symbols}
549 \input{clqr-compiler}
550 \input{clqr-environment}
57fec11 @trebb intial revision, cleaned for public
authored
551
552 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
553 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
554 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8593f12 @trebb rearragements, changes in layout
authored
555 %
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
556 \clearpage % Uncomment/comment this line to waste/save some space
8593f12 @trebb rearragements, changes in layout
authored
557 %
57fec11 @trebb intial revision, cleaned for public
authored
558 \renewcommand{\indexpagestyle}{lispref}
559 \renewenvironment{theindex}%
560 {\begin{list}{}%
561 {\setlength{\itemindent}{-1em}\setlength{\leftmargin}{1em}}%
7b1099a @trebb continued work
authored
562 \parskip0pt plus .1pt \itemsep0pt%
563 \raggedright\looseness=-1%
564 }%
57fec11 @trebb intial revision, cleaned for public
authored
565 {\end{list}}
8593f12 @trebb rearragements, changes in layout
authored
566 \begin{multicols}{4}
8db8f39 @trebb added missing symbols
authored
567 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
568 [\section*{Index}\vspace{-5ex}]
569 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
efeaeb8 @trebb SF (special form) markers replaced by MC (macro) and SO (special oper…
authored
570 % Stock \printindex won't do as we want more than two columns.
57fec11 @trebb intial revision, cleaned for public
authored
571 \tiny\sffamily\input{clqr.ind}
572 \end{multicols}
573
574
575 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
576 % Make (total) page count a multiple of four.
577 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
578 \clearpage
579 \pagestyle{empty}
580 \newcount\currentpage
581 \currentpage=\value{page}
582 \divide\currentpage by 4
583 \multiply\currentpage by 4
584 \advance\currentpage by -\value{page}
585 \ifthenelse{\equal{\the\currentpage}{-3}}{\rule{0pt}{0pt}\clearpage}{}
586 \ifthenelse{\equal{\the\currentpage}{-2}}{\rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage}{}
587 \ifthenelse{\equal{\the\currentpage}{-1}}{\rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage}{}
588 %
589 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
590 %% Back Cover
591 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
592 \begin{titlepage}
593 \begin{center}
594 \renewcommand{\rmdefault}{ptm} %% Always times font on title
e6fddcb @trebb continued work
authored
595 \vspace*{20pt}
57fec11 @trebb intial revision, cleaned for public
authored
596 \vfill
597 \begin{minipage}{\titlepagewidth}
598 \begin{center}
599 \rmfamily\mdseries\itshape\fontsize{300}{0}\selectfont
600 \reflectbox{{\color{lightgray}cl\/}}\\
601 \end{center}
602 \end{minipage}
603 \vfill
e6fddcb @trebb continued work
authored
604 \vspace*{43mm}% Adjust here if text below changes
57fec11 @trebb intial revision, cleaned for public
authored
605 \begin{minipage}{\titlepagewidth}
606 \hrule
607 \vspace{1.5mm}
608 \rmfamily\small
d18f824 @trebb minor changes
authored
609 \makebox[\textwidth][l]{\maintitle\ \hfill Revision \input{REVISION}
610 [\input{DATE}\hspace{-.65ex}]}
6360751 @trebb hyperlinks added, html slightly changed
authored
611 \makebox[\textwidth][l]{Copyright \copyright\ 2008 \AUTHOR\hfill\LaTeX\ source:
612 \href{http://clqr.berlios.de}{http://clqr.berlios.de}}\\[1.5mm]
57fec11 @trebb intial revision, cleaned for public
authored
613 Permission is granted to copy, distribute and/or modify this
614 document under the terms of the GNU Free Documentation License,
615 Version 1.2 or any later version published by the Free Software
616 Foundation; with no Invariant Sections, no Front-Cover Texts and
28e57ae @trebb minor changes
authored
617 no Back-Cover Texts.\hfill
6360751 @trebb hyperlinks added, html slightly changed
authored
618 \href{http://www.gnu.org/licenses/fdl.html}{http://www.gnu.org/licenses/fdl.html}\\
57fec11 @trebb intial revision, cleaned for public
authored
619 \vspace{-1mm}
620 \hrule
621 \end{minipage}
622 \end{center}
623 \end{titlepage}
624
625 \end{document}
626 % -*-latex-*-
ba50327 @trebb toc partly abbreviated, lots of typos fixed
authored
627
628 % LocalWords: ptm lightgray cl lispref theindex pt
Something went wrong with that request. Please try again.