🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #1930

Help writing a macro that expands to \verb

#1930
From: T. V. Raman
Date: Tue, 01 Sep 1992 12:31
16 lines
859 bytes
Hi!

I would like to have a macro of the following type:
\term#1 which expands to \verb|#1| but do not know how to write it.

Clearly \def\term#1{\verb|#1|} is not the solution.

Thanks,

--Raman
-- 
   T. V. Raman <raman@cs.cornell.edu>Tel: (607)255-9202  R 272-3649
                       Office: 4116 Upson Hall,
Department of Computer Science, Cornell University Ithaca NY 14853-6201
                Res: 226 Bryant Avenue Ithaca NY 14850
Technical Details
Message-ID: <1992Sep1.123134.7107@cs.cornell.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!udel!rochester!cornell!raman

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!udel!rochester!cornell!raman
From: raman@cs.cornell.edu (T. V. Raman)
Subject: Help writing a macro that expands to \verb
Message-ID: <1992Sep1.123134.7107@cs.cornell.edu>
Summary: How: \def\term#1{\verb|#1|}
Keywords: Macro \verb Latex
Organization: Cornell Univ. CS Dept, Ithaca NY 14853
Date: Tue, 1 Sep 1992 12:31:34 GMT
Lines: 16