Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!tub!fauern!tumuc!lan!kasperba From: kasperba@lan.informatik.tu-muenchen.dbp.de (Christian Kasperbauer) Newsgroups: comp.text.tex Subject: problems with fbox and verbatim environment Message-ID: <4412@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Date: 14 Sep 90 13:58:18 GMT Sender: news@lan.informatik.tu-muenchen.dbp.de Reply-To: kasperba@lan.informatik.tu-muenchen.dbp.de (Christian Kasperbauer) Organization: Inst. fuer Informatik, TU Muenchen, W. Germany Lines: 53 A friend of mine has a little problem with the following LaTeX file and I can't see/find the error, too. Here is the file: \documentstyle[11pt]{report} \begin{document} \fbox{ \begin{verbatim} there is something wrong \end{verbatim} } \end{document} And LaTeX produces the following output: sunbode3-2.208% latex test.tex This is MHTeX, C Version 2.95 (multiple hyphenation) (no format preloaded) (test.tex LaTeX Version 2.09 <4 Aug 1988> (/usr/lib/tex/inputs/report.sty Document Style `report'. Modified at TUW, 23 Mar 88 (/usr/lib/tex/inputs/rep11.sty) (/usr/lib/tex/inputs/titlepage.sty)) (test.aux) LaTeX error. See LaTeX manual for explanation. Type H for immediate help. ! Something's wrong--perhaps a missing \item. \@latexerr ...for immediate help.}\errmessage {#1} \addpenalty ...kipb \fi \fi \fi \else \@noitemerr \fi \@item ...tem \else \addpenalty \@beginparpenalty \addvspace \@topsep \addvs... \@verbatim ->\trivlist \item [] \if@minipage \else \vskip \parskip \fi \lefts... \verbatim ->\@verbatim \frenchspacing \@vobeyspaces \@xverbatim \begin {verbatim} there is something wrong \end {verbatim} \fbox #1->\leavevmode \setbox \@tempboxa \hbox {#1 }\@tempdima \fboxrule \adv... l.7 } ? Now my question is: How can I surround/avoid this problem? Has anyone a god idea/solution? -- Christian Kasperbauer (Kasperl): / relay.cs.net (CS-NET, ARPA) kasperba%lan.informatik.tu-muenchen.dbp.de@ - unido.uucp (UUCP)