Georg Baum <[EMAIL PROTECTED]> writes:

> From /usr/share/texmf/tex/latex/base/latex.ltx: 
> 
> \def\underbar#1{\underline{\sbox\tw@ [EMAIL PROTECTED]@ [EMAIL PROTECTED] 
> 
> I do not understand this definition and need therefore help: Should tex2lyx 
> recognize \underline as \underbar and print a warning message that it is not 
> exactly equivalent, or should it stay as is and leave \underline in ERT? 

The code is equivalent to
\def\underbar#1{\underline{\sbox2{#1}\dp2 0\box2}} 

which stores its argument in box #2, sets the box' depth to zero and uses 
this box as an argument to \underline.

This means that \underline puts the bar beneath any text while \underbar 
puts the bar at the baseline, cutting through ys, gs, qs, ps etc.

\underbar looks more useful to me for emphasing text.


Cheers
Andreas

Reply via email to