From 04c734f7a73a6a051b9329542f78ffd22af6da2a Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Tue, 5 May 2009 11:51:55 +0000 Subject: [PATCH] Move underline text from \underbar to \uline. http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150815.htm git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29545 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Font.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index 8d5a018976..0290f91961 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -552,7 +552,7 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams, env = true; //We have opened a new environment } if (f.underbar() == FONT_ON) { - os << "\\underbar{"; + os << "\\uline{"; count += 10; env = true; //We have opened a new environment } @@ -818,6 +818,11 @@ void Font::validate(LaTeXFeatures & features) const features.require("noun"); LYXERR(Debug::LATEX, "Noun enabled. Font: " << to_utf8(stateText(0))); } + if (bits_.underbar() == FONT_ON) { + LYXERR(Debug::LATEX, "font.underline: " << bits_.strikeout()); + features.require("ulem"); + LYXERR(Debug::LATEX, "Underline enabled. Font: " << to_utf8(stateText(0))); + } if (bits_.strikeout() == FONT_ON) { LYXERR(Debug::LATEX, "font.strikeout: " << bits_.strikeout()); features.require("ulem"); -- 2.39.2