# [texhax] Underscoring

tom sgouros tomfool at as220.org
Tue Nov 20 04:28:05 CET 2007

I'm not up on virtual fonts, but I think it would be easier than that.
The below is kind of clunky, and someone else can maybe turn it into an
actually usable macro, but something like it might satisfy the original
poster's desire.

-tom

Philip Taylor (Webmaster) <P.Taylor at Rhul.Ac.Uk> wrote:

> > Actually, this would be pretty easy problem to solve (at least
> > conceptually) if one is willing to invest the (perhaps considerable)
> > time in constructing a high-quality virtual font.
>
> I await a proof-of-concept with considerable interest !
> ** Phil.

\documentclass{article}
\usepackage{xcolor}

\def\ul#1{{\setbox0=\hbox{#1}%
\hbox{\rule[-2pt]{\wd0}{1pt}\kern-\wd0%
\color{white}\copy0\kern-\wd0%
\kern 1pt\copy0\kern-\wd0%
\kern-0.5pt\color{black}\copy0}}}

\begin{document}

\LARGE

\ul{He says jewelry is quietly becoming.}

\end{document}

--
------------------------
tomfool at as220 dot org
http://sgouros.com
http://whatcheer.net