1 % Copyright (C) 2008, 2009, 2010, 2011, 2012 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
}
15 \newcommand{\SUBJECT}{Common\ Lisp
}
16 \newcommand{\KEYWORDS}{{clqr cheatsheet lisp reference booklet
}}
19 % To be reset in paper-*.tex if there is plenty of room
20 \newcommand{\clearpagebeforeindex}{}
23 \documentclass[8pt,pagesize,twoside,footinclude=false,headinclude=false
]{scrartcl
}
27 % outsourced page dimensions
29 %\setlength{\paperwidth}{10.5cm}
30 %\setlength{\paperheight}{29.7cm}
31 %%\areaset[3mm]{9cm}{28.3cm}
33 %\renewcommand{\clearpagebeforeindex}{\clearpage}
37 % outsourced hypertext colors
39 %\newcommand{\linkcolor}{Fuchsia}
40 %\newcommand{\urlcolor}{MidnightBlue}
41 %\newcommand{\bookmarks}{true}
42 %\newcommand{\pdfpagelayout}{TwoColumnLeft}
46 % should remain last 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]%
57 \titleformat{\section}{\sffamily\mdseries\slshape}
58 {\huge\thesection}{.7em
}{\huge}[{\titlerule[0.25pt
]}]
60 \titleformat{\subsection}{\sffamily\mdseries\slshape}
61 {\Large\thesubsection}{.7em
}{\Large}[{\titlerule[0.25pt
]}]
63 % Kill toc header as we want it to span columns
66 \titlecontents{section
}%
68 {\vspace{.5em plus
1em minus
.2em
}\sffamily\bfseries\upshape\filright}%
69 {\contentslabel{1.5em
}}%
71 {\hfill\contentspage\vspace{.1em
}}%
73 \titlecontents{subsection
}%
75 {\sffamily\mdseries\upshape\filright}%
76 {\contentslabel{2.5em
}}%
78 {\hspace{.5ex plus
.5ex minus
.3ex
}\titlerule*
[1em
]{.
}\contentspage}%
84 \newlength{\titlepagewidth}
85 \setlength{\titlepagewidth}{8cm
}
86 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
90 \renewcommand{\rmdefault}{ptm
} %% Always times fonts on title
91 \advance\oddsidemargin by
1.5mm
94 \begin{minipage
}{\titlepagewidth}
96 \rmfamily\mdseries\itshape\fontsize{20}{0}\selectfont
97 Quick Reference
\index{CLQR
}\\
101 \begin{minipage
}{\titlepagewidth}
103 \rmfamily\mdseries\itshape%
104 \fontsize{300}{0}\selectfont{\color{frontcovergray
}cl\/
}\\
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
}\\
114 \rule[15mm
]{5.5cm
}{1.5mm
}\hfill\rule[15mm
]{1.77cm
}{1.5mm
}
116 \begin{minipage
}{\titlepagewidth}
117 \rmfamily\mdseries\upshape\fontsize{14}{0}\selectfont
125 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
127 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
128 \section*
{\contentsname}
131 \setlength{\columnsep}{1.5em
}%
136 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
138 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
139 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
140 %%% CONTENT STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%
141 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
143 \input{clqr-typographic-conventions
}
146 \input{clqr-characters
}
150 \input{clqr-sequences
}
151 \input{clqr-hash-tables
}
152 \input{clqr-structures
}
153 \input{clqr-control-structure
}
155 \input{clqr-conditions-and-errors
}
156 \input{clqr-types-and-classes
}
157 \input{clqr-input-output
}
158 \input{clqr-packages-and-symbols
}
159 \input{clqr-compiler
}
160 \input{clqr-external-environment
}
162 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
163 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
164 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
166 \clearpagebeforeindex % \clearpage dependent on paper size
168 \renewcommand{\indexpagestyle}{lispref
}
169 \renewenvironment{theindex
}%
171 {\setlength{\itemindent}{-
1em
}\setlength{\leftmargin}{1em
}}%
172 \parskip0pt plus
.1pt
\itemsep0pt%
173 \raggedright\looseness=-
1%
177 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
178 [\section*
{Index
}\vspace{-
5ex
}]
179 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
180 % Stock \printindex won't do as we want more than two columns.
181 \tiny\sffamily\input{clqr.ind
}
185 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
186 % Make (total) page count a multiple of four.
187 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
190 \newcount\currentpage
191 \currentpage=
\value{page
}
192 \divide\currentpage by
4
193 \multiply\currentpage by
4
194 \advance\currentpage by -
\value{page
}
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
204 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
206 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
208 \advance\evensidemargin by -
1.5mm
210 \renewcommand{\rmdefault}{ptm
} %% Always times fonts on title
213 \begin{minipage
}{\titlepagewidth}
215 \rmfamily\mdseries\itshape\fontsize{300}{0}\selectfont
216 \reflectbox{{\color{backcovergray
}cl\/
}}\\
220 \vspace*
{40.5mm
}% Adjust here if text below changes
221 \begin{minipage
}{\titlepagewidth}
225 \makebox[\textwidth][l
]{\maintitle\
227 Revision
\input{REVISION
}
228 [\input{DATE
}\hspace{-
.65ex
}]}
229 \makebox[\textwidth][l
]{Copyright
\copyright\
2008,
2009,
2010,
2011,
2012
231 \makebox[\textwidth][l
]{\LaTeX\ source:
232 \href{http://clqr.boundp.org
}{http://clqr.boundp.org
}
234 \raisebox{-
1mm
}[0mm
][0mm
]{\includegraphics[origin=c,height=
5mm,keepaspectratio,angle=-
40]{housefly.eps
}}
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
240 no Back-Cover Texts.
\hfill
241 \href{http://www.gnu.org/licenses/fdl.html
}{http://www.gnu.org/licenses/fdl.html
}\\
251 % LocalWords: ptm lightgray cl lispref theindex pt