![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 9/21/2013 7:11 PM, Thangalin wrote:
Hi,
Most programming languages allow extraction of a character or substring from a string. For example, if I wanted to stylize the word Index:
*I...* Index *...X*
It would be handy to do something like:
\bold{\getcharacter[1]{#!}}... #1 ...\bold{\getcharacter[\stringlength{#!}]}
tex is macro language so that would not work .. of course I can provide something more clever than the previous hack but not this week (it's not too complex but i need to fool the font system and of course one might wonder if such features make any typographical sense at all esp in automated document processing)
That is a much more flexible solution than only providing a mechanism to get the first character.
in this case #1 == \headtext{#1} so you cannot easily do such things without know what you deal with ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------