_(GUIMiscNames[f.underbar()]));
if (f.strikeout() != FONT_INHERIT)
os << bformat(_("Strikeout %1$s, "),
- _(GUIMiscNames[f.uuline()]));
+ _(GUIMiscNames[f.strikeout()]));
if (f.uuline() != FONT_INHERIT)
os << bformat(_("Double underline %1$s, "),
- _(GUIMiscNames[f.uwave()]));
+ _(GUIMiscNames[f.uuline()]));
if (f.uwave() != FONT_INHERIT)
os << bformat(_("Wavy underline %1$s, "),
- _(GUIMiscNames[f.strikeout()]));
+ _(GUIMiscNames[f.uwave()]));
if (f.noun() != FONT_INHERIT)
os << bformat(_("Noun %1$s, "),
_(GUIMiscNames[f.noun()]));
env = true; //We have opened a new environment
}
if (f.underbar() == FONT_ON) {
- os << "\\underbar{";
+ os << "\\uline{";
count += 10;
+ runparams.inulemcmd = true;
env = true; //We have opened a new environment
}
if (f.strikeout() == FONT_ON) {
os << "\\sout{";
- count += 6;
+ count += 9;
+ runparams.inulemcmd = true;
env = true; //We have opened a new environment
}
if (f.uuline() == FONT_ON) {
os << "\\uuline{";
- count += 8;
+ count += 11;
+ runparams.inulemcmd = true;
env = true; //We have opened a new environment
}
if (f.uwave() == FONT_ON) {
os << "\\uwave{";
- count += 7;
+ count += 10;
+ runparams.inulemcmd = true;
env = true; //We have opened a new environment
}
// \noun{} is a LyX special macro
if (f.underbar() == FONT_ON) {
os << '}';
++count;
+ runparams.inulemcmd = false;
env = true; // Size change need not bother about closing env.
}
if (f.strikeout() == FONT_ON) {
os << '}';
++count;
+ runparams.inulemcmd = false;
env = true; // Size change need not bother about closing env.
}
if (f.uuline() == FONT_ON) {
os << '}';
++count;
+ runparams.inulemcmd = false;
env = true; // Size change need not bother about closing env.
}
if (f.uwave() == FONT_ON) {
os << '}';
++count;
+ runparams.inulemcmd = false;
env = true; // Size change need not bother about closing env.
}
if (f.noun() == FONT_ON) {
features.require("noun");
LYXERR(Debug::LATEX, "Noun enabled. Font: " << to_utf8(stateText(0)));
}
+ if (bits_.underbar() == FONT_ON) {
+ LYXERR(Debug::LATEX, "font.underline: " << bits_.underbar());
+ 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");