Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout From: eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) Newsgroups: comp.text.tex Subject: Re: Can Latex Float Answers to End of Document? Keywords: latex float Message-ID: <1991Jan18.002152.5212@csrd.uiuc.edu> Date: 18 Jan 91 00:21:52 GMT References: <252@cogsci.ucsd.EDU> Sender: news@csrd.uiuc.edu (news) Organization: UIUC Center for Supercomputing Research and Development Lines: 29 miller@cogsci.ucsd.EDU (Jeff Miller) writes: >\problem{What is the capital of the US?} >\answer{Washington, D. C.} >\problem{What is 2+2?} >\answer{4} insert \printanswers here >that prints out like this: >Problems: >What is the capital of the US? >What is 2+2? >Answers: >Washington, D. C. >4. \newbox\answerscollect \setbox\answerscollect{\vbox{Answers:\par} \def\answer#1\par {\setbox\answerscollect= \vbox{\unvbox\answerscollect #1\par}} \def\printanswers{\unvbox\answerscollect} Add some bells and whistles. Victor.