Jeff Abrahamson on Tue, 29 Oct 2002 07:50:04 -0500 |
Hi, Naresh. Thanks. Unfortunately, that doesn't address the question of font-related things I can do in an environment declaration. So I can say \texttt{This is a question.} But it is a syntax error to say \texttt{This is a question. This question contains two paragraphs.} I get an error about runaway arguments. In plain TeX, at least the TeX that Don Knuth writes about in the 1986 version of the TexBook, I could write {\tt This is a question. This question contains two paragraphs.} But that fails in Latex today. So in the case of font changing, I want to do something along the lines of \newenvironment{question} {\tt} {} Except that \tt doesn't work. -Jeff On Mon, Oct 28, 2002 at 11:02:27PM -0500, Naresh wrote: > Jeff, > > For the "question/answer problem" have you tried using "enumerate" ? > > If I understood your question right, for paragraph spacing, I usually do > \vspace {12pt}. > > Goodluck, > Naresh > > > On Mon, 28 Oct 2002, Jeff Abrahamson wrote: > > > I have a quick Latex question, and my web searches haven't helped me > > tonight. > > > > I want to write an environment in Latex that lets me do the following > > in a homework assignment: > > > > \begin{question} > > What is the answer? > > \end{question} > > > > \begin{answer} > > This is the answer. > > > > This is why. > > \end{answer} > > > > I'm pretty sure I understand creating environments, but I'm having > > trouble getting font changes that are durable over paragraphs. TeX > > would allow me to just say > > > > {\tt > > One paragraph. > > > > Two paragraphs. > > > > Three paragraphs. Wa, wa, wa! > > } > > > > But \texttt{...} causes problems when it tries to span paragraphs. > > > > Any Latex users in the crowd know how to do this? > > > > Thanks much in advance. > > > > -- > > Jeff > > > > Jeff Abrahamson <http://www.purple.com/jeff/> > > > > _________________________________________________________________________ > > Philadelphia Linux Users Group -- http://www.phillylinux.org > > Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce > > General Discussion -- http://lists.netisland.net/mailman/listinfo/plug > > > > _________________________________________________________________________ > Philadelphia Linux Users Group -- http://www.phillylinux.org > Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce > General Discussion -- http://lists.netisland.net/mailman/listinfo/plug -- Jeff Jeff Abrahamson <http://www.purple.com/jeff/> _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|