Georg Baum wrote:
> > justified environment. What would really be great is if I had a command
> > to replace typed text with a line of the same length. e.g.
> > \hspace{\sizeof{theword}}. This command, of course, does not work. But
> > could there be something like it?
>
> Maybe (untested)
>
> \underline{\hphantom{typed text}}
Going a bit further on this route, you can define a \dummy{typed text} command
which, with the help of soul.sty, even breaks lines. The only drawback is
that it uses colors, so the hidden text is still accessible if you distribute
it as PDF (not visible, but selectable).
% hide but underline text
\usepackage{soul}
\usepackage{color}
\setulcolor{black}
\newcommand\dummy[1]{\textcolor{white}{\ul{#1}}}
If you do not need LyX's underline otherwise, you can misuse it to always
generate the above macro by:
\let\underbar\dummy
HTH,
Jürgen