Michael Lapsley wrote:
What I am intending to do is use the flag to determine whether the
env {answer} starts with \par, depending on whether \item has
an argument are not. Perhaps there is a more elegant way? Or
perhaps this approach can be salvaged?
attached,
Herbert
\documentclass[english,reqno]{amsart}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\makeatletter
\newif\ifPar
\newenvironment{question}{\sffamily\begin{enumerate}}{\end{enumerate}}
[EMAIL PROTECTED]
\newenvironment{answer}{\normalfont%
[EMAIL PROTECTED]
\setlength\parindent{0pt}%
\ifPar\par\fi
[EMAIL PROTECTED]
%
\def\item{%
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@i
{\csname [EMAIL PROTECTED]@itemlabel]}}
[EMAIL PROTECTED] [EMAIL PROTECTED]@itemlabel]#1}
\makeatother
\begin{document}
\begin{question}
\item []
\begin{answer}
And Here is the answer
\end{answer}
\item [a grouped question]
\begin{answer}
And Here is the answer
\end{answer}
\item an ungrouped question
\begin{answer}
And Here is the answer
\end{answer}
\end{question}
\end{document}
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes