🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #552

A bug in \mark?

#552
From: Michael Barr
Date: Wed, 29 Jul 1992 15:51
43 lines
1762 bytes
For some time, I have been offerring the code below to people who wish
to have uppercase work with characters like \aa.  It had worked well and
it seemed like an obvious fix.  I had never tested it with \mark before.
%%%%%%%%%%%% file starts here %%%%%%%%%%%%%%

\let\uc=\uppercase
\newif\ifucase
\def\ss{\ifucase SS\else\char"19\fi}
\def\aa{\ifucase\AA\else\accent23a\fi}
\def\ae{\ifucase\AE\else\char"1A\fi}
\def\oe{\ifucase\OE\else\char"1B\fi}
\def\o{\ifucase\O\else\char"1C\fi}
\def\uppercase#1{{\ucasetrue \uc{#1}}}

\mark{\uppercase{chapter}}
\bye
%%%%%%%%%%%% file ends here %%%%%%%%%%%%%%

But the latest recipient of this code wrote me that it caused an error
message when he used \chapter.  After some detective work, I isolated
the problem to a bad interaction with \mark.  Here a sample file.  The
error message is

! Incomplete \iffalse; all text was ignored after line 11.
<inserted text>
                \fi
<to be read again>
                   \bye
l.12 \bye

Notice that the \ifucase is executed only when one of the special
characters is executed and this does not happen in the example.  Only
the \ucasetrue is actually executed.  Anyone have any ideas why this is
happening?  Or what to do about it?

BTW, the even simpler file
\newif\iftest
{\testtrue}
\bye
will also elicit the error.

Michael Barr
Technical Details
Message-ID: <9207291551.AA09050@triples.math.mcgill.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!swrinde!mips!pacbell.com!network.ucsd.edu!mvb.saic.com!info-tex

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!swrinde!mips!pacbell.com!network.ucsd.edu!mvb.saic.com!info-tex
From: barr@triples.Math.McGill.CA (Michael Barr)
Newsgroups: comp.text.tex
Subject: A bug in \mark?
Message-ID: <9207291551.AA09050@triples.math.mcgill.ca>
Date: 29 Jul 92 15:51:17 GMT
Organization: Info-Tex<==>Comp.Text.Tex Gateway
Lines: 43
X-Gateway-Source-Info: Mailing List