home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / text / tex / 14379 < prev    next >
Encoding:
Text File  |  1992-12-22  |  829 b   |  44 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!think.com!ames!haven.umd.edu!wam.umd.edu!joel
  3. From: joel@wam.umd.edu (Joel M. Hoffman)
  4. Subject: Re: macro to reverse text?
  5. Message-ID: <1992Dec21.212058.12328@wam.umd.edu>
  6. Sender: usenet@wam.umd.edu (USENET News system)
  7. Nntp-Posting-Host: rac2.wam.umd.edu
  8. Organization: University of Maryland, College Park
  9. References: <1992Dec21.002452.24690@wam.umd.edu>
  10. Date: Mon, 21 Dec 1992 21:20:58 GMT
  11. Lines: 31
  12.  
  13. I wrote:
  14. >
  15. >I'd like a macro that reverses the text inside of it, so:
  16. >
  17. >    \ReverseMe{abcdefg}
  18. >
  19. >would yield
  20. >
  21. >    gfedcba
  22. >
  23. >Anyone know how to do this?
  24.  
  25. I have received several (very similar) solutions.  However, they all
  26. delete spaces as they work.  Does anyone have a solution that will
  27. take:
  28.  
  29.     \ReverseMe{owt eno}
  30.     
  31. and yield:
  32.  
  33.     one two
  34.  
  35. ?
  36.  
  37. Thanks.
  38.  
  39. -Joel
  40. (joel@wam.umd.edu)
  41.  
  42.  
  43.  
  44.