On Wed, Dec 18, 2002 at 08:21:56PM +0000, John Levon wrote:
> \cong (ERT)
> \Diamond (ERT)
> \Box (ERT)
> \surd (ERT)
The following patch should fix the above symbols, and make all symbols in
mathed.lyx viewable.
There is a slight problem with the \cong hack:
\def\cong{\stackrel{_\sim}{=}}
This places the \sim too much above the =.
The cong glyph from the X symbol fonts looks better, but the former option
has the following advantages:
- It works in RH8
- The \cong looks like regular =, unlike the glyph from the X symbol font.
A better solution can be done when mathed supports \raisebox.
Index: symbols
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/symbols,v
retrieving revision 1.39
diff -u -p -r1.39 symbols
--- symbols 20 Dec 2002 18:13:44 -0000 1.39
+++ symbols 20 Dec 2002 20:47:18 -0000
@@ -350,7 +350,9 @@ sqsubset msa 64 0 m
sqsupset msa 65 0 mathrel x
mho msb 102 0 mathord x
square msa 164 0 mathord x
+Box msa 164 0 mathord x
lozenge msa 167 0 mathord x
+Diamond msa 167 0 mathord x
vartriangleright msa 66 0 mathrel x
vartriangleleft msa 67 0 mathrel x
trianglerighteq msa 68 0 mathrel x
@@ -702,8 +704,8 @@ inve wasy 85 0
#mho wasy 48 0 mathord x
#Join wasy 49 0 mathrel x
-Box wasy 50 0 mathord x
-Diamond wasy 51 0 mathord x
+#Box wasy 50 0 mathord x
+#Diamond wasy 51 0 mathord x
leadsto wasy 59 0 mathrel x
#sqsubset wasy 60 0 mathrel x
#sqsupset wasy 61 0 mathrel x
@@ -773,6 +775,7 @@ $ mathnormal 0 0 s
#
\def\neq{\not=}
+\def\ne{\not=}
\def\notin{\not\in}
\def\slash{/}
@@ -807,10 +810,17 @@ iffont msb
endif
\def\mathcircumflex{\mbox{\^{}}}
-ne lyxsymbol 185 0 mathrel x
textdegree lyxsymbol 176 0 mathord x
+
+iffont cmsy
+# The \sim is placed too high...
+\def\cong{\stackrel{_\sim}{=}}
+lyxsurd cmsy 112 0 mathord x
+\def\surd{^\lyxsurd}
+else
cong lyxsymbol 64 0 mathrel x
surd lyxsymbol 214 0 mathord x
-
+endif
+
#"{\hat{}}