<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
All,<div><br></div><div>For those who have been following this thread, here is a post by Ulrich from comp.text.tex that I find very helpful. Much thanks to Ross and Ulrich for helping us with this project.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">David wrote: </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">> The only sore point in my eyes is having to defer the \end </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">> {writeverbatim} into the backanswer environment </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">Most of the verbatimizing-environments "scan" their </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">verbatimized input for a string </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">"\end{<environment-name>}" which is constructed </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">from the current environment's name which is held in </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">the macro \@currenvir, which in turn is set by the </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">\begin-macro. </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">When defining other environments in terms of <br> memoir's or comment's verbatim-like-environments, <br> don't use within your environment the \begin{environment} <br> ..\end{environment}-Syntax but call the underlying <br> \environment..\endenvironment-macros directly. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">E.g., instead of </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{myenvironment}{% <br> \begin{writeverbatim}{myfile}% </font></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">}{% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \end{writeverbatim}% </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Arial; min-height: 14.0px"><br></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">} </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">you'd better write: </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{myenvironment}{% <br> \writeverbatim{myfile}% </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Arial; min-height: 14.0px"><br></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">}{% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \endwriteverbatim </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">} </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">This is explained, e.g., in the manuals of the </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">"verbatim"-package. </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">The former again executes the \begin-macro <br> and sets \@currenvir := writeverbatim <br> thus the \writeverbatim-mechanism scans for <br> \end{writeverbatim}. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">The latter does not again execute the \begin-macro <br> and thus \@currenvir still is "myenvironment" <br> thus the \writeverbatim-mechanism scans for <br> \end{myenvironment}. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">The following examole seems to work without problems. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">Be aware that you cannot use your environments as <br> arguments of macros---e.g., </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial"> \@firstofone{% <br> \begin{answer} <br> <Answer> <br> \end{answer} <br> }% </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">will lead to errors. <br> Nesting these environments is impossible also. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">Ulrich </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\documentclass{memoir} <br> \usepackage{amsmath} <br> \usepackage{comment} <br> \chapterstyle{bianchi} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\newoutputstream{backansout} <br> \newoutputstream{solutionsout} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{Exercises} <br> {\openoutputfile{\jobname.backans}{backansout} <br> \openoutputfile{\jobname.solns}{solutionsout}} <br> {\closeoutputstream{backansout} <br> \closeoutputstream{solutionsout}} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\newcounter{exercise}[section] <br> \renewcommand{\theexercise}{\arabic{exercise}} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{exercise}% <br> {\refstepcounter{exercise} <br> \par\noindent\textbf{\theexercise}.} <br> {\par} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\makeatletter </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{genericout}[1]{% <br> \@bsphack <br> \ifodd\theexercise <br> \addtostream{#1}{\protect\begin{oddexercise}{\theexercise}}% <br> \else <br> \addtostream{#1}{\protect\begin{evenexercise}{\theexercise}}% <br> \fi <br> \def\genericoutfile{#1}% <br> \writeverbatim{#1}% </font></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">}{% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \endwriteverbatim </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \ifodd\theexercise </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \addtostream{\genericoutfile}{\protect\end{oddexercise}}% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \else </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \addtostream{\genericoutfile}{\protect\end{evenexercise}}% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \fi </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \@esphack </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Arial; min-height: 14.0px"><br></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">} </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{backanswer}{% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \genericout{backansout}% </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Arial; min-height: 14.0px"><br></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">}{% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \endgenericout </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">}% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{solution}{% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \genericout{solutionsout}% </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Arial; min-height: 14.0px"><br></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">}{% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial"> \endgenericout </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">}% </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Arial; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{oddexercise}[1]{\par\noindent\textbf{#1.}}{} </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="3" style="font: 12.0px Arial">\newenvironment{evenexercise}[1]{\par\noindent\textbf{#1.}}{} </font></div><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">%\includecomment{oddexercise} <br> \excludecomment{evenexercise} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{document} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\chapter{The Whole Numbers} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\section{Introduction to the Whole Numbers} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">Now is the time for all good men to come to the aid of their country. <br> Now is the time for all good men to come to the aid of their country. <br> Now is the time for all good men to come to the aid of their country. <br> Now is the time for all good men to come to the aid of their country. <br> Now is the time for all good men to come to the aid of their country. <br> Now is the time for all good men to come to the aid of their country. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\subsection{Exercises} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{Exercises} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{exercise} <br> Solve for $x$:\quad $2x+3=5-2x$. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{backanswer} <br> $1/2$ <br> \end{backanswer} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{solution} <br> Isolate terms with $x$ on the left, simplify, then divide by the <br> coefficient of $x$. <br> \begin{align*} <br> 2x+3&=5-2x\\ <br> 2x+2x&=5-3\\ <br> 4x&=2\\ <br> \frac{4x}{4}&=\frac{2}{4}\\ <br> x&=\frac{1}{2} <br> \end{align*} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">Next, raise each side to the second power. <br> \begin{align*} <br> x&=\frac{1}{2}\\ <br> x^2&\left(\frac12\right)^2\\ <br> x^2&=\frac14 <br> \end{align*} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">This is the square of the solution. <br> \end{solution} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{exercise} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{exercise} <br> Solve for $x$:\quad $2x+3=5-2x$. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{backanswer} <br> $1/2$ <br> \end{backanswer} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{solution} <br> Isolate terms with $x$ on the left, simplify, then divide by the <br> coefficient of $x$. <br> \begin{align*} <br> 2x+3&=5-2x\\ <br> 2x+2x&=5-3\\ <br> 4x&=2\\ <br> \frac{4x}{4}&=\frac{2}{4}\\ <br> x&=\frac{1}{2} <br> \end{align*} <br> \end{solution} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{exercise} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{exercise} <br> Solve for $x$:\quad $2x+3=5-2x$. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{backanswer} <br> $1/2$ <br> \end{backanswer} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{solution} <br> Isolate terms with $x$ on the left, simplify, then divide by the <br> coefficient of $x$. <br> \begin{align*} <br> 2x+3&=5-2x\\ <br> 2x+2x&=5-3\\ <br> 4x&=2\\ <br> \frac{4x}{4}&=\frac{2}{4}\\ <br> x&=\frac{1}{2} <br> \end{align*} <br> \end{solution} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{exercise} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{exercise} <br> Solve for $x$:\quad $2x+3=5-2x$. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{backanswer} <br> $1/2$ <br> \end{backanswer} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{solution} <br> Isolate terms with $x$ on the left, simplify, then divide by the <br> coefficient of $x$. <br> \begin{align*} <br> 2x+3&=5-2x\\ <br> 2x+2x&=5-3\\ <br> 4x&=2\\ <br> \frac{4x}{4}&=\frac{2}{4}\\ <br> x&=\frac{1}{2} <br> \end{align*} <br> \end{solution} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{exercise} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{exercise} <br> Solve for $x$:\quad $2x+3=5-2x$. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{backanswer} <br> $1/2$ <br> \end{backanswer} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{solution} <br> Isolate terms with $x$ on the left, simplify, then divide by the <br> coefficient of $x$. <br> \begin{align*} <br> 2x+3&=5-2x\\ <br> 2x+2x&=5-3\\ <br> 4x&=2\\ <br> \frac{4x}{4}&=\frac{2}{4}\\ <br> x&=\frac{1}{2} <br> \end{align*} <br> \end{solution} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{exercise} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{exercise} <br> Solve for $x$:\quad $2x+3=5-2x$. </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{backanswer} <br> $1/2$ <br> \end{backanswer} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\begin{solution} <br> Isolate terms with $x$ on the left, simplify, then divide by the <br> coefficient of $x$. <br> \begin{align*} <br> 2x+3&=5-2x\\ <br> 2x+2x&=5-3\\ <br> 4x&=2\\ <br> \frac{4x}{4}&=\frac{2}{4}\\ <br> x&=\frac{1}{2} <br> \end{align*} <br> \end{solution} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{exercise} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{Exercises} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\subsection{Answers} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\input{\jobname.backans} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\subsection{Solutions} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\input{\jobname.solns} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font face="Arial" size="3" style="font: 12.0px Arial">\end{document} </font></p><p style="margin: 0.0px 0.0px 12.0px 0.0px"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></p><div><div>On Apr 5, 2009, at 10:14 PM, David Arnold wrote:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">All,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Aha! There is is the \end{writeberbatim}!</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\begin{backanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$1/2$</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{writeverbatim}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{backanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">However, this might scare a few of our faculty that are already nervous about Latex. Is there any way we can do this:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\begin{backanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$1/2$</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{backanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">And somehow get the \end{writeverbatim} into the enviroanment?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">D.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Apr 5, 2009, at 10:03 PM, David Arnold wrote:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Ross,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This works!</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks. This is extremely helpful.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I would never have found the \excludecomment macro, which is really a treasure! I've never seen this one before.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">However, It is very hard for me to understand why we don't write a closing \end{writeverbatim} (I've tried. It doesn't work.).</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">In memman.pdf, there always seems to be a closing \endwriteverbatim.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1 \newoutputstream{tryout}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2 \openoutputfile{\jobname.fig}{tryout}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">3 \newcounter{pseudo}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">4 \renewcommand{\thefigure}{\thepseudo.\arabic{figure}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">5 \newenvironment{writefigure}{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">6 \ifnum\value{chapter}=\value{pseudo}\else</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">7 \setcounter{pseudo}{\value{chapter}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">8 \addtostream{tryout}{\protect\stepcounter{chapter}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">9 \addtostream{tryout}{\protect\addtocounter{chapter}{-1}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">10 \addtostream{tryout}{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">11 \protect\setcounter{pseudo}{\thechapter}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">12 \fi</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">13 \addtostream{tryout}{\protect\begin{figure}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">14 \writeverbatim{tryout}}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">15 {\endwriteverbatim\finishwritefigure}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">16 \newcommand{\finishwritefigure}{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">17 \addtostream{tryout}{\protect\end{figure}}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">18 \newcommand{\printfigures}{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">19 \closeoutputstream{tryout}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">So I am really puzzled.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">But because of your reply, progress is being made at this end, which is nice, particularly after a long day of no progress.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">D.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Apr 5, 2009, at 9:08 PM, Ross Moore wrote:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi David,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On 06/04/2009, at 12:38 PM, David Arnold wrote:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">OK. Tried the following, but no go. Getting this error:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">! Argument of \verbatim@start has an extra }.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><inserted text></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>\par</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">l.47 \begin{backanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Note sure why this doesn't work:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\newenvironment{backanswer}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>{\ifodd\theexercise{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>\addtostream{backansout}{\par\noindent\textbf{\theexercise.}}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>\begin{writeverbatim}{backansout}}\else{\begin{comment}}\fi}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>{\ifodd\theexercise{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>\end{writeverbatim}}\else{\end{comment}}\fi}</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This cannot work, as the first instance of</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>\begin{writeverbatim}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">will never finish.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">It never encounters the corresponding<span class="Apple-converted-space"> </span>\end{writeverbatim} ,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">as the first (and every subsequent) \end{backanswer}<span class="Apple-converted-space"> </span>does not</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">expand --- since we are in verbatim-mode at that point.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Here's the full code example:</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The coding that I attach works just fine.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><arnoldAnswers.tex></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The main tricks are:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1.<span class="Apple-converted-space"> </span>write all the answers into the back-answer file,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>tagged as {evenanswer} or {oddanswer} environments;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2.<span class="Apple-converted-space"> </span>use \newenvironment{oddanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>and \newenvironment{evenanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>to layout the answers as you want, but ...</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">3.<span class="Apple-converted-space"> </span>use<span class="Apple-converted-space"> </span>\excludecomment{evenanswer}<span class="Apple-converted-space"> </span>to bypass these</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>when you read the answers back in.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>If you choose to show all the answers, simply</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>comment-out this single line!</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">4.<span class="Apple-converted-space"> </span>organise your questions&solutions as follows:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\begin{exercise}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">What is the sum of $-2$ and $-15$?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\begin{backanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$-17$</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{writeverbatim}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{backanswer}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{exercise}</div> </blockquote></blockquote></blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The apparent extra \end{writeverbatim}<span class="Apple-converted-space"> </span>closes of</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the<span class="Apple-converted-space"> </span>\begin{writeverbatim}<span class="Apple-converted-space"> </span>in the expansion of</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\begin{backanswer} .</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">viz.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\newenvironment{backanswer}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>{\ifodd\theexercise{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>\addtostream{backansout}{\protect\begin{oddexercise}{\theexercise}}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span> }\else{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>\addtostream{backansout}{\protect\begin{evenexercise}{\theexercise}}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>}\fi</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>\begin{writeverbatim}{backansout}}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>{\ifodd\theexercise{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>\addtostream{backansout}{\protect\end{oddexercise}}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span> }\else{%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>\addtostream{backansout}{\protect\end{evenexercise}}%</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>}\fi}</div><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><span class="Apple-tab-span" style="white-space:pre"> </span><br class="khtml-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\newenvironment{oddexercise}[1]{\par\noindent\textbf{#1.}}{}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\newenvironment{evenexercise}[1]{\par\noindent\textbf{#1.}}{}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">%\includecomment{oddexercise}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\excludecomment{evenexercise}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{Exercises}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\subsection{Answers}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\input{\jobname.backans}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\end{document}</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hope this helps,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"> </span>Ross</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">------------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Ross Moore <span class="Apple-converted-space"> </span><a href="mailto:ross@maths.mq.edu.au">ross@maths.mq.edu.au</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Mathematics Department <span class="Apple-converted-space"> </span>office: E7A-419</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Macquarie University <span class="Apple-converted-space"> </span>tel: +61 (0)2 9850 8955</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Sydney, Australia<span class="Apple-converted-space"> </span>2109<span class="Apple-converted-space"> </span>fax: +61 (0)2 9850 8114</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">------------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----------- Please Consult the Following Before Posting -----------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/">http://email.esm.psu.edu/mac-tex/</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Archive: <a href="http://tug.org/pipermail/macostex-archives/">http://tug.org/pipermail/macostex-archives/</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org">http://mactex-wiki.tug.org</a>/</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----------- Please Consult the Following Before Posting -----------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/">http://email.esm.psu.edu/mac-tex/</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Archive: <a href="http://tug.org/pipermail/macostex-archives/">http://tug.org/pipermail/macostex-archives/</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org">http://mactex-wiki.tug.org</a>/</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----------- Please Consult the Following Before Posting -----------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/">http://email.esm.psu.edu/mac-tex/</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Archive: <a href="http://tug.org/pipermail/macostex-archives/">http://tug.org/pipermail/macostex-archives/</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org">http://mactex-wiki.tug.org</a>/</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div><br></div></body></html>