On Sat, Dec 07, 2002 at 09:34:13PM +0000, John Levon wrote:
> > Because there are not mentioned in lib/symbols
>
> how do I do this.
Patch attached. Note that the \dots case was in fact a bit more convoluted
than I expected.
> are you ok with a bugzilla entry ?
I think this can go in as-is.
It also fixes the wrong drawing of \dotso, which nobody has noticed so far.
Lars?
Andre'
--
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
Index: lib/symbols
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/symbols,v
retrieving revision 1.37
diff -u -p -r1.37 symbols
--- lib/symbols 1 Nov 2002 15:29:13 -0000 1.37
+++ lib/symbols 9 Dec 2002 08:02:41 -0000
@@ -30,6 +30,7 @@ widehat decoration none
widetilde decoration none
# dots
+dots dots none
cdots dots none
ddots dots none
dotsb dots none
@@ -786,6 +787,7 @@ iffont cmsy
\def\longleftarrow{\leftarrow\kern-9.5mu\lyxbar}
\def\Longrightarrow{\lyxeq\kern-9.5mu\Rightarrow}
\def\Longleftarrow{\Leftarrow\kern-9.5mu\lyxeq}
+\def\implies{\Longrightarrow}
\def\mapsto{\mapstochar\kern-9mu\rightarrow}
\def\longmapsto{\mapstochar\kern-6mu\lyxbar\kern-9.5mu\rightarrow}
\def\models{\vert\kern-7mu\lyxeq}
Index: src/mathed/math_dotsinset.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_dotsinset.C,v
retrieving revision 1.34
diff -u -p -r1.34 math_dotsinset.C
--- src/mathed/math_dotsinset.C 1 Dec 2002 22:59:24 -0000 1.34
+++ src/mathed/math_dotsinset.C 9 Dec 2002 08:02:42 -0000
@@ -25,9 +25,8 @@ MathInset * MathDotsInset::clone() const
void MathDotsInset::metrics(MathMetricsInfo & mi) const
{
mathed_char_dim(mi.base.font, 'M', dim_);
- if (key_->name == "ldots" || key_->name == "dotsm")
- dh_ = 0;
- else if (key_->name == "cdots" || key_->name == "dotsb"
+ dh_ = 0;
+ if (key_->name == "cdots" || key_->name == "dotsb"
|| key_->name == "dotsm" || key_->name == "dotsi")
dh_ = ascent() / 2;
else if (key_->name == "dotsc")
Index: src/mathed/math_support.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_support.C,v
retrieving revision 1.61
diff -u -p -r1.61 math_support.C
--- src/mathed/math_support.C 27 Nov 2002 10:30:28 -0000 1.61
+++ src/mathed/math_support.C 9 Dec 2002 08:02:42 -0000
@@ -308,6 +308,7 @@ named_deco_struct deco_table[] = {
{"mathring", ring, 0 },
// Dots
+ {"dots", hline3, 0 },
{"ldots", hline3, 0 },
{"cdots", hline3, 0 },
{"vdots", hline3, 1 },