# [pdftex] char protruding

Carsten Schurig Carsten.Schurig at gmx.net
Mon Apr 30 15:31:18 CEST 2001

OK, forget my last posting. I wrote without further testing.

Now I defined it as following
\def\setprotcodeTS#1{%
% \textdegree in TS1 encoding
\ifx\textdegree\undefined\else\rpcode#1 176=5000\fi
\ifnum\pdftexversion > 13
\ifnum \expandafter\pdftexrevision > g
\fi
\fi
}

\def\setupfont{%
\setprotcode\font%
{\fontencoding{TS1}\selectfont\setprotcodeTS\font}%
}

That way it working, when Using 180\textdegree. But my problem ist,
I'm heavily using SIunits and units there are generally defined as
math mode, so \degree comes down to:
\renewcommand{\degree}{%
\ensuremath{\mathrm{\text{\textdegree}}}}

I think the crucial point is the using of math mode. That
prevents the char protruding. But to use the \unit command in
normal text mode and math mode, I would say the above definition of
\degree ist needed. So I can't imagine any other definition. As it
is only one or two times when char protruding is needed I could
compose it "by hand" without using SIunits. But that's not
satisfying. :-(