%From: grunwald@foobar.colorado.edu (Dirk Grunwald)
%Subject: Re: Request for a more intelligent underline{} macro.
%Date: 14 Jan 91 23:57:59 GMT
%
%Actually, some one mailed me the underline code. A little hacking
%produces the following example. The original code was a little liberal
%with spaces in the code, which produces an extra space after each word
%in the underlined region. This version corrects that and gives a
%single underlined space between words.


\def\underl#1 {\leavevmode\let\first=\relax\underli #1 }
\def\underli#1 {\ifx&#1\let\next=\relax\unskip
                \else\let\next=\underli\first\ulinebox{#1}\fi\let\first=\undersp\next}
\def\undersp{\penalty50\ulinebox{\space}\penalty50}
\def\ulinebox#1{\vtop{\hbox{\strut#1}\hrule}}%Taken from TexHax v.88, 52

