home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / text / tex / 14095 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.2 KB

  1. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!wupost!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!erich.triumf.ca!asnd
  2. From: asnd@erich.triumf.ca (Donald Arseneau)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: Existance of \make_caps{...}
  5. Date: 11 Dec 1992 15:30 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Lines: 18
  8. Distribution: world
  9. Message-ID: <11DEC199215305468@erich.triumf.ca>
  10. References: <1992Dec11.155546.21394@eng.umd.edu>
  11. NNTP-Posting-Host: erich.triumf.ca
  12. News-Software: VAX/VMS VNEWS 1.41    
  13.  
  14. In article <1992Dec11.155546.21394@eng.umd.edu>, lind@eng.umd.edu (Charles A. Lind) writes...
  15. >Hi,
  16. >    I'm looking for a macro or a way to simply capitalize a large
  17. >set of mixed case text.  I would like to just type a command before the text and
  18. >then bracket it, like {\em kkkkkk} for italisizing.  I've looked through
  19. >Lamport's book as well as David M. Jones' index, but with no luck.
  20.  
  21. Changing the suntax from \uppercase{kkkkk} to {\up kkkkk} relies on a 
  22. dirty trick in the TeX book (and used in LaTeX at places)
  23.  
  24. \newcommand\up{\expandafter\Upp\expandafter{\ifnum0=`}\fi}%% -> \Upp{
  25. \newcommand\Upp[1]{\uppercase{#1}\ifnum0=`{\fi}}
  26.  
  27.  
  28. (I hven't tested, so there might be a `typo')
  29.  
  30. Donald
  31.