🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #1414

More uppercase questions with TeX

#1414
From: Adrian McCarthy
Date: Tue, 12 Dec 1989 01:52
32 lines
1457 bytes
I think I understand the problem with this TeX example, but I'm not sure how to
fix it.  The problem seems to stem from the relatively complex TeX parsing
scheme and the relationship between where macro substitution and the intended
case translation occur.

Here's the problem.  The following TeX source:

      \def\xtest{Adrian}
      \def\ytest#1{\uppercase{Hello, #1.}}
      
      \ytest{\xtest}

produces the output:

      HELLO, Adrian.

rather than

      HELLO, ADRIAN.

I've read up on \expandafter which seems the to be the key to getting things
evaluated in the right order, but, alas,  I have been unsuccessful in my
attempts.  Can anyone enlighten me?

Thanks in advance,
Aid.  (adrian@gonzo.mti.com)

P.S.  Those of you who have requested copies of my LaTeX screenplay macros
will have to wait longer than I intended.  It seems I did some real no-no's
that show up on systems which have relatively small amounts of memory set up
for TeX.  The re-write will take place as soon as I finish my Christmas
shopping.
Technical Details
Message-ID: <860@mti.mti.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!brutus.cs.uiuc.edu!jarthur!mti!adrian

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!brutus.cs.uiuc.edu!jarthur!mti!adrian
From: adrian@mti.mti.com (Adrian McCarthy)
Newsgroups: comp.text
Subject: More uppercase questions with TeX
Message-ID: <860@mti.mti.com>
Date: 12 Dec 89 01:52:48 GMT
Reply-To: adrian@mti.UUCP (Adrian McCarthy)
Organization: Micro Technology, Anaheim, CA
Lines: 32