home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!news.service.uci.edu!unogate!mvb.saic.com!info-tex
- From: wilcox@cmns.think.com
- Newsgroups: comp.text.tex
- Subject: wider macro
- Message-ID: <9301061943.AA15378@cmns-sun.think.com>
- Date: Wed, 6 Jan 93 14:43:29 EST
- Organization: Info-Tex<==>Comp.Text.Tex Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 13
-
- I would like to write a TeX macro which inserts spaces after every letter in
- its argument. For example:
-
- WIDER -> W I D E R
-
- My attempt works, but causes lots of error messages:
-
- \def\wider#1{{\getwider#1\end}}
- \def\getwider#1{#1 \ifx#1\end \let\next=\relax \else \let\next=\getwider \next}
-
- It also ignores spaces in the input, so all words get run together.
- Any suggestions?
-
-