Taco Hoekwater wrote: > Here is a solution that is just a little bit more robust than > your one: it obeys spaces and is properly nested. It also allows > primitives in the input string (\par, for example); and \unexpanded > macros that dont have an argument. > > Note that this is a hacker's version: you can't use this to process > arbitrary text: macro's that expand into something and e.g. accents > won't work! > > In general, it is very hard to do this kind of stuff safely in TeX. > A verbatim module would probably be the best solution. OTOH, my > approach allows: > > \section{\ROT{A section}} > [snip code] Well, that's an extremely instructive example! I gave a look at the verbatim approach, and got to the attached files. They still don't handle accents etc; Hans, how to make a verbatim that obeys cs's? Giuseppe Bilotta Using Microsoft products is like having sex without condoms---but much less pleasurable