Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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