Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 259 lines (242 sloc) 7.976 kB
d6d2178 @trebb Unfinished work on figures Data Types and Condition Types.
authored
1 % Copyright (C) 2008, 2009, 2010 Bert Burgemeister
57fec11 @trebb intial revision, cleaned for public
authored
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}
6b2316e @trebb format directive tildes lowered and included into the index; logic fu…
authored
11 \newcommand{\AUTHOR}{Bert\ Burgemeister}
12 %
13 %%%%%%%%%%%%%%%%%%
14 % pdf info
15 \newcommand{\SUBJECT}{Common\ Lisp}
4b67a6c @trebb PDFs now have all fonts embedded.
authored
16 \newcommand{\KEYWORDS}{{clqr cheatsheet lisp reference booklet}}
6b2316e @trebb format directive tildes lowered and included into the index; logic fu…
authored
17 %
8e631ed @trebb mostly minor fixes, from F to O in index; destructuring vars and type…
authored
18 %%%%%%%%%%%%%%%%%%
19 % To be reset in paper-*.tex if there is plenty of room
20 \newcommand{\clearpagebeforeindex}{}
21 %
22 %
57fec11 @trebb intial revision, cleaned for public
authored
23 \documentclass[8pt,pagesize,twoside,footexclude,headexclude]{scrartcl}
24 %
8e631ed @trebb mostly minor fixes, from F to O in index; destructuring vars and type…
authored
25 %
57fec11 @trebb intial revision, cleaned for public
authored
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}
8e631ed @trebb mostly minor fixes, from F to O in index; destructuring vars and type…
authored
33 %\renewcommand{\clearpagebeforeindex}{\clearpage}
57fec11 @trebb intial revision, cleaned for public
authored
34 %%%%%%%%%%%%%%%%%%
6360751 @trebb hyperlinks added, html slightly changed
authored
35 %
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 %%%%%%%%%%%%%%%%%%
44 %
eeb7251 @trebb Outsourced usepackages and macros.
authored
45 \input{clqr.packages}
6ca0caa @trebb Unfinished work on figure Data Types.
authored
46 % should remain last usepackage:
47 \usepackage%
48 [breaklinks,linktocpage,colorlinks,%
49 bookmarksnumbered,bookmarks=\bookmarks,%
50 linkcolor=\linkcolor,urlcolor=\urlcolor,%
51 pdfpagelayout=\pdfpagelayout,%
52 pdftitle=\maintitle,pdfauthor=\AUTHOR,%
53 pdfsubject=\SUBJECT,pdfkeywords=\KEYWORDS]%
54 {hyperref}
6360751 @trebb hyperlinks added, html slightly changed
authored
55 %
57fec11 @trebb intial revision, cleaned for public
authored
56 \makeindex
57 \titleformat{\section}{\sffamily\mdseries\slshape}
58 {\huge\thesection}{.7em}{\huge}[{\titlerule[0.25pt]}]
59
60 \titleformat{\subsection}{\sffamily\mdseries\slshape}
61 {\Large\thesubsection}{.7em}{\Large}[{\titlerule[0.25pt]}]
62
63 % Kill toc header as we want it to span columns
64 \makeatletter
65 \renewcommand{\toc@heading}{}
66 \makeatother
67
ba50327 @trebb toc partly abbreviated, lots of typos fixed
authored
68 \titlecontents{section}%
69 [1.5em]%
70 {\vspace{.5em plus 1em minus .2em}\sffamily\bfseries\upshape\filright}%
71 {\contentslabel{1.5em}}%
72 {\hspace*{3em}}%
73 {\hfill\contentspage\vspace{.1em}}%
74
75 \titlecontents{subsection}%
76 [4em]%
77 {\sffamily\mdseries\upshape\filright}%
78 {\contentslabel{2.5em}}%
79 {\hspace*{5.5em}}%
7363166 @trebb lots of minor changes and bug fixes; deftype, defpackage, compile, lo…
authored
80 {\hspace{.5ex plus .5ex minus .3ex}\titlerule*[1em]{.}\contentspage}%
57fec11 @trebb intial revision, cleaned for public
authored
81
eeb7251 @trebb Outsourced usepackages and macros.
authored
82 \input{clqr.macros}
532e584 @trebb marker for implicit progns changed; bigger tildes in index; various a…
authored
83 %
57fec11 @trebb intial revision, cleaned for public
authored
84 \begin{document}
85
86 \newlength{\titlepagewidth}
87 \setlength{\titlepagewidth}{8cm}
88 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
89 %% Front Cover
90 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91 \begin{titlepage}
6b2316e @trebb format directive tildes lowered and included into the index; logic fu…
authored
92 \renewcommand{\rmdefault}{ptm} %% Always times fonts on title
8e631ed @trebb mostly minor fixes, from F to O in index; destructuring vars and type…
authored
93 \advance\oddsidemargin by 1.5mm
57fec11 @trebb intial revision, cleaned for public
authored
94 \vspace*{15mm}
95 \begin{center}
96 \begin{minipage}{\titlepagewidth}
97 \begin{center}
98 \rmfamily\mdseries\itshape\fontsize{20}{0}\selectfont
1090c0b @trebb Unnecessary abbreviation expanded.
authored
99 Quick Reference\index{CLQR}\\
57fec11 @trebb intial revision, cleaned for public
authored
100 \end{center}
101 \end{minipage}
102 \vfill
103 \begin{minipage}{\titlepagewidth}
104 \begin{center}
6b2316e @trebb format directive tildes lowered and included into the index; logic fu…
authored
105 \rmfamily\mdseries\itshape%
106 \fontsize{300}{0}\selectfont{\color{frontcovergray}cl\/}\\
57fec11 @trebb intial revision, cleaned for public
authored
107 \end{center}
108 \end{minipage}
109 \vfill
110 \begin{minipage}{\titlepagewidth}
111 \rmfamily\mdseries\itshape\fontsize{36}{0}\selectfont
112 \hfill Common\/\\[2mm]
113 \rmfamily\mdseries\upshape\fontsize{157}{0}\selectfont
114 \rule[3mm]{\textwidth}{1.5mm}\\
115 lisp\\[-10mm]
116 \rule[15mm]{5.5cm}{1.5mm}\hfill\rule[15mm]{1.77cm}{1.5mm}
8e631ed @trebb mostly minor fixes, from F to O in index; destructuring vars and type…
authored
117 \end{minipage}\\
57fec11 @trebb intial revision, cleaned for public
authored
118 \begin{minipage}{\titlepagewidth}
119 \rmfamily\mdseries\upshape\fontsize{14}{0}\selectfont
6360751 @trebb hyperlinks added, html slightly changed
authored
120 \AUTHOR
57fec11 @trebb intial revision, cleaned for public
authored
121 \vspace*{4mm}
122 \end{minipage}
123 \end{center}
124
125 \end{titlepage}
126
127 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e3b53a4 @trebb lots of minor changes
authored
128 % TOC
129 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
57fec11 @trebb intial revision, cleaned for public
authored
130 \section*{\contentsname}
131 \vspace{-3ex}
132 {%
133 \setlength{\columnsep}{1.5em}%
134 \begin{multicols}{2}
135 \tableofcontents
136 \end{multicols}%
137 }
138 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
139 \vfill
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
140 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
141 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1e61662 @trebb implicit progns now marked typographically; explanation of nested bac…
authored
142 %%% CONTENT STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
143 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8593f12 @trebb rearragements, changes in layout
authored
144
7363166 @trebb lots of minor changes and bug fixes; deftype, defpackage, compile, lo…
authored
145 \input{clqr-typographic-conventions}
e3b53a4 @trebb lots of minor changes
authored
146 \clearpage
d8a7c98 @trebb forgotten \inputs uncommented
authored
147 \input{clqr-numbers}
148 \input{clqr-characters}
149 \input{clqr-strings}
150 \input{clqr-conses}
151 \input{clqr-arrays}
152 \input{clqr-sequences}
153 \input{clqr-hash-tables}
c25a243 @trebb keyword tags now able to move on short keywords; removed 1040 commas …
authored
154 \input{clqr-structures}
155 \input{clqr-control-structure}
156 \input{clqr-clos}
3c25f47 @trebb Figure Data Types.
authored
157 \input{clqr-conditions-and-errors}
0933ece @trebb forgotten comment signs removed
authored
158 \input{clqr-types-and-classes}
b58f067 @trebb Rearrangements related to new figure on types and classes.
authored
159 \input{clqr-input-output}
0470dc4 @trebb commented-out \inputs forgotten again
authored
160 \input{clqr-packages-and-symbols}
161 \input{clqr-compiler}
162 \input{clqr-external-environment}
57fec11 @trebb intial revision, cleaned for public
authored
163
164 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
165 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
166 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8593f12 @trebb rearragements, changes in layout
authored
167 %
8e631ed @trebb mostly minor fixes, from F to O in index; destructuring vars and type…
authored
168 \clearpagebeforeindex % \clearpage dependent on paper size
8593f12 @trebb rearragements, changes in layout
authored
169 %
57fec11 @trebb intial revision, cleaned for public
authored
170 \renewcommand{\indexpagestyle}{lispref}
171 \renewenvironment{theindex}%
172 {\begin{list}{}%
173 {\setlength{\itemindent}{-1em}\setlength{\leftmargin}{1em}}%
7b1099a @trebb continued work
authored
174 \parskip0pt plus .1pt \itemsep0pt%
175 \raggedright\looseness=-1%
176 }%
57fec11 @trebb intial revision, cleaned for public
authored
177 {\end{list}}
8593f12 @trebb rearragements, changes in layout
authored
178 \begin{multicols}{4}
8db8f39 @trebb added missing symbols
authored
179 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
180 [\section*{Index}\vspace{-5ex}]
181 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
efeaeb8 @trebb SF (special form) markers replaced by MC (macro) and SO (special oper…
authored
182 % Stock \printindex won't do as we want more than two columns.
57fec11 @trebb intial revision, cleaned for public
authored
183 \tiny\sffamily\input{clqr.ind}
184 \end{multicols}
185
186
187 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
188 % Make (total) page count a multiple of four.
189 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
190 \clearpage
191 \pagestyle{empty}
192 \newcount\currentpage
193 \currentpage=\value{page}
194 \divide\currentpage by 4
195 \multiply\currentpage by 4
196 \advance\currentpage by -\value{page}
6b2316e @trebb format directive tildes lowered and included into the index; logic fu…
authored
197 %
198 \ifnum\the\currentpage=-3
199 \rule{0pt}{0pt}\clearpage
200 \else\ifnum\the\currentpage=-2
201 \rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage
202 \else\ifnum\the\currentpage=-1
203 \rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage\rule{0pt}{0pt}\clearpage
204 \fi\fi\fi
57fec11 @trebb intial revision, cleaned for public
authored
205 %
206 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
207 %% Back Cover
208 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
209 \begin{titlepage}
8d37259 @trebb minor changes, *read-suppress* moved
authored
210 \advance\evensidemargin by -1.5mm
57fec11 @trebb intial revision, cleaned for public
authored
211 \begin{center}
6b2316e @trebb format directive tildes lowered and included into the index; logic fu…
authored
212 \renewcommand{\rmdefault}{ptm} %% Always times fonts on title
e6fddcb @trebb continued work
authored
213 \vspace*{20pt}
57fec11 @trebb intial revision, cleaned for public
authored
214 \vfill
215 \begin{minipage}{\titlepagewidth}
216 \begin{center}
217 \rmfamily\mdseries\itshape\fontsize{300}{0}\selectfont
e3b53a4 @trebb lots of minor changes
authored
218 \reflectbox{{\color{backcovergray}cl\/}}\\
57fec11 @trebb intial revision, cleaned for public
authored
219 \end{center}
220 \end{minipage}
221 \vfill
8d37259 @trebb minor changes, *read-suppress* moved
authored
222 \vspace*{40.5mm}% Adjust here if text below changes
57fec11 @trebb intial revision, cleaned for public
authored
223 \begin{minipage}{\titlepagewidth}
224 \hrule
225 \vspace{1.5mm}
226 \rmfamily\small
8d9e52b @trebb CLQR is probably the most usable fly swatter among all Lisp texts.
authored
227 \makebox[\textwidth][l]{\maintitle\
228 \hfill
229 Revision \input{REVISION}
8d37259 @trebb minor changes, *read-suppress* moved
authored
230 [\input{DATE}\hspace{-.65ex}]}
f2628a0 @trebb README attempts to be more helpful.
authored
231 \makebox[\textwidth][l]{Copyright \copyright\ 2008, 2009, 2010
8d37259 @trebb minor changes, *read-suppress* moved
authored
232 \AUTHOR\hfill}
233 \makebox[\textwidth][l]{\LaTeX\ source:
8d9e52b @trebb CLQR is probably the most usable fly swatter among all Lisp texts.
authored
234 \href{http://clqr.berlios.de}{http://clqr.berlios.de}
235 \hfill
236 \raisebox{-1mm}[0mm][0mm]{\includegraphics[origin=c,height=5mm,keepaspectratio,angle=-40]{housefly.eps}}
237 }\\[1mm]
57fec11 @trebb intial revision, cleaned for public
authored
238 Permission is granted to copy, distribute and/or modify this
239 document under the terms of the GNU Free Documentation License,
240 Version 1.2 or any later version published by the Free Software
241 Foundation; with no Invariant Sections, no Front-Cover Texts and
28e57ae @trebb minor changes
authored
242 no Back-Cover Texts.\hfill
6360751 @trebb hyperlinks added, html slightly changed
authored
243 \href{http://www.gnu.org/licenses/fdl.html}{http://www.gnu.org/licenses/fdl.html}\\
57fec11 @trebb intial revision, cleaned for public
authored
244 \vspace{-1mm}
245 \hrule
246 \end{minipage}
247 \end{center}
248 \end{titlepage}
249
250 \end{document}
251 % -*-latex-*-
ba50327 @trebb toc partly abbreviated, lots of typos fixed
authored
252
253 % LocalWords: ptm lightgray cl lispref theindex pt
8e631ed @trebb mostly minor fixes, from F to O in index; destructuring vars and type…
authored
254
255 %%% Local Variables:
256 %%% mode: latex
257 %%% TeX-master: t
258 %%% End:
Something went wrong with that request. Please try again.