[texhax] verbatim environment problem

Justin C. Walker justin at mac.com
Mon Feb 19 18:47:14 CET 2007


On Feb 18, 2007, at 23:44 , Don Gingrich wrote:

> I'm writing an explanatory text about Bourne shell scripting.
>
> I need to be able to use a lot of control characters in
> text I'm writing. I can usually get it to work but this has me
> stumped. Any suggestions gratefully apreciated.
[snip]
> \begin{alltt}
> 	ls .[^.]*
> \end{alltt}
> }}

Martin may have the more correct answer (I haven't tried it).

Note that the 'uparrow' is a math symbol, so (La)TeX expects it to be  
in a "math environment". Thus, as a simpler change, to avoid the  
error, there are two approaches (the second being the one you want, I  
think; but try them both):

ls .[$^$.]*

or

ls .[$\uparrow$.]*

Justin

--
They said it couldn't be done but sometimes it
doesn't work out that way.
   - Casey Stengel
--




More information about the texhax mailing list