Article View: comp.text
Article #1370Re: TeX macro question
From: Brian T. Schellenberger
Date: Wed, 06 Dec 1989 18:19
Date: Wed, 06 Dec 1989 18:19
38 lines
1600 bytes
1600 bytes
[Email bounced . . .]
In article <1706@accuvax.nwu.edu> you write:
|I am trying to understand the first example in The TeXbook in Appendix E.
|(This is a set of macros for a business letter format with a letterhead.)
|It contains the following code
|
|\def\address{\beginlinemode\getaddress}
|{\obeylines\gdef\getaddress #1
| #2
|{#1\gdef\addressee{#2}%
|etc.
TeX works like a MACRO language, so if you use
\address{a}{b}
in your text, then since the definition of address left off with
\getaddress, it will expand to:
\beginlinemode\getaddress{a}{b}
. . . passing the arguments follow \address to \getaddress.
This is done so that the arguments will be scanned in "linemode."; otherwise,
\getaddress does the work that \address really wants to do.
--
-- Brian, the Man from Babble-on. ...!mcnc!rti!sas!bts
-- (Brian Schellenberger)
"No one will ever write a song called 'Nitro Burning Funny Cars'"
-- THE DEAD MILKMEN, "Nitro Burning Funny Cars"
--
-- Brian, the Man from Babble-on. ...!mcnc!rti!sas!bts
-- (Brian Schellenberger)
"No one will ever write a song called 'Nitro Burning Funny Cars'"
-- THE DEAD MILKMEN, "Nitro Burning Funny Cars"
Technical Details
Message-ID:
<1363@sas.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!emory!mephisto!ncsuvx!mcnc!rti!sas!btsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!emory!mephisto!ncsuvx!mcnc!rti!sas!bts From: bts@sas.UUCP (Brian T. Schellenberger) Newsgroups: comp.text Subject: Re: TeX macro question Message-ID: <1363@sas.UUCP> Date: 6 Dec 89 18:19:03 GMT Reply-To: bts@sas.UUCP (Brian T. Schellenberger) Organization: SAS Institute Inc, Cary NC Lines: 38