Article View: comp.text
Article #6853Re: Strange Event in LaTeX
From: Dave Steiner
Date: Tue, 13 Feb 1990 04:44
Date: Tue, 13 Feb 1990 04:44
15 lines
1057 bytes
1057 bytes
In article <Feb.12.13.07.48.1990.20578@math.rutgers.edu> carllee@math.rutgers.edu (Carl Lee) writes:
> \long\def\text#1{\long\def\textx{#1}}
> \long\def\print{\if\empty\textx\else{Text: \textx}\fi}
Change your \if to an \ifx. \if will test if the character codes
agree and will expand it's arguments so you were really comparing the
first two tokens of \textx. \ifx will compare tokens without
expansion.
ds
--
arpa: Steiner@TOPAZ.RUTGERS.EDU
uucp: ...{ames, cbosgd, harvard, moss}!rutgers!topaz.rutgers.edu!steiner
Technical Details
Message-ID:
<Feb.12.23.44.24.1990.24232@topaz.rutgers.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!sunybcs!rutgers!aramis.rutgers.edu!topaz.rutgers.edu!steinerReferences:
<Feb.12.13.07.48.1990.20578@math.rutgers.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!sunybcs!rutgers!aramis.rutgers.edu!topaz.rutgers.edu!steiner From: steiner@topaz.rutgers.edu (Dave Steiner) Newsgroups: comp.text,ru.qa.tex Subject: Re: Strange Event in LaTeX Message-ID: <Feb.12.23.44.24.1990.24232@topaz.rutgers.edu> Date: 13 Feb 90 04:44:25 GMT References: <Feb.12.13.07.48.1990.20578@math.rutgers.edu> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 15 To: carllee@math.rutgers.edu Cc: steiner