Article View: comp.text
Article #6850Re: Strange Event in LaTeX
From: Carl Lee
Date: Mon, 12 Feb 1990 19:02
Date: Mon, 12 Feb 1990 19:02
48 lines
1457 bytes
1457 bytes
->I must be doing something wrong, but I do not understand what. Maybe
->someone out there can solve this puzzle.
->
->I have the following file:
->
->----------------------------------------
->
->\documentstyle{article}
->\begin{document}
->
->\long\def\text#1{\long\def\textx{#1}}
->\long\def\print{\if\empty\textx\else{Text: \textx}\fi}
->
->\text{Hello}
->\print
->
->\text{I: Hello}
->\print
->
->\text{II: Hello}
->\print
->
->\end{document}
->
->----------------------------------------
->
->When I process it with LaTeX, the output is:
->
->----------------------------------------
->
->Text: Hello
->
->Text: I: Hello
->
->:Hello
->
->----------------------------------------
->
->In other words, the presence of "II" causes the command "print" to
->malfunction. Does this happen to you? What is going on?
Addendum: It seems that when "II" is replaced with any pair of
identical characters, this behavior results.
Carl Lee
carllee@dimacs.rutgers.edu
Technical Details
Message-ID:
<Feb.12.14.02.49.1990.21622@math.rutgers.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!gauss.rutgers.edu!math.rutgers.edu!carlleeReferences:
<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!cs.utexas.edu!rutgers!gauss.rutgers.edu!math.rutgers.edu!carllee From: carllee@math.rutgers.edu (Carl Lee) Newsgroups: comp.text,ru.qa.tex Subject: Re: Strange Event in LaTeX Message-ID: <Feb.12.14.02.49.1990.21622@math.rutgers.edu> Date: 12 Feb 90 19:02:51 GMT References: <Feb.12.13.07.48.1990.20578@math.rutgers.edu-> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 48