]> git.lyx.org Git - lyx.git/blobdiff - lib/symbols
Implement return codes consistently.
[lyx.git] / lib / symbols
index 655b581a23fe00fd2fb93da982070ed3db042b20..343fee12879b268bfe5618e11573085af4b0b080 100644 (file)
@@ -3,7 +3,7 @@
 #
 
 # decorations
 #
 
 # decorations
-acute               decoration none 
+acute               decoration none
 bar                 decoration none
 breve               decoration none
 check               decoration none
 bar                 decoration none
 breve               decoration none
 check               decoration none
@@ -30,6 +30,7 @@ widehat             decoration none
 widetilde           decoration none
 
 # dots
 widetilde           decoration none
 
 # dots
+dots              dots        none
 cdots             dots        none
 ddots             dots        none
 dotsb             dots        none
 cdots             dots        none
 ddots             dots        none
 dotsb             dots        none
@@ -74,7 +75,7 @@ cal               oldfont     none
 it                oldfont     none
 rm                oldfont     none
 tt                oldfont     none
 it                oldfont     none
 rm                oldfont     none
 tt                oldfont     none
-                              
+
 # matrix environments
 Bmatrix           matrix      none
 Vmatrix           matrix      none
 # matrix environments
 Bmatrix           matrix      none
 Vmatrix           matrix      none
@@ -82,17 +83,18 @@ bmatrix           matrix      none
 matrix            matrix      none
 pmatrix           matrix      none
 psmatrix          matrix      none
 matrix            matrix      none
 pmatrix           matrix      none
 psmatrix          matrix      none
+smallmatrix       matrix      none
 vmatrix           matrix      none
 CD                matrix      none
 
 vmatrix           matrix      none
 CD                matrix      none
 
-# references                  
+# references
 pageref           ref         none
 prettyref         ref         none
 ref               ref         none
 vpageref          ref         none
 vref              ref         none
 pageref           ref         none
 prettyref         ref         none
 ref               ref         none
 vpageref          ref         none
 vref              ref         none
-                              
-# spaces                      
+
+# spaces
 lyxnegspace       space       none
 lyxposspace       space       none
 !                 space       none
 lyxnegspace       space       none
 lyxposspace       space       none
 !                 space       none
@@ -103,17 +105,18 @@ negthickspace     space       none
 ;                 space       none
 quad              space       none
 qquad             space       none
 ;                 space       none
 quad              space       none
 qquad             space       none
-                              
-# styles                      
+
+# styles
 displaystyle      style       0
 textstyle         style       1
 scriptstyle       style       2
 scriptscriptstyle style       3
 displaystyle      style       0
 textstyle         style       1
 scriptstyle       style       2
 scriptscriptstyle style       3
-                              
-# misc                        
+
+# misc
 begin             begin       none
 right             right       none
 underset          underset    none
 begin             begin       none
 right             right       none
 underset          underset    none
+overset           overset     none
 parbox            parbox      none
 protect           protect     none
 mbox              mbox        forcetext
 parbox            parbox      none
 protect           protect     none
 mbox              mbox        forcetext
@@ -126,7 +129,7 @@ boxed             fbox        none
 
 
 #
 
 
 #
-# symbols generated from fontmath.ltx 
+# symbols generated from fontmath.ltx
 #
 
 #symbol            font   charid   charid-in-fallback-Xsymbol-font
 #
 
 #symbol            font   charid   charid-in-fallback-Xsymbol-font
@@ -151,7 +154,7 @@ tau                cmm         191 116 mathord  x
 upsilon            cmm         192 117 mathord  x
 phi                cmm         193 102 mathord  x
 chi                cmm         194  99 mathord  x
 upsilon            cmm         192 117 mathord  x
 phi                cmm         193 102 mathord  x
 chi                cmm         194  99 mathord  x
-psi                cmm          32 121 mathord  x
+psi                cmm         195 121 mathord  x
 omega              cmm          33 119 mathord  x
 varepsilon         cmm          34 101 mathord  x
 vartheta           cmm          35  74 mathord  x
 omega              cmm          33 119 mathord  x
 varepsilon         cmm          34 101 mathord  x
 vartheta           cmm          35  74 mathord  x
@@ -196,8 +199,14 @@ clubsuit           cmsy        124 167 mathord  x
 diamondsuit        cmsy        125 168 mathord  x
 heartsuit          cmsy        126 169 mathord  x
 spadesuit          cmsy        127 170 mathord  x
 diamondsuit        cmsy        125 168 mathord  x
 heartsuit          cmsy        126 169 mathord  x
 spadesuit          cmsy        127 170 mathord  x
-# We define \not as mathrel in order to align it properly
-not                cmsy         54   0 mathrel  x 
+# We define lyxnot as mathrel in order to have proper alignment
+lyxnot             cmsy         54  47 mathrel  x
+iffont cmsy
+# 9mu = 0.5em which is the extra space added to relation operators
+\def\not{\lyxnot\kern-9mu}
+else
+\def\not{\kern4mu\lyxnot\kern-19mu}
+endif
 coprod             cmex         96   0 mathop   x
 bigvee             cmex         87   0 mathop   x
 bigwedge           cmex         86   0 mathop   x
 coprod             cmex         96   0 mathop   x
 bigvee             cmex         87   0 mathop   x
 bigwedge           cmex         86   0 mathop   x
@@ -280,8 +289,8 @@ owns               cmsy         51  39 mathrel  x
 gg                 cmsy        192   0 mathrel  x
 ll                 cmsy        191   0 mathrel  x
 leftrightarrow     cmsy         36 171 mathrel  x
 gg                 cmsy        192   0 mathrel  x
 ll                 cmsy        191   0 mathrel  x
 leftrightarrow     cmsy         36 171 mathrel  x
-leftarrow          cmsy         32 172 mathrel  x
-gets               cmsy         32 172 mathrel  x
+leftarrow          cmsy        195 172 mathrel  x
+gets               cmsy        195 172 mathrel  x
 rightarrow         cmsy         33 174 mathrel  x
 to                 cmsy         33 174 mathrel  x
 mapstochar         cmsy         55   0 mathrel  x
 rightarrow         cmsy         33 174 mathrel  x
 to                 cmsy         33 174 mathrel  x
 mapstochar         cmsy         55   0 mathrel  x
@@ -324,9 +333,9 @@ lfloor             cmsy         98 235 mathopen  x
 mathparagraph      cmsy        123   0 mathord  x
 mathsection        cmsy        120   0 mathord  x
 mathdollar         cmr          36   0 mathord  x
 mathparagraph      cmsy        123   0 mathord  x
 mathsection        cmsy        120   0 mathord  x
 mathdollar         cmr          36   0 mathord  x
-                               
-# Generated from amsfonts.sty 
-                               
+
+# Generated from amsfonts.sty
+
 yen                msa          85   0 mathord  x
 checkmark          msa          88   0 mathord  x
 circledR           msa         114   0 mathord  x
 yen                msa          85   0 mathord  x
 checkmark          msa          88   0 mathord  x
 circledR           msa         114   0 mathord  x
@@ -342,20 +351,22 @@ sqsubset           msa          64   0 mathrel  x
 sqsupset           msa          65   0 mathrel  x
 mho                msb         102   0 mathord  x
 square             msa         164   0 mathord  x
 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
 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
 trianglelefteq     msa          69   0 mathrel  x
 vartriangleright   msa          66   0 mathrel  x
 vartriangleleft    msa          67   0 mathrel  x
 trianglerighteq    msa          68   0 mathrel  x
 trianglelefteq     msa          69   0 mathrel  x
-rightsquigarrow    msa          32   0 mathrel  x
-leadsto            msa          32   0 mathrel  x
+rightsquigarrow    msa         195   0 mathrel  x
+leadsto            msa         195   0 mathrel  x
 lhd                msa          67   0 mathbin  x
 unlhd              msa          69   0 mathbin  x
 rhd                msa          66   0 mathbin  x
 unrhd              msa          68   0 mathbin  x
 lhd                msa          67   0 mathbin  x
 unlhd              msa          69   0 mathbin  x
 rhd                msa          66   0 mathbin  x
 unrhd              msa          68   0 mathbin  x
-                               
-# Generated from amssymb.sty 
-                               
+
+# Generated from amssymb.sty
+
 boxdot             msa         161   0 mathbin  x
 boxplus            msa         162   0 mathbin  x
 boxtimes           msa         163   0 mathbin  x
 boxdot             msa         161   0 mathbin  x
 boxplus            msa         162   0 mathbin  x
 boxtimes           msa         163   0 mathbin  x
@@ -500,7 +511,7 @@ nsim               msb         191   0 mathrel  x
 ncong              msb         192   0 mathrel  x
 diagup             msb         193   0 mathord  x
 diagdown           msb         194   0 mathord  x
 ncong              msb         192   0 mathrel  x
 diagup             msb         193   0 mathord  x
 diagdown           msb         194   0 mathord  x
-varsubsetneq       msb          32   0 mathrel  x
+varsubsetneq       msb         195   0 mathrel  x
 varsupsetneq       msb          33   0 mathrel  x
 nsubseteqq         msb          34   0 mathrel  x
 nsupseteqq         msb          35   0 mathrel  x
 varsupsetneq       msb          33   0 mathrel  x
 nsubseteqq         msb          34   0 mathrel  x
 nsupseteqq         msb          35   0 mathrel  x
@@ -560,7 +571,7 @@ Bbbk               msb         124   0 mathord  x
 hslash             msb         125   0 mathord  x
 hbar               msb         126   0 mathord  x
 backepsilon        msb         127   0 mathrel  x
 hslash             msb         125   0 mathord  x
 hbar               msb         126   0 mathord  x
 backepsilon        msb         127   0 mathrel  x
-                               
+
 lyxbar             cmsy        161   0 mathord  x
 lyxeq              cmr          61   0 mathord  x
 lyxdabar           msa          57   0 mathord  x
 lyxbar             cmsy        161   0 mathord  x
 lyxeq              cmr          61   0 mathord  x
 lyxdabar           msa          57   0 mathord  x
@@ -693,9 +704,9 @@ openo              wasy         108   0 x        x
 inve               wasy          85   0 x        x
 
 #mho               wasy          48    0  mathord x
 inve               wasy          85   0 x        x
 
 #mho               wasy          48    0  mathord x
-Join               wasy          49    0  mathrel x
-Box                wasy          50    0  mathord x
-Diamond            wasy          51    0  mathord x
+#Join              wasy          49    0  mathrel 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
 leadsto            wasy          59    0  mathrel x
 #sqsubset          wasy          60    0  mathrel x
 #sqsupset          wasy          61    0  mathrel x
@@ -750,12 +761,14 @@ exp                lyxblacktext  0   0 func     x
 Pr                 lyxblacktext  0   0 funclim  x
 gcd                lyxblacktext  0   0 funclim  x
 deg                lyxblacktext  0   0 func     x
 Pr                 lyxblacktext  0   0 funclim  x
 gcd                lyxblacktext  0   0 funclim  x
 deg                lyxblacktext  0   0 func     x
+bmod               lyxblacktext  0   0 func     x
 
 {                  mathnormal    0   0 special  x
 }                  mathnormal    0   0 special  x
 $                  mathnormal    0   0 special  x
 %                  mathnormal    0   0 special  x
 
 {                  mathnormal    0   0 special  x
 }                  mathnormal    0   0 special  x
 $                  mathnormal    0   0 special  x
 %                  mathnormal    0   0 special  x
-# don't remove the space from the beginning of the next line
+&                  mathnormal    0   0 special  x
+## don't remove the space from the beginning of the next line
  #                 mathnormal    0   0 special  x
 
 
  #                 mathnormal    0   0 special  x
 
 
@@ -764,42 +777,55 @@ $                  mathnormal    0   0 special  x
 # pre-defined macros
 #
 
 # pre-defined macros
 #
 
+\def\neq{\not=}
+\def\ne{\not=}
 \def\notin{\not\in}
 \def\slash{/}
 
 \def\notin{\not\in}
 \def\slash{/}
 
-\def\longleftrightarrow{\leftarrow\kern-15mu\rightarrow} 
-\def\Longleftrightarrow{\Leftarrow\kern-15mu\Rightarrow}
-\def\doteq{\stackrel{\cdot}{\=}}
+\def\longleftrightarrow{\leftarrow\kern-12.5mu\rightarrow}
+\def\Longleftrightarrow{\Leftarrow\kern-12.5mu\Rightarrow}
+\def\iff{\Leftarrow\kern-12.5mu\Rightarrow}
+\def\doteq{\stackrel{\cdot}{=}}
 
 iffont cmsy
 \def\longrightarrow{\lyxbar\kern-11mu\rightarrow}
 \def\longleftarrow{\leftarrow\kern-11mu\lyxbar}
 
 iffont cmsy
 \def\longrightarrow{\lyxbar\kern-11mu\rightarrow}
 \def\longleftarrow{\leftarrow\kern-11mu\lyxbar}
-\def\Longrightarrow{\lyxeq\kern-9mu\Rightarrow}
-\def\Longleftarrow{\Leftarrow\kern-9mu\lyxeq}
-\def\mapsto{\mapstochar\kern-12mu\rightarrow}
-\def\longmapsto{\mapstochar\kern-9mu\lyxbar\kern-11mu\rightarrow}
-\def\models{\vert\kern-7.5mu\lyxeq}
-end
+\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-11mu\rightarrow}
+\def\models{\vert\kern-7mu\lyxeq}
+endif
 iffont cmm
 iffont cmm
-\def\hookrightarrow{\lhook\kern-13mu\rightarrow}
-\def\hookleftarrow{\leftarrow\kern-13mu\rhook}
+\def\hookrightarrow{\lhook\kern-12mu\rightarrow}
+\def\hookleftarrow{\leftarrow\kern-12mu\rhook}
 \def\bowtie{\triangleright\kern-6mu\triangleleft}
 \def\bowtie{\triangleright\kern-6mu\triangleleft}
-end
+endif
 iffont msa
 \def\dashrightarrow{\lyxdabar\lyxdabar\lyxright}
 \def\dashleftarrow{\lyxleft\lyxdabar\lyxdabar}
 \def\dasharrow{\dashrightarrow}
 iffont msa
 \def\dashrightarrow{\lyxdabar\lyxdabar\lyxright}
 \def\dashleftarrow{\lyxleft\lyxdabar\lyxdabar}
 \def\dasharrow{\dashrightarrow}
-end
+endif
 iffont msb
 iffont msb
-\def\Join{\ltimes\kern-12mu\rtimes}
-end
-\def\mathcircumflex{\mbox{\^{}}}
+\def\Join{\ltimes\kern-18.5mu\rtimes}
+endif
+\def\mathcircumflex{\mbox{\^{}}}{\^}
+# Fixme: latin-1 chars in text file
+\def\AA{\AA}{Å}
+\def\O{\O}{Ø}
 
 
-neq                lyxsymbol             185 0 mathrel  x
-ne                 lyxsymbol             185 0 mathrel  x
 textdegree         lyxsymbol             176 0 mathord  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
 cong               lyxsymbol             64  0 mathrel  x
 surd               lyxsymbol             214 0 mathord  x
-                               
+endif
+
 #"{\hat{}}
 
 #"{\hat{}}