[texhax] Correcting for math-mode kerning before commas and
periods?
Oleg Katsitadze
geolsoft at mail.ru
Sun Oct 16 16:37:15 CEST 2005
On Sun, Oct 16, 2005 at 01:00:16PM +0200, Uwe L?ck wrote:
> \documentclass[12pt]{article}
> \nofiles
>
> \makeatletter
> \newcommand\unkerned[1]{%
> \edef\that at font{\the\textfont\@ne}%
> \settowidth\dimen@{\that at font#1}%
> #1\kern\dimen@
> \settowidth\dimen@{\that at font#1\/}%
> \kern-\dimen@
> }
> \makeatother
>
>
> \begin{document}
> \showboxbreadth=20 \showboxdepth=0
> \tracingonline=1
> $\unkerned{f}$.\showlists
> % \itshape f\/\showthe\lastkern
>
> $f$.
> \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Would not this be equivalent (sorry, it's just `raw' TeX,
I'm not good enough at LaTeX :).
\def\unkerned#1{%
\hbox{\the\textfont1 #1}%
}
--
Best regards,
Oleg Katsitadze
More information about the texhax
mailing list