[texhax] Inserting space after each char in a string

Reinhard Kotucha reinhard.kotucha at web.de
Thu Dec 2 09:33:06 CET 2010


On 2 December 2010 Uwe Ziegenhagen wrote:

 > Hi there,
 > 
 > I need a command which allows me to insert a certain space after each
 > character of the string given as argument, but don't know how to accomplish.
 > 
 > I am looking for something like this
 > 
 > \textspace{\quad}{some long word} which produces then
 > 
 > s\quad o\quad m\quad e\quad etc..
 > 
 > Any ideas?

There is a macro \@tfor in the LaTeX kernel.  It's described in
source/latex/base/ltcntrl.dtx .  Don't know whether it works with
UTF-8 properly.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the texhax mailing list