Enrico Forestieri wrote:
On Tue, May 05, 2009 at 01:52:22PM +0200, Pavel Sanda wrote:
Pavel Sanda wrote:
Jürgen Spitzmüller wrote:
However, now that we have ulem in, we should use it for underlining (if it is available), such that underlined text is broken across lines.
i will look whether ulem supports across lines feature.
checkout the current trunk if thats what you wanted.

You just broke a number of old documents of mine, but I guess that is
unavoidable. The problem is that ulem is incompatible with the cite
package and misterious errors occur when you underline a citation.
However, I also was using ulem for underlining but with a workaround
when also using the cite package. It is this workaround which got broken.
No big deal, it can be updated, but I'll have to do that for all the
documents where ulem and cite are used together.

If someone incurs in this problem, this is the updated workaround:

\usepackage{cite}
\let\olduline\uline
\newsavebox{\cbox}
\let\oldcite\cite
\newcommand{\newcite}[1]{\sbox\cbox{\oldcite{#1}}\box\cbox}
\renewcommand{\uline}[1]{\let\cite\newcite\olduline{#1}\let\cite\oldcite}

Would there be a way of doing this in lyx2lyx?

rh

Reply via email to