[Tex/LaTex] Preparing cheat sheets


Are there any templates, document classes for preparing cheat sheets?

If not, what would make it easy to produce such documents?

Best Answer

This is what I'm using for small cheat sheets. It is derived from some sheet I found out there, unfortunately, I cannot recall whom should I credit... Anyway, there you go:


  /Title (example.pdf)
  /Creator (TeX)
  /Producer (pdfTeX 1.40.0)
  /Author (Seamus)
  /Subject (Example)
  /Keywords (pdflatex, latex,pdftex,tex)}

% This sets page margins to .5 inch if using letter paper, and to 1cm
% if using A4 paper. (This probably isn't strictly necessary.)
% If using another size paper, use default 1cm margins.
\ifthenelse{\lengthtest { \paperwidth = 11in}}
    { \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} }
    {\ifthenelse{ \lengthtest{ \paperwidth = 297mm}}
        {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }
        {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }

% Turn off header and footer

% Redefine section commands to use less space
                                {-1ex plus -.5ex minus -.2ex}%
                                {0.5ex plus .2ex}%x
                                {-1explus -.5ex minus -.2ex}%
                                {0.5ex plus .2ex}%
                                {-1ex plus -.5ex minus -.2ex}%
                                {1ex plus .2ex}%

% Define BibTeX command
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em

% Don't print section numbers

\setlength{\parskip}{0pt plus 0.5ex}

%My Environments
% -----------------------------------------------------------------------


% multicol parameters
% These lengths are set only within the two main columns

     \Large{\underline{Title}} \\

\section{Section 1}
Subsetction text

\section{Section 2}
Text 2

\section{Section 3}

% You can even have references

I hope you'd find it useful.