From a60dcf0b847e7f6348062e75eb5daecd3bb1d8f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 8 Feb 2002 08:08:11 +0000 Subject: [PATCH] Otto's \underrightarrow/\underleftarrow patch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3505 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 11 +++++++++-- src/mathed/math_decorationinset.C | 16 ++++++++++++---- src/mathed/math_hash.C | 2 ++ src/mathed/math_support.C | 4 +++- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index e243412a1f..a29e67766f 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,8 +1,15 @@ -2002-02-08 Martin Vermeer +2002-02-08 Otto Tronarp - * formulabase.C (localDispatch): fix umlaut handling + * math_decorationinset.C: + + * math_support.C: + * math_hash.C: Added \underrightarrow and \underleftarrow + +2002-02-08 Martin Vermeer + + * formulabase.C (localDispatch): fix umlaut handling 2002-02-01 André Pönitz diff --git a/src/mathed/math_decorationinset.C b/src/mathed/math_decorationinset.C index 26193af9c5..267b5e6ead 100644 --- a/src/mathed/math_decorationinset.C +++ b/src/mathed/math_decorationinset.C @@ -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"; } diff --git a/src/mathed/math_hash.C b/src/mathed/math_hash.C index 503a0ecbee..edf63d142e 100644 --- a/src/mathed/math_hash.C +++ b/src/mathed/math_hash.C @@ -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}, diff --git a/src/mathed/math_support.C b/src/mathed/math_support.C index b570c04630..542a3c8df6 100644 --- a/src/mathed/math_support.C +++ b/src/mathed/math_support.C @@ -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 }, -- 2.39.2