Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!ucbvax!castor.UUCP!kelem From: kelem@castor.UUCP Newsgroups: comp.text.tex Subject: help: modifying \tt Message-ID: <25769.668111685@castor> Date: 4 Mar 91 18:34:45 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: INFO-TeX@SHSU.BITNET Lines: 16 I need some help in creating a command similar to \tt that changes the \catcode of _ to 11, the same as a letter. I did this: \def\code{\catcode`\_=11\ptt} The command works fine for every place I've tried (plain text, indices) except for section titles, e.g. \section{{\code foo_bar} non-typewriter text} Is there an easy way to get this to work? Thanks, Steve Kelem (408)879-5347 xilinx!kelem@pyramid.com Xilinx FAX: (408)559-7114 2100 Logic Drive San Jose, California 95124