🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2321

Re: need help with a LaTeX macro

#2321
From: Donald Arseneau
Date: Mon, 07 Sep 1992 21:50
18 lines
1344 bytes
In article <1992Sep7.093726.1@ducvax.auburn.edu>, hank@ducvax.auburn.edu writes...
>There have been several recent posts on this subject. Arseneau's response
>follows. 
> 
>--darrel hankerson hank@ducvax.auburn.edu

David Carlisle pointed out a error in my solution:  It always
prints an extra trailing brace!  Here is his fix:

\def\Term{\bgroup \tt \let\do\@makeother \dospecials \makeactbraces
           \def\@empty{\char`\}}}

\begingroup
\catcode`\(=\catcode`\{ \catcode`\{=\active
\catcode`\)=\catcode`\} \catcode`\}=\active
\gdef\makeactbraces(\catcode`\{=\active \catcode`\}=\active
  \edef{(\bgroup\string{)\def}(\egroup\@empty))
\endgroup
Technical Details
Message-ID: <7SEP199214500625@reg.triumf.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!reg.triumf.ca!asnd
References: <dak.715093340@tabaqui> <1992Sep07.081446.192@infko.uucp> <1992Sep7.093726.1@ducvax.auburn.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!reg.triumf.ca!asnd
From: asnd@reg.triumf.ca (Donald Arseneau)
Subject: Re: need help with a LaTeX macro
Message-ID: <7SEP199214500625@reg.triumf.ca>
Summary: bug in previous \verb-like macro 
News-Software: VAX/VMS VNEWS 1.41    
Sender: news@unixg.ubc.ca (Usenet News Maintenance)
Nntp-Posting-Host: reg.triumf.ca
Organization: TRIUMF: Tri-University Meson Facility
References: <dak.715093340@tabaqui> <1992Sep07.081446.192@infko.uucp> <1992Sep7.093726.1@ducvax.auburn.edu>
Date: Mon, 7 Sep 1992 21:50:00 GMT
Lines: 20