% Design for reference mug for GNU Emacs

% This design is Copyright (C) 2010, 2011 Aleksandrs Rudzitis

% Reference material is Copyright (C) 1987, 1993, 1996, 1997, 2001, 2002, 2003, 
% 2004, 2005, 2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.

% Author: Aleks Rudzitis <ajrudzit@member.fsf.org>, derived from refcard
% by Stephen Gildea <gildea@stop.mail-abuse.org>

% You can redistribute this design and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.

% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.

% You should have received a copy of the GNU General Public License
% along with this program.  If not, see <http://www.gnu.org/licenses/>

% This file is intended to be used with the image gnu-emacs.png. This file is
% copyrighted as follows:
% Author: Luis Fernandes <elf@ee.ryerson.ca>
% Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
%  Free Software Foundation, Inc.
% License: GNU General Public License version 3 or later (see COPYING)

% To compile this design to a pdf:
% pdflatex refmug-vX.tex

\documentclass{minimal}

\usepackage[margin=0.1in,paperwidth=7.75in,paperheight=3in]{geometry}
\usepackage{multicol}
\usepackage{graphicx}

\setlength{\parindent}{0in}
\setlength{\columnsep}{20pt}
\setlength{\columnseprule}{1pt}

\begin{document}
\begin{multicols}{3}
\begin{center}
\includegraphics[scale=0.75]{gnu-emacs.png}
\end{center}
\fontsize{6pt}{7pt}\selectfont
\centerline{Copyright 2010 Free Software Foundation, Inc.}
\centerline{For GNU Emacs version 23.2}

Permission is granted to make and distribute modified or unmodified
copies of this information provided the copyright notice and this permission
notice are preserved on all copies.

\centerline{http://www.gnu.org/software/emacs/}

\fontsize{8pt}{9pt}\selectfont

\def\key#1#2{#1 & \texttt{#2} \\}


\begin{tabular}{ p{1.95in} p{.5in} }
\key{exit Emacs permanently}{C-x C-c}
& \\
\key{\textbf{read} a file into Emacs}{C-x C-f}
\key{\textbf{save} a file back to disk}{C-x C-s}
\key{select another buffer}{C-x b}
\key{kill a buffer}{C-x k}
&\\
\key{describe the function a key runs}{C-h k}
\key{describe a function}{C-h f}
&\\
\key{\textbf{abort} typed or executing command}{C-g}
\key{\textbf{undo} an unwanted change}{C-\_}
&\\
\key{search forward}{C-s}
\key{search backward}{C-r}
\key{regular expression search}{C-M-s}
\key{reverse regular expression search}{C-M-r}
&\\
\key{go to line beginning}{C-a}
\key{go to line end}{C-e}
\key{next screen}{C-v}
\key{previous screen}{M-v}
\end{tabular}
\begin{tabular}{ p{1.8in} p{.7in} }
\key{kill \textbf{region}}{C-w}
\key{copy region to kill ring}{M-w}
\key{yank back last thing killed}{C-y}
&\\
\key{set mark here}{C-SPC}
\key{mark \textbf{paragraph}}{M-h}
\key{mark \textbf{function}}{C-M-h}
\key{mark entire \textbf{buffer}}{C-x h}
\key{pop to mark}{C-u C-SPC}
&\\
\key{interactively replace a text string}{M-\%}
&\\
\key{delete all other windows}{C-x 1}
\key{split window, above and below}{C-x 2}
\key{delete this window}{C-x 0}
\key{split window, side by side}{C-x 3}
\key{switch cursor to another window}{C-x o}
&\\
\emph{For the minibuffer:} &\\
\key{complete as much as possible}{TAB}
\key{show possible completions}{?}
\key{fetch previous minibuffer input}{M-p}
\end{tabular} 
\end{multicols}
\end{document}
