\documentstyle[11pt]{article}
% page display
\evensidemargin=-0.5cm
\oddsidemargin=-0.5cm
% \topmargin=-2.3cm	%%% \topmargin=-.6in
\topmargin=-1.3cm	%%% \topmargin=-.6in
\headsep=0.5cm
% \textheight=24.6cm	%%% \textheight=9.1in
\textheight=23.3cm	%%% \textheight=9.1in
\textwidth=17.5cm
\columnwidth=\textwidth

% skip the irritating space above mathematical displays
\setlength{\abovedisplayskip}{0ex}


% decent size for verbatim text
\parindent 0pt
\parskip 1ex

\begin{document}
\centerline{\large MMCC/HtX Reference Card}
\centerline{(last update:  \today)}
 
\section{Document Structure}
\begin{quote}
\begin{verbatim}
\documentstyle{mmcc}
\me{...}
\lib[ffffff]{vcbl}{Vocabulary}
\wallpaint{....}

\begin{document}

\docheader{<Course Name>}{<Module #>: <Module name>}

\begin{goallist}
\item ..
\item ..
\end{goallist}

\begin{prereq}
\item ..
\item ..
\end{prereq}

<Introductory material>

\section{..}

\subsection{...}

\vocab   % if necessary
\doindex % if necessary

\refstart % if necessary

\refentry{..} ...
\refentry{..} ...

\refend

\end{document}
\end{verbatim}
\end{quote}

\section{Visual Style}

\subsection{Typeface}

\begin{tabular}{ll}
italics&\verb/{\it ... }/\\
boldface&\verb/{\bf ...}/\\
typewriter&\verb/{\tt ...}/
\end{tabular}

\subsection{Lists}
\begin{tabular}{ll}
ordered list&
\verb/\begin{enumerate} \item .. \item .. \end{enumerate}/\\
unordered list&
\verb/\begin{itemize} \item .. \item .. \end{itemize}/\\
description/definition&
\verb/\begin{definition} \item[..] .. \item[..] .. \end{enumerate}/\\
\end{tabular}

\subsection{Tables}
\begin{tabular}{ll}
unlined&
\verb/\begin{tabular}{...} ... & ... & ... \\ ... & ... \\ ... \end{tabular}/\\
lined&
\verb/\begin{tabular}{|..|..|} ... & ... & ... \\ ... & ... \\ ... \end{tabular}/
\end{tabular}

\subsection{Font Size}
\begin{tabular}{ll}
absolute&\verb/{\font{/$n$\verb/} ...}/ ($n = 0\ldots 5$)\\
relative&\verb/{\font{/$\pm n$\verb/} ...}/ ($n = 0\ldots 5$)\\
\end{tabular}

\subsection{Headers}
\begin{tabular}{ll}
HTML header&\verb/\header{/$n$\verb/}/ ($n = 1\ldots 5$)\\
\end{tabular}

\subsection{Display}
\begin{tabular}{ll}
paragraph&\verb/\par/ (or empty line)\\
centering&\verb/\begin{center} ... \end{center}/\\
&\verb/{\centering ... }/\\
quotation&\verb/\begin{quote} ... \end{quote}/\\
HTML pre-formatted&\verb/\begin{verbatim} ... \end{verbatim}/\\
code&\verb/\begin{code} ... \end{code}/\\
&\verb/{\code ... }/
\end{tabular}

\subsection{Math Mode}
\begin{tabular}{ll}
in-text formula&\verb/$ ... $/\\
displayed formula&\verb/$$ ... $$/\\
subscript&\verb/_{...}/\\
superscript&\verb/^{...}/\\
fraction&\verb/\frac{..}{..}/\\
ellipsis&\verb/\ldots/
\end{tabular}

\section{HTML features}

\subsection{Images}
\begin{tabular}{ll}
simple image&\verb/\image{<filename>}/\\
image with alignment&\verb/\image[<left|center|right>]{<filename>}/\\
image with alt title&
\verb/\image[<left|center|right>][<alt title>]{<filename>}/\\
\end{tabular}

\subsection{Anchors and Links}
\begin{tabular}{ll}
external link&\verb/\xlink{<URL>}{<hot item>}/\\
anchor&\verb/\anchor{<label>}{<hot item>}/\\
internal link&\verb/\link{<label>}{<hot item>}/
\end{tabular}

\subsection{Extensibility}
\begin{tabular}{ll}
HTML command&\verb/\mkp*[<options>]{tag}/ (becomes \verb/<tag options>/)\\
HTML environment&
\verb/{\mkp[<options>]{tag} ... }/ (becomes \verb?<tag options> ... </tag>?)
\end{tabular}

\subsection{Footnotes/Glossary}
\verb/\begin{gloss*}[<title of entry>]{<hot item>} <entry text> \end{gloss*}/

\subsection{Reference Citations}
\begin{tabular}{ll}
citations in text&\verb/\cite{<keyword>}{<hot item>}/\\
references&\verb/\refstart \refentry{..} ... \refentry{..} ... \refend/\\
&\verb/\refentry{<keyword>} <entry>/
\end{tabular}

\subsection{Indexing}
\begin{tabular}{ll}
index annotation using standard icon&\verb/\indx{<index keyword>}/\\
index annotation using specified hot text&
\verb/\indx[<hot text>]{<index keyword>}/\\
index creation&\verb/\doindex/
\end{tabular}

\subsection{Vocabulary}
\begin{tabular}{ll}
vocabulary annotation in text&\verb/\vref{<word>}/\\
&\verb/\vref[<keyword>]{<word>}/\\
\end{tabular}

{\it Requires auxiliary vocabulary file}.

\subsection{Pedagogical Features}
\begin{tabular}{ll}
questions \& answers&
\verb/\begin{quest} ... \ans ... \end{quest}/\\
multiple choice&
\verb/\begin{mcquest} ... \mans ... \mans* ... \end{mcquest}/\\
exercise&\verb/\begin{exercise} ... \end{exercise}/\\
exercise solution&\verb/\begin{exsol} ... \end{exsol}/\\
hint&\verb/\begin{hint}{<hot item>} .. \end{hint}/
\end{tabular}

\subsection{HTML Display}
\verb/\begin{html-display} ... \end{html-display}/

\end{document}


