Matter & Interactions 2nd ed. Practice Problems Aaron Titus | High Point University home
(N)=# of solutions

## Documentation for submitting problems and solutions

To submit a problem and solution to the database, please do the following:

1. write the problem and solution in a single latex file
2. email the latex file along with
1. a question title
2. author name (if different from your own)
3. both the chapter and section from the textbook that the problem and solution pertains to
4. associated images

to Aaron Titus (titus at mailaps.org). In general, results are best when you use a small set of LaTeX commands since only a few commands will be correctly converted to HTML. See the documentation below for specific commands that can be used.

### Packages

Standard LaTeX packages may be used. The following additional packages may also be used. For HTML files, all inline math commands must be enclosed by  even if commands use \ensuremath. If you find that certain command is not properly converted to HTML, please alert Aaron Titus so that the php parser for converting the command to html can be added to the site.

• SIunits
• hyperref
• cancel
• moreverb

The mandi package requires:

• fontenc
• textcomp
• listings
• mysty (by Aaron Titus; download; most useful commands have been moved to titus)
• titus (by Aaron Titus; download; useful commands for M & I math and units; requires mandi by Joe Heafner

### Example LaTeX questions and solutions.

These are examples of problems and solutions written in LaTeX.

### Tips for including images

• Example LaTeX code for inserting an image.

\begin{figure}[htbp]
\begin{center}
\includegraphics[scale=1]{filename}
\caption{image caption.}
\end{center}
\end{figure}



As of this time, \label and \ref{label} are not supported for referring to equations or images in the html, though it will be rendered fine in the pdf file of the solution.

• images should be in the same folder as the LaTeX file.

### Supported LaTeX Commands (for HTML Conversion)

• $$...$$


to centered <img>

• \begin{eqnarray*}
...

\end{eqnarray*}


to centered <img>

• \begin{mathdisplay}
...

\end{mathdisplay}


to centered inline math <img>

• 
to inline <img> with no line breaks
• \\
to <br>
• \emph{}
to <i></i>
• {\bf }
to <b></b>
• \image{filename}{caption}
to <img>. This command comes from the titus package and makes it easy to insert images.
• \begin{figure}[htbp]
\begin{center}
\includegraphics[scale=1]{filename}
\caption{image caption.}
\end{center}
\end{figure}



is converted to <img> 

 
•  \begin{table}[htdp] \begin{center} \begin{tabular}{|c|c|} \hline column 1 & column 2\\ \hline \end{tabular} \caption{Table Caption} \end{center} \label{default} \end{table} is converted to <table></table> \begin{enumerate} \item ... \end{enumerate} to <ol> <li> ...</ol> \begin{itemize} \item ... \end{itemize} to <ul> <li> ...</ul> \href{URL}{text} to <a> href="URL" > text </a> -- to html dash – \begin{verbatim} ... \end{verbatim} to <pre> ... </pre> \begin{verbatimtab} ... \end{verbatimtab} to <pre> ... </pre> \begin{vpythonblock} ... \end{vpythonblock} to <pre> ... </pre>. This command comes from Joe Heafner's mandi package. \texttt{...} to <code> ... </code> 
 Commands like \noindent and \pagebreak are removed when converting to HTML.