🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #132

LaTeX: \verb has problems...

#132
From: Michael K. Johnson
Date: Fri, 30 Oct 1992 19:55
64 lines
2786 bytes
I have a problem with \verb.  I have a file with this section,
enclosed in an enumerate environment, in a \documentstyle[11pt]{report}:

--------8<--------
\begin{figure}
\framebox{
\begin{minipage}{5in}

{\em Programming note: \bf Functions used in this manual}

Not all the functions used in the manual are available on every system
using {\GAP}, although if you are using this manual, the proper
functions {\em should} have been installed.  For instance, if you are
using plain {\GAP} and try to use the {\tt PrintLine()} function,
{\GAP} will not be able to, becase the {\tt PrintLine()} function is not
defined.  Instead, where {\tt PrintLine()} is used, you will have to
use the {\tt Print()} function, appending as a last argument to {\tt
Print()} \verb+"\n"+.  So if your call used to be:

{\tt PrintLine("Hello, world");}

it will now have to read:

\verb+Print("Hello, world", "\n");+

A comprehensive index of extra functions that are not standard parts
of {\GAP} but which this manual assumes are installed is in the Appendix.
\end{minipage}
}
\end{figure}
--------8<--------

Now, it is my understanding that inside a \verb, LaTeX should not
interpret a "\" as a control character, but should print it as a
litteral.  However, when I LaTeX this, I get:

[1

] (IntArith.tex
! Undefined control sequence.
<argument> "\n 
               "
\@tempa #1+->\leavevmode \null #1
                                 \endgroup 
<argument> ...ument to {\tt Print()} \verb +"\n "+
                                                  . So if your call used to ...

\fbox #1->\leavevmode \setbox \@tempboxa \hbox {#1
                                                  }\@tempdima \fboxrule \adv...
l.79 }

This should not be happening, should it?  I have spent 5 hours playing
with this trying to fix it, and reading the LaTeX manual over and
over, and I just don't see what I am doing wrong.  Could some
experienced LaTeX hacker explain this to me?  I have a feeling that I
don't understand all the implications of minipage and figure, and
would like to be enlightened.

Please reply by email, because I am not convinced that all news
articles make it to my site.  If it is of general interest, post
too...

michaelkjohnson
Technical Details
Message-ID: <1992Oct30.195554.3513@news.stolaf.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!uwm.edu!src.honeywell.com!The-Star.honeywell.com!umn.edu!noc.msc.net!news.stolaf.edu!lars.acc-admin.stolaf.edu!johnsonm

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!uwm.edu!src.honeywell.com!The-Star.honeywell.com!umn.edu!noc.msc.net!news.stolaf.edu!lars.acc-admin.stolaf.edu!johnsonm
From: johnsonm@lars.acc-admin.stolaf.edu (Michael K. Johnson)
Subject: LaTeX: \verb has problems...
Message-ID: <1992Oct30.195554.3513@news.stolaf.edu>
Sender: news@news.stolaf.edu
Organization: St. Olaf College; Northfield, MN  USA
Date: Fri, 30 Oct 1992 19:55:54 GMT
Lines: 64