Re: underline in tex2lyx

2004-12-22 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > This may be the kind of situation where we could have a --strict > option to tex2lyx that uses ERT every time there is a tiny difference, > the default being to use the translation that makes more sense. Yes. One could even think of finer granularity (writer2latex ha

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> So there is a visible difference between the two. I am Georg> therefore not changing tex2lyx and leave \underline in ERT. This may be the kind of situation where we could have a --strict option to tex2lyx that uses ERT every time ther

Re: underline in tex2lyx

2004-12-22 Thread Georg Baum
Andreas Vox wrote: > 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 >

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
> "Andreas" == Andreas Vox <[EMAIL PROTECTED]> writes: Andreas> This means that \underline puts the bar beneath any text Andreas> while \underbar puts the bar at the baseline, cutting through Andreas> ys, gs, qs, ps etc. Andreas> \underbar looks more useful to me for emphasing text. Thanks f

Re: underline in tex2lyx

2004-12-22 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Changing LyX to use \underline instead of \underbar would > be nice too, but I am not sure it is safe. Or maybe switch to ulem or soul (which results of course in data change). Jürgen

Re: underline in tex2lyx

2004-12-22 Thread Andreas Vox
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

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> tex2lyx does not convert \underline, see Georg> http://bugzilla.lyx.org/show_bug.cgi?id=1594. This is correct Georg> in a strict sense, because LyX uses \underbar, not \underline. Georg> From /usr/share/texmf/tex/latex/base/latex.ltx: