[texhax] Sentence end after \uppercase
Joel Salomon
joelcsalomon at gmail.com
Tue Jan 2 19:33:06 CET 2007
On 1/1/07, Oleg Katsitadze <olegkat at gmail.com> wrote:
> what you need is to get the space factor of the last letter
> in the argument of \uppercase. Something like this:
>
> ------------------------------%<------------------------------
> \def\uc#1{%
> \setbox0=\hbox{#1\xdef\ucsf{\spacefactor\the\spacefactor}}%
> \uppercase{#1}\ucsf
> }%
>
> \uppercase{m}. m\par
> \uc{m}. m\par
>
> \bigskip
>
> \uppercase{M}. m\par
> \uc{M}. m\par
>
> \bye
> ------------------------------%<------------------------------
This very nearly works, but now it eats the space following the macro argument:
\uc{foo} bar
typesets as
FOObar
Can a \makeeatletter somewhere fix this?
--Joel
More information about the texhax
mailing list