Otto's \underrightarrow/\underleftarrow patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3505 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-02-08 08:08:11 +00:00
parent 584ea92822
commit a60dcf0b84
4 changed files with 26 additions and 7 deletions

View File

@ -1,9 +1,16 @@
2002-02-08 Martin Vermeer <martin.vermeer@hut.fi>
2002-02-08 Otto Tronarp <otttr440@student.liu.se>
* math_decorationinset.C:
* math_support.C:
* math_hash.C: Added \underrightarrow and \underleftarrow
2002-02-08 Martin Vermeer <martin.vermeer@hut.fi>
* formulabase.C (localDispatch): fix umlaut handling
2002-02-01 André Pönitz <poenitz@gmx.net>
* math_xarrowinset.[Ch]: support for \xrightarrow and \xleftarrow

View File

@ -27,7 +27,9 @@ bool MathDecorationInset::upper() const
return
name_ != "underbar" &&
name_ != "underline" &&
name_ != "underbrace";
name_ != "underbrace" &&
name_ != "underleftarrow" &&
name_ != "underrightarrow";
}
@ -37,7 +39,9 @@ bool MathDecorationInset::isScriptable() const
name_ == "overbrace" ||
name_ == "underbrace" ||
name_ == "overleftarrow" ||
name_ == "overrightarrow";
name_ == "overrightarrow" ||
name_ == "underleftarrow" ||
name_ == "underrightarrow";
}
@ -47,7 +51,9 @@ bool MathDecorationInset::protect() const
name_ == "overbrace" ||
name_ == "underbrace" ||
name_ == "overleftarrow" ||
name_ == "overrightarrow";
name_ == "overrightarrow" ||
name_ == "underleftarrow" ||
name_ == "underrightarrow";
}
@ -61,7 +67,9 @@ bool MathDecorationInset::wide() const
name_ == "overleftarrow" ||
name_ == "overrightarrow" ||
name_ == "widehat" ||
name_ == "widetilde";
name_ == "widetilde" ||
name_ == "underleftarrow" ||
name_ == "underrightarrow";
}

View File

@ -137,7 +137,9 @@ key_type wordlist_array[] =
{"tt", LM_TK_OLDFONT, LM_TC_TT},
{"underbar", LM_TK_DECORATION, 0},
{"underbrace", LM_TK_DECORATION, 0},
{"underleftarrow", LM_TK_DECORATION, 0},
{"underline", LM_TK_DECORATION, 0},
{"underrightarrow", LM_TK_DECORATION, 0},
{"underset", LM_TK_UNDERSET, 0},
{"vdots", LM_TK_DOTS, 0},
{"vec", LM_TK_DECORATION, 0},

View File

@ -467,7 +467,9 @@ named_deco_struct deco_table[] = {
{"overrightarrow", arrow, 3 },
{"xleftarrow", arrow, 1 },
{"xrightarrow", arrow, 3 },
{"underleftarrow", arrow, 1 },
{"underrightarrow", arrow, 3 },
// Delimiters
{"(", parenth, 0 },
{")", parenth, 2 },