]> git.lyx.org Git - lyx.git/blobdiff - lib/symbols
remerge he.po
[lyx.git] / lib / symbols
index cee45b93144a3c17fb7d9ed34a672982ade200e0..abdafd01f3f1def3318963c083d76f777cc57c15 100644 (file)
@@ -1,6 +1,43 @@
 #
 # things supported by real insets in mathed
 #
+#
+# The syntax of lib/symbols is very ad hoc.
+# There are several possible formats of a line, which are quite different.
+#
+# Note for \def: The definition is not used in LaTeX output, but for screen
+# display. Therefore you may use a definition that is only approximately
+# correct if no accurate representation is possible (e.g. \HF vs. \approx).
+# Note that the first argument of \def must not uses braces, and the second
+# must use braces.
+#
+# syntax: (note that there should be no space character in the definition)
+# \def\macroname{definition}
+# or
+# \def\macroname{definition} requires
+# or
+# \def\macroname{definition} extra xmlname
+# or
+# \def\macroname{definition} extra xmlname requires
+#
+# ("" for empty strings is not supported. One would have to use x for fields
+# that are not set.)
+#
+# It is also possible to use parameters for the macros
+# \def\macroname#1{definition using #1}
+#
+# TODO: Devise a mechanism to represent these in DocBook/XHTML
+#
+# If you put any symbol with a requirement inside an iffont clause, you
+# must put an alternative definition with the same requirement in the
+# corresponding else clause. Otherwise the LaTeX output would depend on the
+# availability of the font. This usually no problem in GUI mode, since all
+# fonts are shipped with LyX, but in command line mode no font is available
+# at all.
+#
+# New symbols for font packages may be created using
+# development/tools/generate_symbols_list.py (but may require manual fixes
+# as well).
 
 # decorations
 acute               decoration none
@@ -26,6 +63,11 @@ underleftarrow      decoration none       amsmath
 underleftrightarrow decoration none       amsmath
 underline           decoration none
 underrightarrow     decoration none       amsmath
+#Do not load automatically, it redefines some other symbols, and we don't
+#have a possibility to turn automatic loading off like for ams
+#undertilde          decoration none       accents
+undertilde          decoration none       hiddensymbol
+utilde              decoration none       undertilde
 vec                 decoration none
 widehat             decoration none
 widetilde           decoration none
@@ -35,7 +77,7 @@ dots              dots        none
 #Do not load automatically, it redefines some other symbols, and we don't
 #have a possibility to turn automatic loading off like for ams
 #adots             dots        none        yhmath
-adots             dots        none
+adots             dots        none        hiddensymbol
 cdots             dots        none
 ddots             dots        none
 dotsb             dots        none        amsmath
@@ -43,10 +85,7 @@ dotsc             dots        none        amsmath
 dotsi             dots        none        amsmath
 dotsm             dots        none        amsmath
 dotso             dots        none        amsmath
-#Do not load automatically, since we don't have a possibility to turn
-#automatic loading off like for ams
-#iddots            dots        none        mathdots
-iddots            dots        none
+iddots            dots        none        mathdots
 ldots             dots        none
 vdots             dots        none
 
@@ -71,12 +110,12 @@ Biggr             big         none
 # packages. No 'm' versions!
 # See lucidabr.dtx for a possible implementation if you want to use these
 # with other fonts.
-biggg             big         none
-bigggl            big         none
-bigggr            big         none
-Biggg             big         none
-Bigggl            big         none
-Bigggr            big         none
+biggg             big         none        hiddensymbol
+bigggl            big         none        hiddensymbol
+bigggr            big         none        hiddensymbol
+Biggg             big         none        hiddensymbol
+Bigggl            big         none        hiddensymbol
+Bigggr            big         none        hiddensymbol
 
 # font changes
 # name           "font"       math/text family  series  shape  color
@@ -84,6 +123,7 @@ Bigggr            big         none
 mathnormal        font        mathmode  inherit  medium   up  math
 frak              font        mathmode
 mathbb            font        mathmode
+mathds            font        mathmode
 mathbf            font        mathmode
 mathcal           font        mathmode
 mathfrak          font        mathmode
@@ -111,11 +151,11 @@ ce                font        forcetext
 cf                font        forcetext
 
 # old-style font commands
-bf                oldfont     none
-cal               oldfont     none
-it                oldfont     none
-rm                oldfont     none
-tt                oldfont     none
+bf                oldfont     none    hiddensymbol
+cal               oldfont     none    hiddensymbol
+it                oldfont     none    hiddensymbol
+rm                oldfont     none    hiddensymbol
+tt                oldfont     none    hiddensymbol
 
 # matrix environments
 Bmatrix           matrix      none
@@ -139,6 +179,7 @@ rgathered         split       none
 # references
 pageref           ref         none
 prettyref         ref         none
+refstyle          ref         none
 ref               ref         none
 vpageref          ref         none
 vref              ref         none
@@ -157,15 +198,28 @@ medspace          space       none
 ;                 space       none
 thickspace        space       none
 enskip            space       none
+enspace           space       none
 quad              space       none
 qquad             space       none
+hfill             space       none
+hspace*           space       none
 hspace            space       none
 
 # styles
-displaystyle      style       0
-textstyle         style       1
-scriptstyle       style       2
-scriptscriptstyle style       3
+displaystyle      style       3
+textstyle         style       2
+scriptstyle       style       1
+scriptscriptstyle style       0
+
+# math classes
+mathord           class    none
+mathop            class    none
+mathbin           class    none
+mathrel           class    none
+mathopen          class    none
+mathclose         class    none
+mathpunct         class    none
+mathinner         class    none
 
 # misc
 # The commented lines in this block get misparsed as MathSymbolInset because
@@ -185,511 +239,537 @@ tag*              mbox        forcetext
 #end               end         none
 
 
+# In order to use one of the decorations of MathSupport.cpp, the line must
+# be handled by a math inset which calls mathed_draw_deco(). 
+# If new symbol do not fit into any of the existing insets, it would be ignored
+# and new inset must be programmed.
+# Better solutions is to use the font to draw the symbols as below.
+
 #
 # symbols generated from fontmath.ltx
 #
 
-#symbol            font   charid   charid-in-fallback-Xsymbol-font
-alpha              cmm         174  97 mathord  α
-beta               cmm         175  98 mathord  β
-gamma              cmm         176 103 mathord  γ
-delta              cmm         177 100 mathord  δ
-epsilon            cmm         178   0 mathord  ε
-zeta               cmm         179 122 mathord  ζ
-eta                cmm         180 104 mathord  η
-theta              cmm         181 113 mathord  θ
-iota               cmm         182 105 mathord  ι
-kappa              cmm         183 107 mathord  κ
-lambda             cmm         184 108 mathord  λ
-mu                 cmm         185 109 mathord  μ
-nu                 cmm         186 110 mathord  ν
-xi                 cmm         187 120 mathord  ξ
-pi                 cmm         188 112 mathord  π
-rho                cmm         189 114 mathord  ρ
-sigma              cmm         190 115 mathord  σ
-tau                cmm         191 116 mathord  τ
-upsilon            cmm         192 117 mathord  υ
-phi                cmm         193 102 mathord  φ
-chi                cmm         194  99 mathord  χ
-psi                cmm         195 121 mathord  ψ
-omega              cmm          33 119 mathord  ω
-varepsilon         cmm          34 101 mathord  ϵ
-vartheta           cmm          35  74 mathord  ϑ
-varpi              cmm          36 118 mathord  ϖ
-varrho             cmm          37   0 mathord  ϱ
-varsigma           cmm          38  86 mathord  ς
-varphi             cmm          39 106 mathord  ϕ
-Gamma              cmr         161  71 mathalpha  Γ
-Delta              cmr         162  68 mathalpha  Δ
-Theta              cmr         163  81 mathalpha  Θ
-Lambda             cmr         164  76 mathalpha  Λ
-Xi                 cmr         165  88 mathalpha  Ξ
-Pi                 cmr         166  80 mathalpha  Π
-Sigma              cmr         167  83 mathalpha  Σ
-Upsilon            cmr         168 161 mathalpha  ϒ
-Phi                cmr         169  70 mathalpha  Φ
-Psi                cmr         170  89 mathalpha  Ψ
-Omega              cmr         173  87 mathalpha  Ω
-aleph              cmsy         64 192 mathord  ℵ
-imath              cmm         123   0 mathord  ı
-jmath              cmm         124   0 mathord  ȷ
-ell                cmm          96   0 mathord  ℓ
-wp                 cmm         125 195 mathord  ℘
-Re                 cmsy         60 194 mathord  ℜ
-Im                 cmsy         61 193 mathord  ℑ
-partial            cmm          64 182 mathord  ∂
-infty              cmsy         49 165 mathord  ∞
-prime              cmsy         48 162 mathord  ′
-emptyset           cmsy         59   0 mathord  ∅
-nabla              cmsy        114 209 mathord  ∇
-top                cmsy         62   0 mathord  ⊤
-bot                cmsy         63  94 mathord  ⊥
-triangle           cmsy         52   0 mathord  ▵
-forall             cmsy         56  34 mathord  ∀
-exists             cmsy         57  36 mathord  ∃
-neg                cmsy         58 216 mathord  ¬
-lnot               cmsy         58 216 mathord  ¬
-flat               cmm          91   0 mathord  ♭
-natural            cmm          92   0 mathord  ♮
-sharp              cmm          93  35 mathord  ♯
-clubsuit           cmsy        124 167 mathord  ♣
-diamondsuit        cmsy        125 168 mathord  ♢
-heartsuit          cmsy        126 169 mathord  ♡
-spadesuit          cmsy        127 170 mathord  ♠
+# When two codes n1|n2 are specified for charid, the the second one will
+# be used in display mode. This is only useful for mathop symbold (e.g.\sum).
+
+#symbol            font   charid   charid-in-fallback-Xsymbol-font  math-class  XML-entity
+alpha              cmm         174  97 mathord    α
+beta               cmm         175  98 mathord    β
+gamma              cmm         176 103 mathord    γ
+delta              cmm         177 100 mathord    δ
+epsilon            cmm         178   0 mathord    ϵ
+zeta               cmm         179 122 mathord    ζ
+eta                cmm         180 104 mathord    η
+theta              cmm         181 113 mathord    θ
+iota               cmm         182 105 mathord    ι
+kappa              cmm         183 107 mathord    κ
+lambda             cmm         184 108 mathord    λ
+mu                 cmm         185 109 mathord    μ
+nu                 cmm         186 110 mathord    ν
+xi                 cmm         187 120 mathord    ξ
+pi                 cmm         188 112 mathord    π
+rho                cmm         189 114 mathord    ρ
+sigma              cmm         190 115 mathord    σ
+tau                cmm         191 116 mathord    τ
+upsilon            cmm         192 117 mathord    υ
+phi                cmm         193 102 mathord    ϕ
+chi                cmm         194  99 mathord    χ
+psi                cmm         195 121 mathord    ψ
+omega              cmm          33 119 mathord    ω
+varepsilon         cmm          34 101 mathord    ε
+vartheta           cmm          35  74 mathord    ϑ
+varpi              cmm          36 118 mathord    ϖ
+varrho             cmm          37   0 mathord    ϱ
+varsigma           cmm          38  86 mathord    ς
+varphi             cmm          39 106 mathord    φ
+slash              cmr          47  47 mathord    /
+Gamma              cmr         161  71 mathalpha  Γ
+Delta              cmr         162  68 mathalpha  Δ
+Theta              cmr         163  81 mathalpha  Θ
+Lambda             cmr         164  76 mathalpha  Λ
+Xi                 cmr         165  88 mathalpha  Ξ
+Pi                 cmr         166  80 mathalpha  Π
+Sigma              cmr         167  83 mathalpha  Σ
+Upsilon            cmr         168 161 mathalpha  Υ
+Phi                cmr         169  70 mathalpha  Φ
+Psi                cmr         170  89 mathalpha  Ψ
+Omega              cmr         172  87 mathalpha  Ω
+aleph              cmsy         64 192 mathord    ℵ
+imath              cmm         123   0 mathord    ı
+jmath              cmm         124   0 mathord    ȷ
+ell                cmm          96   0 mathord    ℓ
+wp                 cmm         125 195 mathord    ℘
+Re                 cmsy         60 194 mathord    ℜ
+Im                 cmsy         61 193 mathord    ℑ
+partial            cmm          64 182 mathord    ∂
+infty              cmsy         49 165 mathord    ∞
+prime              cmsy         48 162 mathord    ′
+emptyset           cmsy         59   0 mathord    ∅
+nabla              cmsy        114 209 mathord    ∇
+top                cmsy         62   0 mathord    ⊤
+bot                cmsy         63  94 mathord    ⊥
+triangle           cmsy         52   0 mathord    ▵
+forall             cmsy         56  34 mathord    ∀
+exists             cmsy         57  36 mathord    ∃
+neg                cmsy         58 216 mathord    ¬
+flat               cmm          91   0 mathord    ♭
+natural            cmm          92   0 mathord    ♮
+sharp              cmm          93  35 mathord    ♯
+clubsuit           cmsy        124 167 mathord    ♣
+diamondsuit        cmsy        125 168 mathord    ♢
+heartsuit          cmsy        126 169 mathord    ♡
+spadesuit          cmsy        127 170 mathord    ♠
 # We define lyxnot as mathrel in order to have proper alignment
-lyxnot             cmsy         54  47 mathrel  ∖
+lyxnot             cmsy         54  47 mathrel  /           hiddensymbol
 iffont cmsy
-# 9mu = 0.5em which is the extra space added to relation operators
-\def\not{\lyxnot\kern-9mu}
+# kerning is slightly imperfect so that one can see when \not is selected
+\def\not{\lyxnot}
 else
 \def\not{\kern4mu\lyxnot\kern-19mu}
 endif
-coprod             cmex         96   0 mathop   ⨿
-bigvee             cmex         87   0 mathop   ⋁
-bigwedge           cmex         86   0 mathop   ⋀
-biguplus           cmex         85   0 mathop   ⨄
-bigcap             cmex         84   0 mathop   ⋂
-bigcup             cmex         83   0 mathop   ⋃
-prod               cmex         81 213 mathop   ∏
-sum                cmex         80 229 mathop   ∑
-bigotimes          cmex         78   0 mathop   ⨂
-bigoplus           cmex         76   0 mathop   ⨁
-bigodot            cmex         74   0 mathop   ⨀
-bigsqcup           cmex         70   0 mathop   ⨆
-smallint           cmsy        115   0 mathop   ∫
-triangleleft       cmm          47   0 mathbin  ◃
-triangleright      cmm          46   0 mathbin  ▹
-bigtriangleup      cmsy         52   0 mathbin  △
-bigtriangledown    cmsy         53   0 mathbin  ▽
-wedge              cmsy         94 217 mathbin  ∧
-land               cmsy         94 217 mathbin  ⋀
-vee                cmsy         95 218 mathbin  ∨
-lor                cmsy         95 218 mathbin  ⋁
-cap                cmsy         92 199 mathbin  ∩
-cup                cmsy         91 200 mathbin  ∪
-ddagger            cmsy        122   0 mathbin  ‡
-dagger             cmsy        121   0 mathbin  †
-sqcap              cmsy        117   0 mathbin  ⊓
-sqcup              cmsy        116   0 mathbin  ⊔
-uplus              cmsy         93   0 mathbin  ⊎
-amalg              cmsy        113   0 mathbin  ⨿
-diamond            cmsy        166 224 mathbin  ◊
-bullet             cmsy        178 183 mathbin  •
-wr                 cmsy        111   0 mathbin  ≀
-div                cmsy        165 184 mathbin  ÷
-odot               cmsy        175   0 mathbin  ⊙
-oslash             cmsy        174 198 mathbin  ø
-otimes             cmsy        173 196 mathbin  ⊗
-ominus             cmsy        170   0 mathbin  ⊖
-oplus              cmsy        169 197 mathbin  ⊕
-mp                 cmsy        168   0 mathbin  ∓
-pm                 cmsy        167 177 mathbin  ±
-circ               cmsy        177   0 mathbin  ○
-bigcirc            cmsy        176   0 mathbin  ◯
-setminus           cmsy        110   0 mathbin  ∖
-cdot               cmsy        162 215 mathbin  ⋅
-ast                cmsy        164   0 mathbin  ∗
-times              cmsy        163 180 mathbin  ×
-star               cmm          63   0 mathbin  ★
-propto             cmsy         47 181 mathrel  ∝
-sqsubseteq         cmsy        118   0 mathrel  ⊑
-sqsupseteq         cmsy        119   0 mathrel  ⊒
-parallel           cmsy        107   0 mathrel  ∥
-mid                cmsy        106 124 mathrel  ∣
-dashv              cmsy         97   0 mathrel  ⊣
-vdash              cmsy         96   0 mathrel  ⊢
-nearrow            cmsy         37   0 mathrel  ↗
-searrow            cmsy         38   0 mathrel  ↘
-nwarrow            cmsy         45   0 mathrel  ↖
-swarrow            cmsy         46   0 mathrel  ↙
-Leftrightarrow     cmsy         44 219 mathrel  ↔
-Leftarrow          cmsy         40 220 mathrel  ⇐
-Rightarrow         cmsy         41 222 mathrel  ⇒
-leq                cmsy        183 163 mathrel  ≤
-le                 cmsy        183 163 mathrel  ≤
-geq                cmsy        184 179 mathrel  ≥
-ge                 cmsy        184 179 mathrel  ≥
-succ               cmsy        194   0 mathrel  ≻
-prec               cmsy        193   0 mathrel  ≺
-approx             cmsy        188 187 mathrel  ≈
-succeq             cmsy        186   0 mathrel  ⪰
-preceq             cmsy        185   0 mathrel  ⪯
-supset             cmsy        190 201 mathrel  ⊃
-subset             cmsy        189 204 mathrel  ⊂
-supseteq           cmsy        182 202 mathrel  ⊇
-subseteq           cmsy        181 205 mathrel  ⊆
-in                 cmsy         50 206 mathrel  ∈
-ni                 cmsy         51  39 mathrel  ∋
-owns               cmsy         51  39 mathrel  ∋
-gg                 cmsy        192   0 mathrel  >
-ll                 cmsy        191   0 mathrel  <
-leftrightarrow     cmsy         36 171 mathrel  ↔
-leftarrow          cmsy        195 172 mathrel  ←
-gets               cmsy        195 172 mathrel  ←
-rightarrow         cmsy         33 174 mathrel  →
-to                 cmsy         33 174 mathrel  →
-mapstochar         cmsy         55   0 mathrel  x
-sim                cmsy        187 126 mathrel  ∼
-simeq              cmsy         39   0 mathrel  ≃
-perp               cmsy         63   0 mathrel  ⊥
-equiv              cmsy        180 186 mathrel  ≡
-asymp              cmsy        179   0 mathrel  ≈
-smile              cmm          94   0 mathrel  ⌣
-frown              cmm          95   0 mathrel  ⌢
-leftharpoonup      cmm          40   0 mathrel  ↼
-leftharpoondown    cmm          41   0 mathrel  ↽
-rightharpoonup     cmm          42   0 mathrel  ⇀
-rightharpoondown   cmm          43   0 mathrel  ⇁
-lhook              cmm          44   0 mathrel  x
-rhook              cmm          45   0 mathrel  x
+coprod             cmex      96|97   0 mathop   ⨿
+bigvee             cmex      87|95   0 mathop   ⋁
+bigwedge           cmex      86|94   0 mathop   ⋀
+biguplus           cmex      85|93   0 mathop   ⨄
+bigcap             cmex      84|92   0 mathop   ⋂
+bigcup             cmex      83|91   0 mathop   ⋃
+prod               cmex      81|89 213 mathop   ∏
+sum                cmex      80|88 229 mathop   ∑
+bigotimes          cmex      78|79   0 mathop   ⨂
+bigoplus           cmex      76|77   0 mathop   ⨁
+bigodot            cmex      74|75   0 mathop   ⨀
+bigsqcup           cmex      70|71   0 mathop   ⨆
+smallint           cmsy        115   0 mathop   ∫
+triangleleft       cmm          47   0 mathbin  ◃
+triangleright      cmm          46   0 mathbin  ▹
+bigtriangleup      cmsy         52   0 mathbin  △
+bigtriangledown    cmsy         53   0 mathbin  ▽
+wedge              cmsy         94 217 mathbin  ∧
+land               cmsy         94 217 mathbin  ⋀
+vee                cmsy         95 218 mathbin  ∨
+lor                cmsy         95 218 mathbin  ⋁
+cap                cmsy         92 199 mathbin  ∩
+cup                cmsy         91 200 mathbin  ∪
+ddagger            cmsy        122   0 mathbin  ‡
+dagger             cmsy        121   0 mathbin  †
+sqcap              cmsy        117   0 mathbin  ⊓
+sqcup              cmsy        116   0 mathbin  ⊔
+uplus              cmsy         93   0 mathbin  ⊎
+amalg              cmsy        113   0 mathbin  ⨿
+diamond            cmsy        166 224 mathbin  ◊
+bullet             cmsy        178 183 mathbin  •
+wr                 cmsy        111   0 mathbin  ≀
+div                cmsy        165 184 mathbin  ÷
+odot               cmsy        175   0 mathbin  ⊙
+oslash             cmsy        174 198 mathbin  ø
+otimes             cmsy        172 196 mathbin  ⊗
+ominus             cmsy        170   0 mathbin  ⊖
+oplus              cmsy        169 197 mathbin  ⊕
+mp                 cmsy        168   0 mathbin  ∓
+pm                 cmsy        167 177 mathbin  ±
+circ               cmsy        177   0 mathbin  ○
+bigcirc            cmsy        176   0 mathbin  ◯
+setminus           cmsy        110   0 mathbin  ∖
+cdot               cmsy        162 215 mathbin  ⋅
+ast                cmsy        164   0 mathbin  ∗
+times              cmsy        163 180 mathbin  ×
+star               cmm          63   0 mathbin  ★
+propto             cmsy         47 181 mathrel  ∝
+sqsubseteq         cmsy        118   0 mathrel  ⊑
+sqsupseteq         cmsy        119   0 mathrel  ⊒
+parallel           cmsy        107   0 mathrel  ∥
+mid                cmsy        106 124 mathrel  ∣
+lvert              cmsy        106 124 mathrel  |        amsmath
+rvert              cmsy        106 124 mathrel  |        amsmath
+dashv              cmsy         97   0 mathrel  ⊣
+vdash              cmsy         96   0 mathrel  ⊢
+nearrow            cmsy         37   0 mathrel  ↗
+searrow            cmsy         38   0 mathrel  ↘
+nwarrow            cmsy         45   0 mathrel  ↖
+swarrow            cmsy         46   0 mathrel  ↙
+Leftrightarrow     cmsy         44 219 mathrel  ↔
+Leftarrow          cmsy         40 220 mathrel  ⇐
+Rightarrow         cmsy         41 222 mathrel  ⇒
+le                 cmsy        183 163 mathrel  ≤
+ge                 cmsy        184 179 mathrel  ≥
+succ               cmsy        194   0 mathrel  ≻
+prec               cmsy        193   0 mathrel  ≺
+approx             cmsy        188 187 mathrel  ≈
+succeq             cmsy        186   0 mathrel  ⪰
+preceq             cmsy        185   0 mathrel  ⪯
+supset             cmsy        190 201 mathrel  ⊃
+subset             cmsy        189 204 mathrel  ⊂
+supseteq           cmsy        182 202 mathrel  ⊇
+subseteq           cmsy        181 205 mathrel  ⊆
+in                 cmsy         50 206 mathrel  ∈
+ni                 cmsy         51  39 mathrel  ∋
+owns               cmsy         51  39 mathrel  ∋
+gg                 cmsy        192   0 mathrel  ≫
+ll                 cmsy        191   0 mathrel  ≪
+leftrightarrow     cmsy         36 171 mathrel  ↔
+leftarrow          cmsy        195 172 mathrel  ←
+gets               cmsy        195 172 mathrel  ←
+rightarrow         cmsy         33 174 mathrel  →
+to                 cmsy         33 174 mathrel  →
+mapstochar         cmsy         55   0 mathrel  ⤇
+sim                cmsy        187 126 mathrel  ∼
+simeq              cmsy         39   0 mathrel  ≃
+perp               cmsy         63   0 mathrel  ⊥
+equiv              cmsy        180 186 mathrel  ≡
+asymp              cmsy        179   0 mathrel  ≈
+smile              cmm          94   0 mathrel  ⌣
+frown              cmm          95   0 mathrel  ⌢
+leftharpoonup      cmm          40   0 mathrel  ↼
+leftharpoondown    cmm          41   0 mathrel  ↽
+rightharpoonup     cmm          42   0 mathrel  ⇀
+rightharpoondown   cmm          43   0 mathrel  ⇁
+lhook              cmm          44   0 mathrel  ↩
+rhook              cmm          45   0 mathrel  ↪
 ldotp              cmm          58   0 mathpunct  <mo>.</mo>
-cdotp              cmsy        162   0 mathpunct  &sdot;
-colon              cmr          58  58 mathpunct  &colon;
-arrowvert          cmsy        106   0 mathord  &verbar;
-Arrowvert          cmsy        107   0 mathord  &par;
-Vert               cmsy        107   0 mathord  &par;
-|                  cmsy        107   0 mathord  &verbar;
-vert               cmsy        106   0 mathord  &verbar;
-uparrow            cmsy         34 173 mathrel &uarr;
-downarrow          cmsy         35 175 mathrel  &darr;
-updownarrow        cmsy        108   0 mathrel  &varr;
-Uparrow            cmsy         42 221 mathrel  &uArr;
-Downarrow          cmsy         43 223 mathrel  &dArr;
-Updownarrow        cmsy        109   0 mathrel  &vArr;
-backslash          cmsy        110   0 mathord  &bsol;
-rangle             cmsy        105 241 mathclose  &rang;
-langle             cmsy        104 225 mathopen  &lang;
-rbrace             cmsy        103   0 mathclose  &rcub;
-lbrace             cmsy        102   0 mathopen  &lcub;
-rceil              cmsy        101 249 mathclose  &rceil;
-lceil              cmsy        100 233 mathopen  &lceil;
-rfloor             cmsy         99 251 mathclose  &rfloor;
-lfloor             cmsy         98 235 mathopen  &lfloor;
-mathparagraph      cmsy        123   0 mathord  &para;
-mathsection        cmsy        120   0 mathord  &sect;
-mathdollar         cmr          36   0 mathord  &dollar;
+# TODO: how to make this namespaced?
+cdotp              cmsy        162   0 mathpunct  &#x22C5;
+colon              cmr          58  58 mathpunct  &#x003A;
+arrowvert          cmsy        106   0 mathord    &#x007C;
+Arrowvert          cmsy        107   0 mathord    &#x2225;
+Vert               cmsy        107   0 mathord    &#x2225;
+lVert              cmsy        107   0 mathord    &#x2225;        amsmath
+rVert              cmsy        107   0 mathord    &#x2225;        amsmath
+|                  cmsy        107   0 mathord    &#x007C;
+vert               cmsy        106   0 mathord    &#x007C;
+uparrow            cmsy         34 173 mathrel   &#x2191;
+downarrow          cmsy         35 175 mathrel    &#x2193;
+updownarrow        cmsy        108   0 mathrel    &#x2195;
+Uparrow            cmsy         42 221 mathrel    &#x21D1;
+Downarrow          cmsy         43 223 mathrel    &#x21D3;
+Updownarrow        cmsy        109   0 mathrel    &#x21D5;
+backslash          cmsy        110   0 mathord    &#x005C;
+rangle             cmsy        105 241 mathclose  &#x27E9;
+langle             cmsy        104 225 mathopen   &#x27E8;
+rbrace             cmsy        103   0 mathclose  &#x007D;
+lbrace             cmsy        102   0 mathopen   &#x007B;
+rceil              cmsy        101 249 mathclose  &#x2309;
+lceil              cmsy        100 233 mathopen   &#x2308;
+rfloor             cmsy         99 251 mathclose  &#x230B;
+lfloor             cmsy         98 235 mathopen   &#x230A;
+mathparagraph      cmsy        123   0 mathord    &#x00B6;
+mathsection        cmsy        120   0 mathord    &#x00A7;
+mathdollar         cmr          36   0 mathord    &#x0024;
 
 # Generated from amsfonts.sty
 
-yen                msa          85   0 mathord  &yen;
-checkmark          msa          88   0 mathord  &check;
-circledR           msa         114   0 mathord  &reg;
-maltese            msa         122   0 mathord  &malt;
-ulcorner           msa         112   0 mathopen  &ulcorn;
-urcorner           msa         113   0 mathclose  &urcorn;
-llcorner           msa         120   0 mathopen  &dlcorn;
-lrcorner           msa         121   0 mathclose  &drcorn;
-rightleftharpoons  msa         173   0 mathrel  &lrhar;
-angle              msa          92 208 mathord  &ang;
-hbar               msb         126   0 mathord  &planck;
-sqsubset           msa          64   0 mathrel  &sqsub;
-sqsupset           msa          65   0 mathrel  &sqsup;
-mho                msb         102   0 mathord  &mho;
-square             msa         164   0 mathord  &square;
-Box                msa         164   0 mathord  &square;
-lozenge            msa         167   0 mathord  &loz;
-Diamond            msa         167   0 mathord  xdiam;
-vartriangleright   msa          66   0 mathrel  &rtri;
-vartriangleleft    msa          67   0 mathrel  &ltri;
-trianglerighteq    msa          68   0 mathrel  &rtrie;
-trianglelefteq     msa          69   0 mathrel  &ltrie;
-rightsquigarrow    msa         195   0 mathrel  &rarrw;
-# This may not be right, but is the closest I can find.
-leadsto            msa         195   0 mathrel  &rarrc;
-lhd                msa          67   0 mathbin  &ltri;
-unlhd              msa          69   0 mathbin  &ltrie;
-rhd                msa          66   0 mathbin  &rtri;
-unrhd              msa          68   0 mathbin  &rtrie;
+yen                msa          85   0 mathord    &#x00A5;
+checkmark          msa          88   0 mathord    &#x2713;
+circledR           msa         114   0 mathord    &#x00AE;
+maltese            msa         122   0 mathord    &#x2720;
+ulcorner           msa         112   0 mathopen   &#x231C;
+urcorner           msa         113   0 mathclose  &#x231D;
+llcorner           msa         120   0 mathopen   &#x231E;
+lrcorner           msa         121   0 mathclose  &#x231F;
+rightleftharpoons  msa         172   0 mathrel    &#x21CB;
+angle              msa          92 208 mathord    &#x2220;
+sqsubset           msa          64   0 mathrel    &#x228F;
+sqsupset           msa          65   0 mathrel    &#x2290;
+mho                msb         102   0 mathord    &#x2127;
+square             msa         164   0 mathord    &#x25A1;
+Box                msa         164   0 mathord    &#x25A1;
+lozenge            msa         167   0 mathord    &#x25CA;
+Diamond            msa         167   0 mathord    &#x22C4;
+vartriangleright   msa          66   0 mathrel    &#x25B9;
+vartriangleleft    msa          67   0 mathrel    &#x25C3;
+trianglerighteq    msa          68   0 mathrel    &#x22B5;
+trianglelefteq     msa          69   0 mathrel    &#x22B4;
+rightsquigarrow    msa         195   0 mathrel    &#x219D;
+lhd                msa          67   0 mathbin    &#x25C3;
+unlhd              msa          69   0 mathbin    &#x22B4;
+rhd                msa          66   0 mathbin    &#x25B9;
+unrhd              msa          68   0 mathbin    &#x22B5;
 
 # Generated from amssymb.sty
 
-boxdot             msa         161   0 mathbin  &sdotb;
-boxplus            msa         162   0 mathbin  &plusb;
-boxtimes           msa         163   0 mathbin  &timesb;
-blacksquare        msa         165   0 mathord  &block;
-centerdot          msa         166   0 mathbin  &squarf;
-blacklozenge       msa         168   0 mathord  &diams;
-circlearrowright   msa         169   0 mathrel  &orarr;
-circlearrowleft    msa         170   0 mathrel  &olarr;
-leftrightharpoons  msa         174   0 mathrel  &lrhar;
-boxminus           msa         175   0 mathbin  &minusb;
-Vdash              msa         176   0 mathrel  &Vdash;
-Vvdash             msa         177   0 mathrel  &Vvdash;
-vDash              msa         178   0 mathrel  &vDash;
-twoheadrightarrow  msa         179   0 mathrel  &Rarr;
-twoheadleftarrow   msa         180   0 mathrel  &Larr;
-leftleftarrows     msa         181   0 mathrel  &llarr;
-rightrightarrows   msa         182   0 mathrel  &rrarr;
-upuparrows         msa         183   0 mathrel  &uuarr;
-downdownarrows     msa         184   0 mathrel  &ddarr;
-upharpoonright     msa         185   0 mathrel  &uharr;
-restriction        msa         185   0 mathrel  &uharr;
-downharpoonright   msa         186   0 mathrel  &dharr;
-upharpoonleft      msa         187   0 mathrel  &uharl;
-downharpoonleft    msa         188   0 mathrel  &dharl;
-rightarrowtail     msa         189   0 mathrel  &rarrtl;
-leftarrowtail      msa         190   0 mathrel  &larrtl;
-leftrightarrows    msa         191   0 mathrel  &lrarr;
-rightleftarrows    msa         192   0 mathrel  &rlarr;
-Lsh                msa         193   0 mathrel  &lsh;
-Rsh                msa         194   0 mathrel  &rsh;
-leftrightsquigarrow msa         33   0 mathrel  &harrw;
-looparrowleft      msa          34   0 mathrel  &larrlp;
-looparrowright     msa          35   0 mathrel  &rarrlp;
-circeq             msa          36   0 mathrel  &cire;
-succsim            msa          37   0 mathrel  &scsim;
-gtrsim             msa          38   0 mathrel  &gsim;
-gtrapprox          msa          39   0 mathrel  &gap;
-multimap           msa          40   0 mathrel  &mumap;
-therefore          msa          41  92 mathrel  &there4;
-because            msa          42   0 mathrel  &becaus;
-doteqdot           msa          43   0 mathrel  &eDot;
-Doteq              msa          43   0 mathrel  &eDot;
-triangleq          msa          44   0 mathrel  &trie;
-precsim            msa          45   0 mathrel  &prsim;
-lesssim            msa          46   0 mathrel  &lsim;
-lessapprox         msa          47   0 mathrel  &lap;
-eqslantless        msa          48   0 mathrel  &els;
-eqslantgtr         msa          49   0 mathrel  &egs;
-curlyeqprec        msa          50   0 mathrel  &cuepr;
-curlyeqsucc        msa          51   0 mathrel  &cuesc;
-preccurlyeq        msa          52   0 mathrel  &prcue;
-leqq               msa          53   0 mathrel  &lE;
-leqslant           msa          54   0 mathrel  &les;
-lessgtr            msa          55   0 mathrel  &lg;
-backprime          msa          56   0 mathord  &bprime;
-risingdotseq       msa          58   0 mathrel  &erDot;
-fallingdotseq      msa          59   0 mathrel  &efDot;
-succcurlyeq        msa          60   0 mathrel  &sccue;
-geqq               msa          61   0 mathrel  &gE;
-geqslant           msa          62   0 mathrel  &ges;
-gtrless            msa          63   0 mathrel  &gl;
-bigstar            msa          70   0 mathord  &starf;
-between            msa          71   0 mathrel  &twixt;
-blacktriangledown  msa          72   0 mathord  &dtrif;
-blacktriangleright msa          73   0 mathrel  &rtrif;
-blacktriangleleft  msa          74   0 mathrel  &ltrif;
-vartriangle        msa          77   0 mathrel  &#x25b5;
-blacktriangle      msa          78   0 mathord  &utrif;
-triangledown       msa          79   0 mathord  &dtri;
-eqcirc             msa          80   0 mathrel  &ecir;
-lesseqgtr          msa          81   0 mathrel  &leg;
-gtreqless          msa          82   0 mathrel  &gel;
-lesseqqgtr         msa          83   0 mathrel  &lEg;
-gtreqqless         msa          84   0 mathrel  &gEl;
-Rrightarrow        msa          86   0 mathrel  &rAarr;
-Lleftarrow         msa          87   0 mathrel  &lAarr;
-veebar             msa          89   0 mathbin  &veebar;
-barwedge           msa          90   0 mathbin  &barwed;
-doublebarwedge     msa          91   0 mathbin  &Barwed;
-measuredangle      msa          93   0 mathord  &angmsd;
-sphericalangle     msa          94   0 mathord  &angsph;
-varpropto          msa          95   0 mathrel  &vprop;
-smallsmile         msa          96   0 mathrel  &ssmile;
-smallfrown         msa          97   0 mathrel  &sfrown;
-Subset             msa          98   0 mathrel  &Sub;
-Supset             msa          99   0 mathrel  &Sup;
-Cup                msa         100   0 mathbin  &Cup;
-doublecup          msa         100   0 mathbin  &Cup;
-Cap                msa         101   0 mathbin  &Cap;
-doublecap          msa         101   0 mathbin  &Cap;
-curlywedge         msa         102   0 mathbin  &cuwed;
-curlyvee           msa         103   0 mathbin  &cuvee;
-leftthreetimes     msa         104   0 mathbin  &lthree;
-rightthreetimes    msa         105   0 mathbin  &rthree;
-subseteqq          msa         106   0 mathrel  &subE;
-supseteqq          msa         107   0 mathrel  &supE;
-bumpeq             msa         108   0 mathrel  &bumpe;
-Bumpeq             msa         109   0 mathrel  &bump;
-lll                msa         110   0 mathrel  &Ll;
-llltr              msa         110   0 mathrel  &Ll;
-ggg                msa         111   0 mathrel  &Gg;
-gggtr              msa         111   0 mathrel  &Gg;
-circledS           msa         115   0 mathord  &oS;
-pitchfork          msa         116   0 mathrel  &fork;
-dotplus            msa         117   0 mathbin  &plusdo;
-backsim            msa         118   0 mathrel  &bsim;
-backsimeq          msa         119   0 mathrel  &bsime;
-complement         msa         123   0 mathord  &comp;
-intercal           msa         124   0 mathbin  &intcal;
-circledcirc        msa         125   0 mathbin  &ocir;
-circledast         msa         126   0 mathbin  &oast;
-circleddash        msa         127   0 mathbin  &odash;
-lvertneqq          msb         161   0 mathrel  &lvnE;
-gvertneqq          msb         162   0 mathrel  &gvnE;
-nleq               msb         163   0 mathrel  &nle;
-ngeq               msb         164   0 mathrel  &nge;
-nless              msb         165   0 mathrel  &nlt;
-ngtr               msb         166   0 mathrel  &ngt;
-nprec              msb         167   0 mathrel  &npr;
-nsucc              msb         168   0 mathrel  &nsc;
-lneqq              msb         169   0 mathrel  &lnE;
-gneqq              msb         170   0 mathrel  &gnE;
-nleqslant          msb         173   0 mathrel  &nles;
-ngeqslant          msb         174   0 mathrel  &nges;
-lneq               msb         175   0 mathrel  &nle;
-gneq               msb         176   0 mathrel  &gne;
-npreceq            msb         177   0 mathrel  &nprcue;
-nsucceq            msb         178   0 mathrel  &nsccue;
-precnsim           msb         179   0 mathrel  &prnsim;
-succnsim           msb         180   0 mathrel  &scnsim;
-lnsim              msb         181   0 mathrel  &lnsim;
-gnsim              msb         182   0 mathrel  &gnsim;
-nleqq              msb         183   0 mathrel  &nlE;
-ngeqq              msb         184   0 mathrel  &ngE;
-precneqq           msb         185   0 mathrel  &prnE;
-succneqq           msb         186   0 mathrel  &scnE;
-precnapprox        msb         187   0 mathrel  &prnap;
-succnapprox        msb         188   0 mathrel  &scnap;
-lnapprox           msb         189   0 mathrel  &lnap;
-gnapprox           msb         190   0 mathrel  &gnap;
-nsim               msb         191   0 mathrel  &nsim;
-ncong              msb         192   0 mathrel  &ncong;
+boxdot             msa         161   0 mathbin  &#x22A1;
+boxplus            msa         162   0 mathbin  &#x229E;
+boxtimes           msa         163   0 mathbin  &#x22A0;
+blacksquare        msa         165   0 mathord  &#x2588;
+centerdot          msa         166   0 mathbin  &#x25AA;
+blacklozenge       msa         168   0 mathord  &#x2666;
+circlearrowright   msa         169   0 mathrel  &#x21BB;
+circlearrowleft    msa         170   0 mathrel  &#x21BA;
+leftrightharpoons  msa         174   0 mathrel  &#x21CB;
+boxminus           msa         175   0 mathbin  &#x229F;
+Vdash              msa         176   0 mathrel  &#x22A9;
+Vvdash             msa         177   0 mathrel  &#x22AA;
+vDash              msa         178   0 mathrel  &#x22A8;
+twoheadrightarrow  msa         179   0 mathrel  &#x21A0;
+twoheadleftarrow   msa         180   0 mathrel  &#x219E;
+leftleftarrows     msa         181   0 mathrel  &#x21C7;
+rightrightarrows   msa         182   0 mathrel  &#x21C9;
+upuparrows         msa         183   0 mathrel  &#x21C8;
+downdownarrows     msa         184   0 mathrel  &#x21CA;
+upharpoonright     msa         185   0 mathrel  &#x21BE;
+restriction        msa         185   0 mathrel  &#x21BE;
+downharpoonright   msa         186   0 mathrel  &#x21C2;
+upharpoonleft      msa         187   0 mathrel  &#x21BF;
+downharpoonleft    msa         188   0 mathrel  &#x21C3;
+rightarrowtail     msa         189   0 mathrel  &#x21A3;
+leftarrowtail      msa         190   0 mathrel  &#x21A2;
+leftrightarrows    msa         191   0 mathrel  &#x21C6;
+rightleftarrows    msa         192   0 mathrel  &#x21C4;
+Lsh                msa         193   0 mathrel  &#x21B0;
+Rsh                msa         194   0 mathrel  &#x21B1;
+leftrightsquigarrow msa         33   0 mathrel  &#x21AD;
+looparrowleft      msa          34   0 mathrel  &#x21AB;
+looparrowright     msa          35   0 mathrel  &#x21AC;
+circeq             msa          36   0 mathrel  &#x2257;
+succsim            msa          37   0 mathrel  &#x227F;
+gtrsim             msa          38   0 mathrel  &#x2273;
+gtrapprox          msa          39   0 mathrel  &#x2A86;
+multimap           msa          40   0 mathrel  &#x22B8;
+therefore          msa          41  92 mathrel  &#x2234;
+because            msa          42   0 mathrel  &#x2235;
+doteqdot           msa          43   0 mathrel  &#x2251;
+Doteq              msa          43   0 mathrel  &#x2251;
+triangleq          msa          44   0 mathrel  &#x225C;
+precsim            msa          45   0 mathrel  &#x227E;
+lesssim            msa          46   0 mathrel  &#x2272;
+lessapprox         msa          47   0 mathrel  &#x2A85;
+eqslantless        msa          48   0 mathrel  &#x2A95;
+eqslantgtr         msa          49   0 mathrel  &#x2A96;
+curlyeqprec        msa          50   0 mathrel  &#x22DE;
+curlyeqsucc        msa          51   0 mathrel  &#x22DF;
+preccurlyeq        msa          52   0 mathrel  &#x227C;
+leqq               msa          53   0 mathrel  &#x2266;
+leqslant           msa          54   0 mathrel  &#x2A7D;
+lessgtr            msa          55   0 mathrel  &#x2276;
+backprime          msa          56   0 mathord  &#x2035;
+risingdotseq       msa          58   0 mathrel  &#x2253;
+fallingdotseq      msa          59   0 mathrel  &#x2252;
+succcurlyeq        msa          60   0 mathrel  &#x227D;
+geqq               msa          61   0 mathrel  &#x2267;
+geqslant           msa          62   0 mathrel  &#x2A7E;
+gtrless            msa          63   0 mathrel  &#x2277;
+bigstar            msa          70   0 mathord  &#x2605;
+between            msa          71   0 mathrel  &#x226C;
+blacktriangledown  msa          72   0 mathord  &#x25BE;
+blacktriangleright msa          73   0 mathrel  &#x25B8;
+blacktriangleleft  msa          74   0 mathrel  &#x25C2;
+vartriangle        msa          77   0 mathrel  &#x25B5;
+blacktriangle      msa          78   0 mathord  &#x25B4;
+triangledown       msa          79   0 mathord  &#x25BF;
+eqcirc             msa          80   0 mathrel  &#x2256;
+lesseqgtr          msa          81   0 mathrel  &#x22DA;
+gtreqless          msa          82   0 mathrel  &#x22DB;
+lesseqqgtr         msa          83   0 mathrel  &#x2A8B;
+gtreqqless         msa          84   0 mathrel  &#x2A8C;
+Rrightarrow        msa          86   0 mathrel  &#x21DB;
+Lleftarrow         msa          87   0 mathrel  &#x21DA;
+veebar             msa          89   0 mathbin  &#x22BB;
+barwedge           msa          90   0 mathbin  &#x2305;
+doublebarwedge     msa          91   0 mathbin  &#x2306;
+measuredangle      msa          93   0 mathord  &#x2221;
+sphericalangle     msa          94   0 mathord  &#x2222;
+varpropto          msa          95   0 mathrel  &#x221D;
+smallsmile         msa          96   0 mathrel  &#x2323;
+smallfrown         msa          97   0 mathrel  &#x2322;
+Subset             msa          98   0 mathrel  &#x22D0;
+Supset             msa          99   0 mathrel  &#x22D1;
+Cup                msa         100   0 mathbin  &#x22D3;
+doublecup          msa         100   0 mathbin  &#x22D3;
+Cap                msa         101   0 mathbin  &#x22D2;
+doublecap          msa         101   0 mathbin  &#x22D2;
+curlywedge         msa         102   0 mathbin  &#x22CF;
+curlyvee           msa         103   0 mathbin  &#x22CE;
+leftthreetimes     msa         104   0 mathbin  &#x22CB;
+rightthreetimes    msa         105   0 mathbin  &#x22CC;
+subseteqq          msa         106   0 mathrel  &#x2AC5;
+supseteqq          msa         107   0 mathrel  &#x2AC6;
+bumpeq             msa         108   0 mathrel  &#x224F;
+Bumpeq             msa         109   0 mathrel  &#x224E;
+lll                msa         110   0 mathrel  &#x22D8;
+llless             msa         110   0 mathrel  &#x22D8;
+ggg                msa         111   0 mathrel  &#x22D9;
+gggtr              msa         111   0 mathrel  &#x22D9;
+circledS           msa         115   0 mathord  &#x24C8;
+pitchfork          msa         116   0 mathrel  &#x22D4;
+dotplus            msa         117   0 mathbin  &#x2214;
+backsim            msa         118   0 mathrel  &#x223D;
+backsimeq          msa         119   0 mathrel  &#x22CD;
+complement         msa         123   0 mathord  &#x2201;
+intercal           msa         124   0 mathbin  &#x22BA;
+circledcirc        msa         125   0 mathbin  &#x229A;
+circledast         msa         126   0 mathbin  &#x229B;
+circleddash        msa         127   0 mathbin  &#x229D;
+lvertneqq          msb         161   0 mathrel  &#x2268;&#xFE00;
+gvertneqq          msb         162   0 mathrel  &#x2269;&#xFE00;
+nleq               msb         163   0 mathrel  &#x2270;
+ngeq               msb         164   0 mathrel  &#x2271;
+nless              msb         165   0 mathrel  &#x226E;
+ngtr               msb         166   0 mathrel  &#x226F;
+nprec              msb         167   0 mathrel  &#x2280;
+nsucc              msb         168   0 mathrel  &#x2281;
+lneqq              msb         169   0 mathrel  &#x2268;
+gneqq              msb         170   0 mathrel  &#x2269;
+nleqslant          msb         172   0 mathrel  &#x2A7D;&#x338;
+ngeqslant          msb         174   0 mathrel  &#x2A7E;&#x338;
+lneq               msb         175   0 mathrel  &#x2270;
+gneq               msb         176   0 mathrel  &#x2A88;
+npreceq            msb         177   0 mathrel  &#x22E0;
+nsucceq            msb         178   0 mathrel  &#x22E1;
+precnsim           msb         179   0 mathrel  &#x22E8;
+succnsim           msb         180   0 mathrel  &#x22E9;
+lnsim              msb         181   0 mathrel  &#x22E6;
+gnsim              msb         182   0 mathrel  &#x22E7;
+nleqq              msb         183   0 mathrel  &#x2266;&#x0338;
+ngeqq              msb         184   0 mathrel  &#x2267;&#x0338;
+precneqq           msb         185   0 mathrel  &#x2AB5;
+succneqq           msb         186   0 mathrel  &#x2AB6;
+precnapprox        msb         187   0 mathrel  &#x2AB9;
+succnapprox        msb         188   0 mathrel  &#x2ABA;
+lnapprox           msb         189   0 mathrel  &#x2A89;
+gnapprox           msb         190   0 mathrel  &#x2A8A;
+nsim               msb         191   0 mathrel  &#x2241;
+ncong              msb         192   0 mathrel  &#x2247;
 diagup             msb         193   0 mathord  &#x2571;
 diagdown           msb         194   0 mathord  &#x2572;
-varsubsetneq       msb         195   0 mathrel  &vsubne;
-varsupsetneq       msb          33   0 mathrel  &vsupne;
-nsubseteqq         msb          34   0 mathrel  &nsube;
-nsupseteqq         msb          35   0 mathrel  &nsupe;
-subsetneqq         msb          36   0 mathrel  &nsubE;
-supsetneqq         msb          37   0 mathrel  &nsupE;
-varsubsetneqq      msb          38   0 mathrel  &vsubnE;
-varsupsetneqq      msb          39   0 mathrel  &vsupnE;
-subsetneq          msb          40   0 mathrel  &subne;
-supsetneq          msb          41   0 mathrel  &supne;
-nsubseteq          msb          42   0 mathrel  &nsube;
-nsupseteq          msb          43   0 mathrel  &nsupe;
-nparallel          msb          44   0 mathrel  &npar;
-nmid               msb          45   0 mathrel  &rnmid;
-nshortmid          msb          46   0 mathrel  &nsmid;
-nshortparallel     msb          47   0 mathrel  &nspar;
-nvdash             msb          48   0 mathrel  &nvdash;
-nVdash             msb          49   0 mathrel  &nVdash;
-nvDash             msb          50   0 mathrel  &nvDash;
-nVDash             msb          51   0 mathrel  &nVDash;
-ntrianglerighteq   msb          52   0 mathrel  &nrtrie;
-ntrianglelefteq    msb          53   0 mathrel  &nltrie;
-ntriangleleft      msb          54   0 mathrel  &nltri;
-ntriangleright     msb          55   0 mathrel  &nrtri;
-nleftarrow         msb          56   0 mathrel  &nlarr;
-nrightarrow        msb          57   0 mathrel  &nrarr;
-nLeftarrow         msb          58   0 mathrel  &nlArr;
-nRightarrow        msb          59   0 mathrel  &nrArr;
-nLeftrightarrow    msb          60   0 mathrel  &nhArr;
-nleftrightarrow    msb          61   0 mathrel  &nharr;
-divideontimes      msb          62   0 mathbin  &divonx;
-varnothing         msb          63   0 mathord  &emptyv;
-nexists            msb          64   0 mathord  &nexist;
+varsubsetneq       msb         195   0 mathrel  &#x228A;&#xFE00;
+varsupsetneq       msb          33   0 mathrel  &#x228B;&#xFE00;
+nsubseteqq         msb          34   0 mathrel  &#x2288;
+nsupseteqq         msb          35   0 mathrel  &#x2289;
+subsetneqq         msb          36   0 mathrel  &#x2AC5;&#0338;
+supsetneqq         msb          37   0 mathrel  &#x2AC6;&#0338;
+varsubsetneqq      msb          38   0 mathrel  &#x2ACB;&#0338;
+varsupsetneqq      msb          39   0 mathrel  &#x2ACC;&#0338;
+subsetneq          msb          40   0 mathrel  &#x228A;
+supsetneq          msb          41   0 mathrel  &#x228B;
+nsubseteq          msb          42   0 mathrel  &#x2288;
+nsupseteq          msb          43   0 mathrel  &#x2289;
+nparallel          msb          44   0 mathrel  &#x2226;
+nmid               msb          45   0 mathrel  &#x2AEE;
+nshortmid          msb          46   0 mathrel  &#x2224;
+nshortparallel     msb          47   0 mathrel  &#x2226;
+nvdash             msb          48   0 mathrel  &#x22AC;
+nVdash             msb          49   0 mathrel  &#x22AE;
+nvDash             msb          50   0 mathrel  &#x22AD;
+nVDash             msb          51   0 mathrel  &#x22AF;
+ntrianglerighteq   msb          52   0 mathrel  &#x22ED;
+ntrianglelefteq    msb          53   0 mathrel  &#x22EC;
+ntriangleleft      msb          54   0 mathrel  &#x22EA;
+ntriangleright     msb          55   0 mathrel  &#x22EB;
+nleftarrow         msb          56   0 mathrel  &#x219A;
+nrightarrow        msb          57   0 mathrel  &#x219B;
+nLeftarrow         msb          58   0 mathrel  &#x21CD;
+nRightarrow        msb          59   0 mathrel  &#x21CF;
+nLeftrightarrow    msb          60   0 mathrel  &#x21CE;
+nleftrightarrow    msb          61   0 mathrel  &#x21AE;
+divideontimes      msb          62   0 mathbin  &#x22C7;
+varnothing         msb          63   0 mathord  &#x2205;
+nexists            msb          64   0 mathord  &#x2204;
 Finv               msb          96   0 mathord  &#x2132;
 Game               msb          97   0 mathord  &#x2141;
 eth                msb         103   0 mathord  &#x00F0;
-eqsim              msb         104   0 mathrel  &esim;
-beth               msb         105   0 mathord  &beth;
-gimel              msb         106   0 mathord  &gimel;
-daleth             msb         107   0 mathord  &daleth;
-lessdot            msb         108   0 mathbin  &ltdot;
-gtrdot             msb         109   0 mathbin  &gtdot;
-ltimes             msb         110   0 mathbin  &ltimes;
-rtimes             msb         111   0 mathbin  &rtimes;
-shortmid           msb         112   0 mathrel  &smid;
-shortparallel      msb         113   0 mathrel  &spar;
-smallsetminus      msb         114   0 mathbin  &ssetmn;
-thicksim           msb         115   0 mathrel  &thksim;
-thickapprox        msb         116   0 mathrel  &thkap;
-approxeq           msb         117   0 mathrel  &ape;
-succapprox         msb         118   0 mathrel  &scap;
-precapprox         msb         119   0 mathrel  &prap;
-curvearrowleft     msb         120   0 mathrel  &cularr;
-curvearrowright    msb         121   0 mathrel  &curarr;
-digamma            msb         122   0 mathord  &gammad;
-varkappa           msb         123   0 mathord  &kappav;
+eqsim              msb         104   0 mathrel  &#x2242;
+beth               msb         105   0 mathord  &#x2136;
+gimel              msb         106   0 mathord  &#x2137;
+daleth             msb         107   0 mathord  &#x2138;
+lessdot            msb         108   0 mathbin  &#x22D6;
+gtrdot             msb         109   0 mathbin  &#x22D7;
+ltimes             msb         110   0 mathbin  &#x22C9;
+rtimes             msb         111   0 mathbin  &#x22CA;
+shortmid           msb         112   0 mathrel  &#x2223;
+shortparallel      msb         113   0 mathrel  &#x2225;
+smallsetminus      msb         114   0 mathbin  &#x2216;
+thicksim           msb         115   0 mathrel  &#x223C;
+thickapprox        msb         116   0 mathrel  &#x2248;
+approxeq           msb         117   0 mathrel  &#x224A;
+succapprox         msb         118   0 mathrel  &#x2AB8;
+precapprox         msb         119   0 mathrel  &#x2AB7;
+curvearrowleft     msb         120   0 mathrel  &#x21B6;
+curvearrowright    msb         121   0 mathrel  &#x21B7;
+digamma            msb         122   0 mathord  &#x03DD;
+varkappa           msb         123   0 mathord  &#x03F0;
 # Note: Other blackboard symbols are in the same unicode range
 Bbbk               msb         124   0 mathord  &#x1d55c;
-hslash             msb         125   0 mathord  &plankv;
-hbar               msb         126   0 mathord  &planck;
-backepsilon        msb         127   0 mathrel  &bepsi;
-
-lyxbar             cmsy        161   0 mathord  &mdash;
-lyxeq              cmr          61   0 mathord  =
-lyxdabar           msa          57   0 mathord  &ndash;
-lyxright           msa          75   0 mathord  &rarr;
-lyxleft            msa          76   0 mathord  &larr;
-
-male               wasy          26  0 x        &male;
-female             wasy          25  0 x        &female;
-currency           wasy          27  0 x        &curren;
-phone              wasy          7   0 x        &phone;
-recorder           wasy          6   0 x        &telrec;
-clock              wasy          28  0 x        &clock;
-lightning          wasy          18  0 x        &#x2607;
-pointer            wasy          9   0 x        x
-RIGHTarrow         wasy          17  0 x        &#x25B6;
-LEFTarrow          wasy          16  0 x        &#x25C0;
-UParrow            wasy          75  0 x        &#x25B2;
-DOWNarrow          wasy          76  0 x        &#x25BC;
-#AC                 wasy          n0.5pt\wasyfamily\char58\kern0.5pt}}
-#HF         {\leavevmode
-#   \lower0.9pt\hbox to 0pt{\kern0.5pt\wasyfamily\char58\hss}%
-#   \raise0.9pt\hbox{\kern0.5pt\wasyfamily\char58\kern0.5pt}}
-#VHF                wasy          64  0 x        x
-Square             wasy          50  0 x        &square;
-#CheckedBox         wasy          50\hss}\hbox{\wasyfamily\char8  0 x
-XBox               wasy          52  0 x        &timesb;
-hexagon            wasy          55  0 x        &#x2b21;
-pentagon           wasy          68  0 x        &#x2b20;
-octagon            wasy          56  0 x        x
-varhexagon         wasy          57  0 x        &#x2b21;
-hexstar            wasy          65  0 x        &sext;
-varhexstar         wasy          66  0 x        &sext;
-davidsstar         wasy          67  0 x        &#x2721;
-diameter           wasy          31  0 x        &#x2300;
-# Unicode is wrong, but a true alternate doesn't seem available.
-invdiameter        wasy          21  0 x        &#x2300;
-varangle           wasy          30  0 x        &angsph;
-wasylozenge        wasy          53  0 x        &#x2311;
-kreuz              wasy          54  0 x        &#x2720;
-smiley             wasy          44  0 x        &#x263A;
-frownie            wasy          47  0 x        &#x2639;
-blacksmiley        wasy          45  0 x        &#x263B;
-sun                wasy          46  0 x        &#x263C;
-checked            wasy          8   0 x        &#x2713;
-bell               wasy          10  0 x        &#x237E;
-eighthnote         wasy          11  0 x        &#x266E;
-quarternote        wasy          12  0 x        &#x2669;
-halfnote           wasy          13  0 x        &#x1d15e;
-fullnote           wasy          14  0 x        &#x1d15d;
-twonotes           wasy          15  0 x        &#x266B;
-brokenvert         wasy          124 0 x        &brvbar;
-ataribox           wasy          109 0 x        x
-wasytherefore      wasy          5   0 x        &there4;
-Circle             wasy          35  0 x        &cir;
-CIRCLE             wasy          32  0 x        &#x25cF;
-Leftcircle         wasy          73  0 x        x
-LEFTCIRCLE         wasy          71  0 x        &#x25D6;
-Rightcircle        wasy          74  0 x        x
-RIGHTCIRCLE        wasy          72  0 x        &#x25D7;
-#LEFTcircle {\hbox to 0pt{\wasyfamily\char71\hss}\hbox{\wasyfamily\char35}}
-#RIGHTcircle{\hbox to 0pt{\wasyfamily\char72\hss}\hbox{\wasyfamily\char35}}
+hslash             msb         125   0 mathord  &#x210F;
+hbar               msb         126   0 mathord  &#x210F;
+backepsilon        msb         127   0 mathrel  &#x03F6;
+
+lyxbar             cmsy        161   0 mathrel   &#x2014;        hiddensymbol
+lyxminus           cmsy        161   0 mathbin   &#x2014;        hiddensymbol
+lyxplus            cmr          43  43 mathbin   +               hiddensymbol
+lyxeq              cmr          61  61 mathord   =               hiddensymbol
+lyxeqrel           cmr          61  61 mathrel   =               hiddensymbol
+lyxlt              cmm          60  60 mathrel   &lt;            hiddensymbol
+lyxgt              cmm          62  62 mathrel   &gt;            hiddensymbol
+lyxdabar           msa          57   0 mathord   &#x2013;        hiddensymbol
+lyxright           msa          75   0 mathord   &#x2192;        hiddensymbol
+lyxleft            msa          76   0 mathord   &#x2190;        hiddensymbol
+
+male               wasy          26  0 x         &#x2642;
+female             wasy          25  0 x         &#x2640;
+currency           wasy          27  0 textmode  &#x00A4;        wasysym,amstext,lyxmathsym # works in text mode only (produces \oe in math mode)
+phone              wasy          7   0 textmode  &#x260E;        wasysym,amstext,lyxmathsym # works in text mode only (produces \Upsilon in math mode)
+recorder           wasy          6   0 textmode  &#x2315;        wasysym,amstext,lyxmathsym # works in text mode only (produces \Sigma in math mode)
+clock              wasy          28  0 textmode  &#x23F2;        wasysym,amstext,lyxmathsym # works in text mode only (produces \o in math mode)
+lightning          wasy          18  0 textmode  &#x2607;        wasysym,amstext,lyxmathsym # works in text mode only (produces ` in math mode)
+# qt does not display characters at the \t position (0x09)
+pointer            wasy          170  0 textmode &#x21E8;        wasysym,amstext,lyxmathsym # works in text mode only (produces \Psi in math mode)
+RIGHTarrow         wasy          17  0 textmode  &#x25B6;        wasysym,amstext,lyxmathsym # works in text mode only (produces \jmath in math mode)
+LEFTarrow          wasy          16  0 textmode  &#x25C0;        wasysym,amstext,lyxmathsym # works in text mode only (produces \imath in math mode)
+UParrow            wasy          75  0 textmode  &#x25B2;        wasysym,amstext,lyxmathsym # works in text mode only (produces K in math mode)
+DOWNarrow          wasy          76  0 textmode  &#x25BC;        wasysym,amstext,lyxmathsym # works in text mode only (produces L in math mode)
+AC                 wasy          58  0 textmode  &#x223F;        wasysym,amstext,lyxmathsym # works in text mode only
+\def\HF{\approx}                                         wasysym
+VHF                wasy          64  0 x         &#x224B;        # triple tilde
+Square             wasy          50  0 x         &#x25A1;
+\def\CheckedBox{\Square\kern-13.4mu\checked}              wasysym
+XBox               wasy          52  0 x         &#x22A0;
+hexagon            wasy          55  0 x         &#x2B21;
+pentagon           wasy          68  0 x         &#x2B20;
+octagon            wasy          56  0 x         x
+varhexagon         wasy          57  0 x         &#x2B21;
+hexstar            wasy          65  0 x         &#x2736;
+varhexstar         wasy          66  0 x         &#x2736;
+davidsstar         wasy          67  0 x         &#x2721;
+diameter           wasy          31  0 x         &#x2300;
+invdiameter        wasy          21  0 x         x               # 2205 EMPTY SET and 2300 DIAMETER SIGN are similar but not quite right
+varangle           wasy          30  0 x         &#x2222;
+wasylozenge        wasy          53  0 x         &#x2311;
+kreuz              wasy          54  0 x         &#x2720;
+smiley             wasy          44  0 x         &#x263A;
+frownie            wasy          47  0 x         &#x2639;
+blacksmiley        wasy          45  0 x         &#x263B;
+sun                wasy          46  0 x         &#x263C;
+checked            wasy          8   0 x         &#x2713;
+bell               wasy          171 0 x         &#x237E;
+eighthnote         wasy          11  0 x         &#x266E;
+quarternote        wasy          172 0 x         &#x2669;
+halfnote           wasy          174 0 x         &#x1D15E;
+fullnote           wasy          14  0 x         &#x1D15D;
+twonotes           wasy          15  0 x         &#x266B;
+brokenvert         wasy          124 0 x         &#x00A6;
+ataribox           wasy          109 0 x         x
+wasytherefore      wasy          5   0 x         &#x2234;
+Circle             wasy          35  0 x         &#x25CB;
+CIRCLE             wasy          32  0 x         &#x25CF;
+Leftcircle         wasy          73  0 x         x
+LEFTCIRCLE         wasy          71  0 x         &#x25D6;
+Rightcircle        wasy          74  0 x         x
+RIGHTCIRCLE        wasy          72  0 x         &#x25D7;
+\def\LEFTcircle{\LEFTCIRCLE\kern-13.4mu\Circle}             wasysym
+\def\RIGHTcircle{\RIGHTCIRCLE\kern-13.4mu\Circle}           wasysym
+
+# Defined by amsmath.sty
+
+varGamma           cmm         161  0  mathord  &#x1D6E4;       amsmath
+varDelta           cmm         162  0  mathord  &#x1D6E5;       amsmath
+varTheta           cmm         163  0  mathord  &#x1D6E9;       amsmath
+varLambda          cmm         164  0  mathord  &#x1D6EC;       amsmath
+varXi              cmm         165  0  mathord  &#x1D6EF;       amsmath
+varPi              cmm         166  0  mathord  &#x1D6F1;       amsmath
+varSigma           cmm         167  0  mathord  &#x1D6F4;       amsmath
+varUpsilon         cmm         168  0  mathord  &#x1D6F6;       amsmath
+varPhi             cmm         169  0  mathord  &#x1D6F7;       amsmath
+varPsi             cmm         170  0  mathord  &#x1D6F9;       amsmath
+varOmega           cmm         172  0  mathord  &#x1D6FA;       amsmath
 
 #
 # wasy astronomy
@@ -698,11 +778,11 @@ RIGHTCIRCLE        wasy          72  0 x        &#x25D7;
 vernal             wasy          23  0 x        &#x2648;
 ascnode            wasy          19  0 x        &#x260A;
 descnode           wasy          20  0 x        &#x260B;
-fullmoon           wasy          35  0 x        &circ;
+fullmoon           wasy          35  0 x        &#x25CB;
 newmoon            wasy          32  0 x        &#x25CF;
 leftmoon           wasy          36  0 x        &#x263E;
 rightmoon          wasy          37  0 x        &#x263D;
-astrosun           cmsy         175  0 mathbin  &#x2609;
+astrosun           cmsy         175  0 mathbin  &#x2609;        wasysym
 mercury            wasy          39  0 x        &#x263F;
 venus              wasy          25  0 x        &#x2640;
 earth              wasy          38  0 x        &#x2641;
@@ -716,29 +796,29 @@ pluto              wasy          92  0 x        &#x2647;
 #
 # wasy zodiac
 #
-aries              wasy          23  0 x        &#x2648;
-taurus             wasy          93  0 x        &#x2649;
-gemini             wasy          94  0 x        &#x264A;
-cancer             wasy          95  0 x        &#x264B;
-leo                wasy          19  0 x        &#x264C;
-virgo              wasy          96  0 x        &#x264D;
-libra              wasy          97  0 x        &#x264E;
-scorpio            wasy          98  0 x        &#x264F;
-sagittarius        wasy          99  0 x        &#x2650;
-capricornus        wasy          100 0 x        &#x2651;
-aquarius           wasy          101 0 x        &#x2652;
-pisces             wasy          102 0 x        &#x2653;
-conjunction        wasy          86  0 x        &#x260C;
-opposition         wasy          87  0 x        &#x260D;
+aries              wasy          23  0 x         &#x2648;
+taurus             wasy          93  0 x         &#x2649;
+gemini             wasy          94  0 x         &#x264A;
+cancer             wasy          95  0 x         &#x264B;
+leo                wasy          19  0 x         &#x264C;
+virgo              wasy          96  0 x         &#x264D;
+libra              wasy          97  0 x         &#x264E;
+scorpio            wasy          98  0 x         &#x264F;
+sagittarius        wasy          99  0 x         &#x2650;
+capricornus        wasy          100 0 x         &#x2651;
+aquarius           wasy          101 0 x         &#x2652;
+pisces             wasy          102 0 x         &#x2653;
+conjunction        wasy          86  0 textmode  &#x260C;        wasysym,amstext,lyxmathsym # works in text mode only (produces V in math mode)
+opposition         wasy          87  0 textmode  &#x260D;        wasysym,amstext,lyxmathsym # works in text mode only (produces W in math mode)
 # APL characters
-APLstar            wasy          69  0 x        &#x235F;
-APLlog             wasy          22  0 x        x
+APLstar            wasy          69  0 x        x
+APLlog             wasy          22  0 x        &#x235F;
 APLbox             wasy          126 0 x        &#x2395;
 APLup              wasy          0   0 x        x
 APLdown            wasy          70  0 x        x
 APLinput           wasy          125 0 x        x
 APLcomment         wasy          127 0 x        x
-#APLinv     {{\hbox to 0pt{$\div$\hss}\APLbox}}
+\def\APLinv{\mathord{\div\kern-13.9mu\APLbox}}  wasysym
 APLuparrowbox      wasy         110  0 x        &#x2350;
 APLdownarrowbox    wasy         111  0 x        &#x2357;
 APLleftarrowbox    wasy         112  0 x        &#x2347;
@@ -749,39 +829,188 @@ Bowtie             wasy          49  0 x        &#x22C8;
 leftturn           wasy          34  0 x        &#x27F2;
 rightturn          wasy          33  0 x        &#x27F3;
 # diagrams
-#photon             wasy          58\char58\char58\char58}}
-#gluon              wasy          81\char80\char80\char80%
-#char80\char80\char80\char82}}
+\def\photon{\AC\AC\AC\AC}     wasysym
+lyxgluonelement    wasy          80  0 x        x               hiddensymbol
+lyxgluonbelement   wasy          81  0 x        x               hiddensymbol
+lyxgluoneelement   wasy          82  0 x        x               hiddensymbol
+\def\gluon{\lyxgluonbelement\lyxgluonelement\lyxgluonelement\lyxgluonelement\lyxgluonelement\lyxgluonelement\lyxgluonelement\lyxgluoneelement} wasysym
 # special characters
-cent               wasy         103   0 x        &#00A2;
-permil             wasy         104   0 x        &#x2030;
-agemO              wasy          48   0 x        &mho;
-thorn              wasy         105   0 x        &#x00FE;
-Thorn              wasy         106   0 x        &#x00DE;
-openo              wasy         108   0 x        &#x0254;
-inve               wasy          85   0 x        &#x0259;
-
-mho               wasy          48    0  mathord &mho;
-#Join              wasy          49    0  mathrel x
-#Box               wasy          50    0  mathord x
-#Diamond           wasy          51    0  mathord x
-leadsto            wasy          59    0  mathrel &#x2933;
-sqsubset          wasy          60    0  mathrel &sqsub;
-sqsupset          wasy          61    0  mathrel &sqsup;
-#lhd               wasy           1    0  mathbin x
-#unlhd             wasy           2    0  mathbin x
-LHD                wasy          16    0  mathbin &#x2C50;
-#rhd               wasy           3    0  mathbin x
-#unrhd             wasy           4    0  mathbin x
-RHD                wasy          17    0  mathbin &#x25B6;
-apprle             wasy          62    0  mathrel &lsim;
-apprge             wasy          63    0  mathrel &gsim;
-wasypropto         wasy          29    0  mathrel &prop;
-invneg             wasy          24    0  mathrel &#x2310;
-ocircle            wasy          35    0  mathbin &#x229A;
-logof              wasy          22    0  mathrel x
-varint             wasy         114    0  mathop  &int;
-varoint            wasy         117    0  mathop  &int;
+cent               wasy         103   0 x          &#00A2;
+permil             wasy         104   0 x          &#x2030;
+agemO              wasy          48   0 textmode   &#x2127;        wasysym,amstext,lyxmathsym # works in text mode only (produces 0 in math mode)
+thorn              wasy         105   0 textmode   &#x00FE;        wasysym,amstext,lyxmathsym # works in text mode only (produces i in math mode)
+Thorn              wasy         106   0 textmode   &#x00DE;        wasysym,amstext,lyxmathsym # works in text mode only (produces j in math mode)
+openo              wasy         108   0 textmode   &#x0254;        wasysym,amstext,lyxmathsym # works in text mode only (produces l in math mode)
+inve               wasy          85   0 textmode   &#x0259;        wasysym,amstext,lyxmathsym # works in text mode only (produces U in math mode)
+
+#mho               wasy          48    0  mathord  &#x2127;        wasysym # already in amsfonts
+#Join              wasy          49    0  mathrel  &#x22C8;        wasysym # already in amsfonts
+#Box               wasy          50    0  mathord  &#x25A1;        wasysym # already in amsfonts
+#Diamond           wasy          51    0  mathord  &#x22C4;        wasysym # already in amsfonts
+leadsto            wasy          59    0  mathrel  &#x2933;
+#sqsubset          wasy          60    0  mathrel  &#x228F;        wasysym # already in amsfonts
+#sqsupset          wasy          61    0  mathrel  &#x2290;        wasysym # already in amsfonts
+#lhd               wasy           1    0  mathbin  &#x25C3;        wasysym # already in amsfonts
+#unlhd             wasy           2    0  mathbin  &#x22B4;        wasysym # already in amsfonts
+LHD                wasy          16    0  mathbin  &#x2C50;
+#rhd               wasy           3    0  mathbin  &#x25B9;        wasysym # already in amsfonts
+#unrhd             wasy           4    0  mathbin  &#x22B5;        wasysym # already in amsfonts
+RHD                wasy          17    0  mathbin  &#x25B6;
+apprle             wasy          62    0  mathrel  &#x2272;
+apprge             wasy          63    0  mathrel  &#x2273;
+wasypropto         wasy          29    0  mathrel  &#x221D;
+invneg             wasy          24    0  mathrel  &#x2310;
+ocircle            wasy          35    0  mathbin  &#x229A;
+logof              wasy          22    0  mathrel  x
+varint             wasy     114|119    0  mathop   &#x222B;
+varoint            wasy     117|122    0  mathop   &#x222B;
+
+# Generated from stmaryrd.sty
+
+shortleftarrow     stmry   0   0 mathrel    x  stmaryrd
+shortrightarrow    stmry   1   0 mathrel    x  stmaryrd
+shortuparrow       stmry   2   0 mathrel    x  stmaryrd
+shortdownarrow     stmry   3   0 mathrel    x  stmaryrd
+Yup                stmry   4   0 mathbin    x  stmaryrd
+Ydown              stmry   5   0 mathbin    x  stmaryrd
+Yleft              stmry   6   0 mathbin    x  stmaryrd
+Yright             stmry   7   0 mathbin    x  stmaryrd
+varcurlyvee        stmry   8   0 mathbin    x  stmaryrd
+# qt does not display characters at codepoints 9, 10,12,13
+# therefore our copies of the TeX fonts have duplicate glyphs after 170
+varcurlywedge      stmry 170   0 mathbin    x  stmaryrd
+minuso             stmry 171   0 mathbin    x  stmaryrd
+baro               stmry  11   0 mathbin    x  stmaryrd
+sslash             stmry 172   0 mathbin    x  stmaryrd
+#for whatever reason qt refuses to display anything at position 173
+bbslash            stmry 174   0 mathbin    x  stmaryrd
+moo                stmry  14   0 mathbin    x  stmaryrd
+varotimes          stmry  15   0 mathbin    x  stmaryrd
+varoast            stmry  16   0 mathbin    x  stmaryrd
+varobar            stmry  17   0 mathbin    x  stmaryrd
+varodot            stmry  18   0 mathbin    x  stmaryrd
+varoslash          stmry  19   0 mathbin    x  stmaryrd
+varobslash         stmry  20   0 mathbin    x  stmaryrd
+varocircle         stmry  21   0 mathbin    x  stmaryrd
+varoplus           stmry  22   0 mathbin    x  stmaryrd
+varominus          stmry  23   0 mathbin    x  stmaryrd
+boxast             stmry  24   0 mathbin    x  stmaryrd
+boxbar             stmry  25   0 mathbin    x  stmaryrd
+#boxdot             stmry  26   0 mathbin    x  stmaryrd # already in amssymb
+boxslash           stmry  27   0 mathbin    x  stmaryrd
+boxbslash          stmry  28   0 mathbin    x  stmaryrd
+boxcircle          stmry  29   0 mathbin    x  stmaryrd
+boxbox             stmry  30   0 mathbin    x  stmaryrd
+boxempty           stmry  31   0 mathbin    x  stmaryrd
+#lightning          stmry  32   0 mathord    x  stmaryrd # already in wasy
+merge              stmry  33   0 mathbin    x  stmaryrd
+vartimes           stmry  34   0 mathbin    x  stmaryrd
+fatsemi            stmry  35   0 mathbin    x  stmaryrd
+sswarrow           stmry  36   0 mathrel    x  stmaryrd
+ssearrow           stmry  37   0 mathrel    x  stmaryrd
+curlywedgeuparrow  stmry  38   0 mathrel    x  stmaryrd
+curlywedgedownarrow stmry 39   0 mathrel    x  stmaryrd
+fatslash           stmry  40   0 mathbin    x  stmaryrd
+fatbslash          stmry  41   0 mathbin    x  stmaryrd
+lbag               stmry  42   0 mathbin    x  stmaryrd
+rbag               stmry  43   0 mathbin    x  stmaryrd
+varbigcirc         stmry  44   0 mathbin    x  stmaryrd
+leftrightarroweq   stmry  45   0 mathrel    x  stmaryrd
+curlyveedownarrow  stmry  46   0 mathrel    x  stmaryrd
+curlyveeuparrow    stmry  47   0 mathrel    x  stmaryrd
+nnwarrow           stmry  48   0 mathrel    x  stmaryrd
+nnearrow           stmry  49   0 mathrel    x  stmaryrd
+leftslice          stmry  50   0 mathbin    x  stmaryrd
+rightslice         stmry  51   0 mathbin    x  stmaryrd
+varolessthan       stmry  52   0 mathbin    x  stmaryrd
+varogreaterthan    stmry  53   0 mathbin    x  stmaryrd
+varovee            stmry  54   0 mathbin    x  stmaryrd
+varowedge          stmry  55   0 mathbin    x  stmaryrd
+talloblong         stmry  56   0 mathbin    x  stmaryrd
+interleave         stmry  57   0 mathbin    x  stmaryrd
+obar               stmry  58   0 mathbin    x  stmaryrd
+obslash            stmry  59   0 mathbin    x  stmaryrd
+olessthan          stmry  60   0 mathbin    x  stmaryrd
+ogreaterthan       stmry  61   0 mathbin    x  stmaryrd
+ovee               stmry  62   0 mathbin    x  stmaryrd
+owedge             stmry  63   0 mathbin    x  stmaryrd
+oblong             stmry  64   0 mathbin    x  stmaryrd
+inplus             stmry  65   0 mathrel    x  stmaryrd
+niplus             stmry  66   0 mathrel    x  stmaryrd
+nplus              stmry  67   0 mathbin    x  stmaryrd
+subsetplus         stmry  68   0 mathrel    x  stmaryrd
+supsetplus         stmry  69   0 mathrel    x  stmaryrd
+subsetpluseq       stmry  70   0 mathrel    x  stmaryrd
+supsetpluseq       stmry  71   0 mathrel    x  stmaryrd
+Lbag               stmry  72   0 mathopen   x  stmaryrd
+Rbag               stmry  73   0 mathclose  x  stmaryrd
+llbracket          stmry  74   0 mathopen   x  stmaryrd
+rrbracket          stmry  75   0 mathclose  x  stmaryrd
+llparenthesis      stmry  76   0 mathopen   x  stmaryrd
+rrparenthesis      stmry  77   0 mathclose  x  stmaryrd
+binampersand       stmry  78   0 mathopen   x  stmaryrd
+bindnasrepma       stmry  79   0 mathclose  x  stmaryrd
+trianglelefteqslant stmry 80   0 mathrel    x  stmaryrd
+trianglerighteqslant stmry 81  0 mathrel    x  stmaryrd
+ntrianglelefteqslant stmry 82  0 mathrel    x  stmaryrd
+ntrianglerighteqslant stmry 83 0 mathrel    x  stmaryrd
+llfloor            stmry  84   0 mathopen   x  stmaryrd
+rrfloor            stmry  85   0 mathclose  x  stmaryrd
+llceil             stmry  86   0 mathopen   x  stmaryrd
+rrceil             stmry  87   0 mathclose  x  stmaryrd
+lyxarrownot        stmry  88   0 mathrel    x  hiddensymbol #see arrownot defined below
+lyxArrownot        stmry  89   0 mathrel    x  hiddensymbol #see Arrownot defined below
+Mapstochar         stmry  90   0 mathrel    x  stmaryrd
+mapsfromchar       stmry  91   0 mathrel    x  stmaryrd
+Mapsfromchar       stmry  92   0 mathrel    x  stmaryrd
+leftrightarrowtriangle stmry 93 0 mathrel   x  stmaryrd
+leftarrowtriangle  stmry  94   0 mathrel    x  stmaryrd
+rightarrowtriangle stmry  95   0 mathrel    x  stmaryrd
+#bigtriangledown    stmry  96   0 mathop     x  stmaryrd #already in cmsy
+#bigtriangleup      stmry  97   0 mathop     x  stmaryrd #already in cmsy
+bigcurlyvee        stmry  98|106   0 mathop   x  stmaryrd
+bigcurlywedge      stmry  99|107   0 mathop   x  stmaryrd
+bigsqcap           stmry 100|108   0 mathop   x  stmaryrd
+bigbox             stmry 101|109   0 mathop   x  stmaryrd
+bigparallel        stmry 102|110   0 mathop   x  stmaryrd
+biginterleave      stmry 103|111   0 mathop   x  stmaryrd
+#hugetriangledown   stmry 104       0 mathop   x  stmaryrd # only in the font, not the .sty
+#hugetriangleup     stmry 105   0 mathop     x  stmaryrd # only in the font, not the .sty
+#hugecurlyvee       stmry 106   0 mathop     x  stmaryrd # only in the font, not the .sty
+#hugecurlywedge     stmry 107   0 mathop     x  stmaryrd # only in the font, not the .sty
+#hugesqcap          stmry 108   0 mathop     x  stmaryrd # only in the font, not the .sty
+#hugebox            stmry 109   0 mathop     x  stmaryrd # only in the font, not the .sty
+#hugeparallel       stmry 110   0 mathop     x  stmaryrd # only in the font, not the .sty
+#hugeinterleave     stmry 111   0 mathop     x  stmaryrd # only in the font, not the .sty
+bignplus           stmry 112|120   0 mathop  x  stmaryrd # caution: named hugenplus in the font
+#largellbracket     stmry 113   0 mathopen   x  stmaryrd # only in the font, not the .sty
+#Largellbracket     stmry 114   0 mathopen   x  stmaryrd # only in the font, not the .sty
+#LARGEllbracket     stmry 115   0 mathopen   x  stmaryrd # only in the font, not the .sty
+#hugellbracket      stmry 116   0 mathopen   x  stmaryrd # only in the font, not the .sty
+#Largellbrackettop  stmry 117   0 mathopen   x  stmaryrd # only in the font, not the .sty
+#Largellbracketbot  stmry 118   0 mathopen   x  stmaryrd # only in the font, not the .sty caution: named Hugellbrackettop in the font
+#llbracketex        stmry 119   0 mathopen   x  stmaryrd # only in the font, not the .sty caution: named Hugellbracketbot in the font
+#hugenplus          stmry 120   0 mathop     x  stmaryrd # only in the font, not the .sty caution: named Hugenplus in the font
+#largerrbracket     stmry 121   0 mathclose  x  stmaryrd # only in the font, not the .sty
+#Largerrbracket     stmry 122   0 mathclose  x  stmaryrd # only in the font, not the .sty
+#LARGErrbracket     stmry 123   0 mathclose  x  stmaryrd # only in the font, not the .sty
+#hugerrbracket      stmry 124   0 mathclose  x  stmaryrd # only in the font, not the .sty
+#Largerrbrackettop  stmry 125   0 mathclose  x  stmaryrd # only in the font, not the .sty caution: named Hugerrbrackettop in the font
+#Largerrbracketbot  stmry 126   0 mathclose  x  stmaryrd # only in the font, not the .sty caution: named Hugerrbracketbot in the font
+#rrbracketex        stmry 127   0 mathclose  x  stmaryrd # only in the font, not the .sty caution: named Hugerrbracketex in the font
+
+\def\varcopyright{\mathord{c\kern-11mu\varbigcirc}}         stmaryrd
+# kerning is slightly imperfect so that one sees when \[Aa]rrownot is selected
+\def\arrownot{\lyxarrownot}                                 stmaryrd
+\def\Arrownot{\lyxArrownot\mathrel{\kern0.5mu}}             stmaryrd
+\def\longarrownot{\mathrel{\kern5.5mu}\arrownot\mathrel{\kern-5.5mu}} stmaryrd
+\def\Longarrownot{\mathrel{\kern5.5mu}\Arrownot\mathrel{\kern-5.5mu}} stmaryrd
+\def\Mapsto{\Mapstochar\mathrel\Rightarrow}              mathrel &#x2907; stmaryrd
+\def\mapsfrom{\leftarrow\kern-9mu\mapsfromchar}          mathrel &#x21a4; stmaryrd
+\def\Mapsfrom{\Leftarrow\kern-9mu\Mapsfromchar}          mathrel &#x2906; stmaryrd
+\def\Longmapsto{\Mapstochar\Longrightarrow}              mathrel &#x27fe; stmaryrd
+\def\longmapsfrom{\longleftarrow\mapsfromchar}           mathrel &#x27fb; stmaryrd
+\def\Longmapsfrom{\Longleftarrow\mathrel{\kern1mu}\Mapsfromchar}   mathrel &#x27fd; stmaryrd
 
 # symbols from the mhchem package, all of them are equivalent to a math symbol
 # mhchem is not loaded because these commands can only be used inside
@@ -799,78 +1028,64 @@ tbond              cmsy        180 186 mathord  x
 # Note that we do _not_ require the wasysym package for any integral besides
 # \varint and \varoint. The reason is that the integrals of the wasysym
 # package do not match the standard \int and \intop. See
-# http://bugzilla.lyx.org/show_bug.cgi?id=1942 for details.
+# http://www.lyx.org/trac/ticket/1942 for details.
 # If the wasysym integrals are really wanted then one has to load the package
 # manually and disable automatic loading of amsmath and esint.
 iffont esint
-int                esint        001    0  mathop  &int;  esint
-intop              esint        001    0  mathop  &int;  esint
-iint               esint        003    0  mathop  &Int;      esintoramsmath
-iintop             esint        003    0  mathop  &Int;      esint
-iiint              esint        005    0  mathop  &tint;      esintoramsmath
-
-iiintop            esint        005    0  mathop  &tint;      esint
-iiiint             esint        007    0  mathop  &qint;      esintoramsmath
-
-iiiintop           esint        007    0  mathop  &qint;      esint
-oint               esint        011    0  mathop  &conint;      esint
-
-ointop             esint        011    0  mathop  &conint;      esint
-oiint              esint        013    0  mathop  &Conint;      esint
-oiintop            esint        013    0  mathop  &Conint;      esint
-sqint              esint        015    0  mathop  x      esint
-sqintop            esint        015    0  mathop  x      esint
-sqiint             esint        017    0  mathop  x      esint
-sqiintop           esint        017    0  mathop  x      esint
-dotsint            esint        019    0  mathop  &int;&ctdot;&int;      esint
-dotsintop          esint        019    0  mathop  &int;&ctdot;&int;      esint
-ointctrclockwise   esint        023    0  mathop  &awconint;      esint
-ointctrclockwiseop esint        023    0  mathop  &awconint;      esint
-ointclockwise      esint        025    0  mathop  &cwconint;      esint
-ointclockwiseop    esint        025    0  mathop  &cwconint;      esint
+intop              esint    001|002    0  mathop  &#x222B;        esint
+iintop             esint    003|004    0  mathop  &#x222C;        esint
+iiintop            esint    005|006    0  mathop  &#x222D;        esint
+iiiintop           esint    007|008    0  mathop  &#x2A0C;        esint
+#9 codepoint forbidden in qt4, 10,12,13 in qt5
+ointop             esint    043|044    0  mathop  &#x222E;        esint
+oiintop            esint    045|046    0  mathop  &#x222F;        esint
+sqintop            esint    015|016    0  mathop  &#x2A16;        esint
+sqiintop           esint    017|018    0  mathop  x             esint
+dotsintop          esint    041|042    0  mathop  &#x222B;&#x22EF;&#x222B;    esint
+ointctrclockwiseop esint    023|024    0  mathop  &#x2233;        esint
+ointclockwiseop    esint    025|026    0  mathop  &#x2232;        esint
 else
-int                cmex          82  242  mathop  &int;  esint
-intop              cmex          82  242  mathop  &int;  esint
-iint               wasy         115    0  mathop  &Int;      esintoramsmath
-iintop             wasy         115    0  mathop  &Int      esint
-iiint              wasy         116    0  mathop  &tint;      esintoramsmath
-
-iiintop            wasy         116    0  mathop  &tint;      esint
-\def\iiiint{\int\kern-6mu\int\kern-6mu\int\kern-6mu\int}        esintoramsmath
+intop              cmex       82|90  242  mathop  &#x222B;        esint
+iintop             wasy     115|120    0  mathop  &#x222C;        esint
+iiintop            wasy     116|121    0  mathop  &#x222D;        esint
 \def\iiiintop{\int\kern-6mu\int\kern-6mu\int\kern-6mu\int}      esint
-\def\dotsint{\int\kern-3mu\cdots\kern-3mu\int}                  esint
-\def\dotsintop{\int\kern-3mu\cdots\kern-3mu\int}                esint
-oint               cmex          72    0  mathop  &conint;      esint
-
-ointop             cmex          72    0  mathop  &conint;      esint
-oiint              wasy         118    0  mathop  &Conint;      esint
-oiintop            wasy         118    0  mathop  &Conint;      esint
-\def\sqint{\square\kern-17mu\int\kern6mu}                       esint
+ointop             cmex       72|73    0  mathop  &#x222E;        esint
+oiintop            wasy     118|123    0  mathop  &#x222F;        esint
 \def\sqintop{\square\kern-17mu\int\kern6mu}                     esint
-\def\sqiint{\square\kern-20mu\iint\kern3mu}                     esint
 \def\sqiintop{\square\kern-20mu\iint\kern3mu}                   esint
-\def\ointctrclockwise{\circlearrowleft\kern-21mu\int\kern6mu}   esint
+\def\dotsintop{\int\kern-3mu\cdots\kern-3mu\int}                esint
 \def\ointctrclockwiseop{\circlearrowleft\kern-21mu\int\kern6mu} esint
-\def\ointclockwise{\circlearrowright\kern-21mu\int\kern6mu}     esint
 \def\ointclockwiseop{\circlearrowright\kern-21mu\int\kern6mu}   esint
 endif
+\def\int{\intop\nolimits}           mathop  &#x222B;        esint|amsmath
+\def\iint{\iintop\nolimits}         mathop  &#x222C;        esint|amsmath
+\def\iiint{\iiintop\nolimits}       mathop  &#x222D;        esint|amsmath
+\def\iiiint{\iiiintop\nolimits}     mathop  &#x2A0C;        esint|amsmath
+\def\oint{\ointop\nolimits}         mathop  &#x222E;        esint
+\def\oiint{\oiintop\nolimits}       mathop  &#x222F;        esint
+\def\sqint{\sqintop\nolimits}       mathop  &#x2A16;        esint
+\def\sqiint{\sqiintop\nolimits}     mathop  esint
+\def\dotsint{\dotsintop\nolimits}   mathop  &#x222B;&#x22EF;&#x222B;        esint
+\def\ointctrclockwise{\ointctrclockwiseop\nolimits} mathop  &#x2232;        esint
+\def\ointclockwise{\ointclockwiseop\nolimits}       mathop  &#x2232;        esint
+
+varointclockwiseop esint    027|028    0  mathop  &#x2232;        esint
+varointctrclockwiseop esint 029|030    0  mathop  &#x2233;        esint
+fintop             esint    031|032    0  mathop  &#x2a0f;        esint
+varoiintop         esint    033|034    0  mathop  &#x222F;        esint
+landupintop        esint    035|036    0  mathop  x               esint
+landdownintop      esint    037|038    0  mathop  x               esint
 
-varointclockwise   esint        027    0  mathop  &cwconint;      esint
-varointclockwiseop esint        027    0  mathop  &cwconint;      esint
-varointctrclockwise esint       029    0  mathop  &awconint;      esint
-varointctrclockwiseop esint     029    0  mathop  &awconint;      esint
-fint               esint        031    0  mathop  &#x2a0f;      esint
-fintop             esint        031    0  mathop  &#x2a0f;      esint
-varoiint           esint        033    0  mathop  &Conint;      esint
-varoiintop         esint        033    0  mathop  &Conint;      esint
-landupint          esint        035    0  mathop  x      esint
-landupintop        esint        035    0  mathop  x      esint
-landdownint        esint        037    0  mathop  x      esint
-landdownintop      esint        037    0  mathop  x      esint
+\def\varointclockwise{\varointclockwiseop\nolimits}       mathop  &#x2232;        esint
+\def\varointctrclockwise{\varointctrclockwiseop\nolimits} mathop  &#x2233;        esint
+\def\fint{\fintop\nolimits}                mathop  &#x2a0f;        esint
+\def\varoiint{\varoiintop\nolimits}        mathop  &#x222F;        esint
+\def\landupint{\landupintop\nolimits}      mathop  x               esint
+\def\landdownint{\landdownintop\nolimits}  mathop  x               esint
 
 
 # From the amsmath package:
-\def\idotsint{\int\kern-3mu\cdots\kern-3mu\int}               amsmath
+\def\idotsint{\int\kern-3mu\cdots\kern-3mu\int\limits}                 amsmath
 
 
 log                lyxblacktext  0   0 func     x
@@ -905,64 +1120,844 @@ exp                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
-pmod               lyxblacktext  0   0 func     x
 
 
+#
+# Modulo notation
+#
+
+# the original definitions have spacing differences between display/inline/script,
+# but we cannot reproduce that here
+\def\bmod{\mkern1mu\mathbin{\textrm{mod}}\mkern1mu}
+\def\pmod#1{\mkern18mu(\textrm{mod}\mkern6mu#1)}
+\def\pod#1{\mkern18mu(#1)} amsmath
+\def\mod#1{\mkern12mu\textrm{mod}\mkern6mu#1} amsmath
+
+# mathtools.sty
+vcentcolon         cmr          58  58    mathrel :          mathtools
+ordinarycolon      cmr          58  58    mathrel :          mathtools
+\def\bigtimes{\mathop{\diagup\kern-16mu\diagdown}} mathtools
+\def\dblcolon{\vcentcolon\mathrel{\kern-0.9mu}\vcentcolon}      mathrel ::          mathtools
+\def\coloneqq{\vcentcolon\mathrel{\kern-1.2mu}=}                mathrel &#x2254;    mathtools
+\def\Coloneqq{\dblcolon\mathrel{\kern-1.2mu}=}                  mathrel &#x2A74;    mathtools
+\def\coloneq{\vcentcolon\mathrel{\kern-1.2mu}\mathrel{-}}       mathrel :-          mathtools
+\def\Coloneq{\dblcolon\mathrel{\kern-1.2mu}\mathrel{-}}         mathrel ::-         mathtools
+\def\eqqcolon{=\mathrel{\kern-1.2mu}\vcentcolon}                mathrel &#x2255;    mathtools
+\def\Eqqcolon{=\mathrel{\kern-1.2mu}\dblcolon}                  mathrel =::         mathtools
+\def\eqcolon{\mathrel{-}\mathrel{\kern-1.2mu}\vcentcolon}       mathrel -:          mathtools
+\def\Eqcolon{\mathrel{-}\mathrel{\kern-1.2mu}\dblcolon}         mathrel -::         mathtools
+\def\colonapprox{\vcentcolon\mathrel{\kern-1.2mu}\approx}       mathrel :&#x2248;   mathtools
+\def\Colonapprox{\dblcolon\mathrel{\kern-1.2mu}\approx}         mathrel ::&#x2248;  mathtools
+\def\colonsim{\vcentcolon\mathrel{\kern-1.2mu}\sim}             mathrel :&#x223C;   mathtools
+\def\Colonsim{\dblcolon\mathrel{\kern-1.2mu}\sim}               mathrel ::&#x223C;  mathtools
+
 
 #
 # pre-defined macros
 #
 
-\def\neq{\not=}
-\def\ne{\not=}
-\def\notin{\not\in}
-\def\slash{/}
+\def\leq{\le}                                                   mathrel &#x2264;
+\def\geq{\ge}                                                   mathrel &#x2265;
+\def\neq{\not=}                                                 mathrel &#x2260;
+\def\ne{\not=}                                                  mathrel &#x2260;
+\def\lnot{\neg}                                                 mathord &#xAC;
+\def\notin{\not\in}                                             mathrel &#x2209;
+
+\def\ddag{\ddagger}                                             mathbin &#x2021;
+\def\dag{\dagger}                                               mathbin &#x2020;
 
-\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}{=}}
+\def\joinrel{\mathrel{\kern-3mu}}
+\def\relbar{\lyxbar}
+\def\Relbar{\mathrel{=}}
+\def\longleftrightarrow{\leftarrow\joinrel\rightarrow}          mathrel &#x27f7;
+\def\Longleftrightarrow{\Leftarrow\joinrel\Rightarrow}          mathrel &#x27fa;
+\def\iff{\Leftarrow\joinrel\Rightarrow}                         mathrel &#x27fa;
+\def\doteq{\stackrel{\cdot}{=}}                                 mathrel &#x2250;
 
 iffont cmsy
-\def\longrightarrow{\lyxbar\kern-11mu\rightarrow}
-\def\longleftarrow{\leftarrow\kern-11mu\lyxbar}
-\def\Longrightarrow{\lyxeq\kern-9.5mu\Rightarrow}
-\def\Longleftarrow{\Leftarrow\kern-9.5mu\lyxeq}
-\def\implies{\Longrightarrow}                                     amsmath
-\def\mapsto{\mapstochar\kern-9mu\rightarrow}
-\def\longmapsto{\mapstochar\kern-6mu\lyxbar\kern-11mu\rightarrow}
-\def\models{\vert\kern-7mu\lyxeq}
+\def\longrightarrow{\relbar\joinrel\rightarrow}                 mathrel &#x27F6;
+\def\longleftarrow{\leftarrow\joinrel\relbar}                   mathrel &#x27F5;
+\def\Longrightarrow{\Relbar\joinrel\Rightarrow}                 mathrel &#x27F9;
+\def\Longleftarrow{\Leftarrow\joinrel\Relbar}                   mathrel &#x27F8;
+\def\implies{\Longrightarrow}                                   mathrel &#x27F9;    amsmath
+\def\impliedby{\Longleftarrow}                                  mathrel &#x27F8;    amsmath
+\def\mapsto{\mapstochar\rightarrow}                             mathrel &#x21A4;
+\def\longmapsto{\mapstochar\joinrel\relbar\joinrel\rightarrow}  mathrel &#x27FB;
+\def\models{\mathrel{\vert}\joinrel\Relbar}                     mathrel &#x22A8;
+else
+\def\implies{=>}                                                mathrel &#x27F9;    amsmath
+\def\impliedby{<=}                                              mathrel &#x27F8;    amsmath
 endif
 iffont cmm
-\def\hookrightarrow{\lhook\kern-12mu\rightarrow}
-\def\hookleftarrow{\leftarrow\kern-12mu\rhook}
-\def\bowtie{\triangleright\kern-6mu\triangleleft}
+\def\hookrightarrow{\lhook\joinrel\rightarrow}                  mathrel &#x21AA;
+\def\hookleftarrow{\leftarrow\joinrel\rhook}                    mathrel &#x21A9;
+\def\bowtie{\mathrel\triangleright\joinrel\mathrel\triangleleft} mathrel&#x22C8;
 endif
 iffont msa
-\def\dashrightarrow{\lyxdabar\lyxdabar\lyxright}
-\def\dashleftarrow{\lyxleft\lyxdabar\lyxdabar}
-\def\dasharrow{\dashrightarrow}
+\def\dashrightarrow{\mathrel{\lyxdabar\lyxdabar\lyxright}}      mathrel &#x290F;    amssymb
+\def\dashleftarrow{\mathrel{\lyxleft\lyxdabar\lyxdabar}}        mathrel &#x290E;    amssymb
+else
+\def\dashrightarrow{- - \rightarrow}                            mathrel &#x290F;    amssymb
+\def\dashleftarrow{\leftarrow{} - -}                            mathrel &#x290E;    amssymb
 endif
+\def\dasharrow{\dashrightarrow}                                 mathrel &#x290F;    amssymb
 iffont msb
-\def\Join{\ltimes\kern-18.5mu\rtimes}
+\def\Join{\mathrel{\ltimes\kern-13.5mu\rtimes}}                 mathrel &#x2a1d;    amssymb
+else
+\def\Join{|x|}                                                  mathrel &#x2a1d;    amssymb
 endif
-# Fixme: latin-1 chars in text file
-\def\AA{\AA}{Å}
-\def\O{\O}{Ø}
+\def\AA{\AA}{\text{Å}} textmode  &#x00C5;    amstext,lyxmathsym
+\def\O{\O}{\text{Ø}}   textmode  &#x00D8;    amstext,lyxmathsym
 
 iffont cmsy
 # The \sim is placed too high...
-\def\cong{\stackrel{_\sim}{=}}
-lyxsurd               cmsy        112 0 mathord  &radic;
-\def\surd{^\lyxsurd}
-\def\textdegree{\kern-1mu^{\circ}\kern-4mu}
+\def\cong{\stackrel{\sim}{=}}                                   mathrel  &#x2245;
+lyxsurd               cmsy        112 0 mathord  &#x221A;
+\def\surd{^\lyxsurd}                                            mathord  &#x221A;
+\def\textdegree{\text{°}} textmode ° textcomp,amstext,lyxmathsym
 else
-cong               lyxsymbol             64  0 mathrel  &cong;
-surd               lyxsymbol             214 0 mathord  &radic;
-textdegree         lyxsymbol             176 0 mathord  &deg;
+# FIXME: These don't work on OS X, since the Symbol font uses a different
+#        encoding and is therefore disabled in FontLoader::available().
+cong               lyxsymbol             64  0 mathrel  &#x2245;
+surd               lyxsymbol             214 0 mathord  &#x221A;
+textdegree         lyxsymbol             176 0 mathord  &#x00B0;    textcomp,amstext,lyxmathsym
 endif
 
 #"{\hat{}}
 
 
+# HEP Particles. The code below is extracted from the hepparticles
+# package by Andy Buckley.
+#    https://www.ctan.org/pkg/hepparticles
+# It has been simplified and is only intended for display purposes inside LyX.
+
+
+\def\HepParticle#1#2#3{\mathrm{#1{}_{#2}^{#3}}} hepparticles
+\def\HepAntiParticle#1#2#3{\mathrm{\overline{#1}{}_{#2}^{#3}}} hepparticles
+
+\def\HepGenParticle#1#2#3{\mathit{#1{}_{\kern-3mu#2}^{\kern-1mu#3}}} hepparticles
+\def\HepGenAntiParticle#1#2#3{\mathit{\overline{#1}{}_{\kern-2mu#2}^{#3}}} hepparticles
+
+\def\HepSusyParticle#1#2#3{\mathrm{\widetilde{#1}{}_{#2}^{#3}}} hepparticles
+\def\HepGenSusyParticle#1#2#3{\mathit{\mkern2mu\widetilde{\mkern-2mu#1}{}_{\kern-2.5mu#2}^{\kern-0.5mu#3}}} hepparticles
+\def\HepSusyAntiParticle#1#2#3{\mathrm{\overline{\widetilde{#1}}{}_{#2}^{#3}}} hepparticles
+\def\HepGenSusyAntiParticle#1#2#3{\mathit{\mkern3.5mu\overline{\mkern-3.5mu\mkern2mu\widetilde{\mkern-2mu#1}}{}_{\kern-4mu#2}^{\kern-2mu#3}}} hepparticles
+
+\def\HepResonanceMassTerm#1#2#3{\mathrm{\left(#1\right){}_{#2}^{#3}}} hepparticles
+\def\HepResonanceSpecTerm#1#2#3{\mathrm{#1{}_{#2}^{#3}}} hepparticles
+\def\HepParticleResonance#1#2#3#4{#1\HepResonanceMassTerm#2#3#4} hepparticles
+\def\HepParticleResonanceFormal#1#2#3#4#5#6#7{\HepParticleResonance#1#2#3#4\,\HepResonanceSpecTerm#5#6#7} hepparticles
+\def\HepParticleResonanceFull#1#2#3#4#5#6{\HepParticleResonance{\HepParticle#1#2#3}#4#5#6} hepparticles
+\def\HepParticleResonanceFormalFull#1#2#3#4#5#6#7#8#9{\HepParticleResonanceFormal{\HepParticle#1#2#3}#4#5#6#7#8#9} hepparticles
+\def\HepProcess#1{#1} hepparticles
+
+
+#
+# Particle PEN Names (see hepnames package on CTAN)
+#
+
+## B mesons
+\def\PB{\HepParticle{B}{}{}} hepnames
+\def\PBpm{\HepParticle{B}{}{\pm}} hepnames
+\def\PBmp{\HepParticle{B}{}{\mp}} hepnames
+\def\PBp{\HepParticle{B}{}{+}} hepnames
+\def\PBm{\HepParticle{B}{}{-}} hepnames
+\def\PBz{\HepParticle{B}{}{0}} hepnames
+\def\PBst{\HepParticle{B}{}{\ast}} hepnames
+\def\PdB{\HepParticle{B}{\Pqd}{0}} hepnames
+\def\PuB{\HepParticle{B}{}{+}} hepnames
+\def\PcB{\HepParticle{B}{\Pqc}{+}} hepnames
+\def\PsB{\HepParticle{B}{\Pqs}{0}} hepnames
+\def\PaB{\HepAntiParticle{B}{}{}} hepnames
+\def\PaBz{\HepAntiParticle{B}{}{0}} hepnames
+\def\PadB{\HepAntiParticle{B}{\Pqd}{0}} hepnames
+\def\PauB{\HepParticle{B}{}{-}} hepnames
+\def\PacB{\HepParticle{B}{\Pqc}{-}} hepnames
+\def\PasB{\HepAntiParticle{B}{\Pqs}{0}} hepnames
+
+## Kaons
+\def\PK{\HepParticle{K}{}{}} hepnames
+\def\PKpm{\HepParticle{K}{}{\pm}} hepnames
+\def\PKmp{\HepParticle{K}{}{\mp}} hepnames
+\def\PKm{\HepParticle{K}{}{-}} hepnames
+\def\PKp{\HepParticle{K}{}{+}} hepnames
+\def\PKz{\HepParticle{K}{}{0}} hepnames
+\def\PKzL{\HepParticle{K}{L}{0}} hepnames
+\def\PKzS{\HepParticle{K}{S}{0}} hepnames
+\def\PKst{\HepParticle{K}{}{\ast}} hepnames
+\def\PaK{\HepAntiParticle{K}{}{}} hepnames
+\def\PaKz{\HepAntiParticle{K}{}{0}} hepnames
+\def\PKeiii{\HepParticle{K}{e3}{}} hepnames
+\def\PKgmiii{\HepParticle{K}{\mu3}{}} hepnames
+\def\PKzeiii{\HepParticle{K}{e3}{0}} hepnames
+\def\PKzgmiii{\HepParticle{K}{\mu3}{0}} hepnames
+\def\PKia{\HepParticleResonanceFull{K}{1}{}{1400}{}{}} hepnames
+\def\PKii{\HepParticleResonanceFull{K}{2}{}{1770}{}{}} hepnames
+\def\PKi{\HepParticleResonanceFull{K}{1}{}{1270}{}{}} hepnames
+\def\PKsti{\HepParticleResonance{\PKst}{892}{}{}} hepnames
+\def\PKsta{\HepParticleResonance{\PKst}{1370}{}{}} hepnames
+\def\PKstb{\HepParticleResonance{\PKst}{1680}{}{}} hepnames
+\def\PKstiii{\HepParticleResonanceFull{K}{3}{\ast}{1780}{}{}} hepnames
+\def\PKstii{\HepParticleResonanceFull{K}{2}{\ast}{1430}{}{}} hepnames
+\def\PKstiv{\HepParticleResonanceFull{K}{4}{\ast}{2045}{}{}} hepnames
+\def\PKstz{\HepParticleResonanceFull{K}{0}{\ast}{1430}{}{}} hepnames
+
+## N resonances
+\def\PN{\HepParticle{N}{}{}} hepnames
+\def\PNa{\HepParticleResonanceFormal{\PN}{1440}{}{}{P}{11}{}} hepnames
+\def\PNb{\HepParticleResonanceFormal{\PN}{1520}{}{}{D}{13}{}} hepnames
+\def\PNc{\HepParticleResonanceFormal{\PN}{1535}{}{}{S}{11}{}} hepnames
+\def\PNd{\HepParticleResonanceFormal{\PN}{1650}{}{}{S}{11}{}} hepnames
+\def\PNe{\HepParticleResonanceFormal{\PN}{1675}{}{}{D}{15}{}} hepnames
+\def\PNf{\HepParticleResonanceFormal{\PN}{1680}{}{}{F}{15}{}} hepnames
+\def\PNg{\HepParticleResonanceFormal{\PN}{1700}{}{}{D}{13}{}} hepnames
+\def\PNh{\HepParticleResonanceFormal{\PN}{1710}{}{}{P}{11}{}} hepnames
+\def\PNi{\HepParticleResonanceFormal{\PN}{1720}{}{}{P}{13}{}} hepnames
+\def\PNj{\HepParticleResonanceFormal{\PN}{2190}{}{}{G}{17}{}} hepnames
+\def\PNk{\HepParticleResonanceFormal{\PN}{2220}{}{}{H}{19}{}} hepnames
+\def\PNl{\HepParticleResonanceFormal{\PN}{2250}{}{}{G}{19}{}} hepnames
+\def\PNm{\HepParticleResonanceFormal{\PN}{2600}{}{}{I}{1,11}{}} hepnames
+
+## Bosons
+\def\Pg{\HepParticle{g}{}{}} hepnames
+\def\Pgg{\HepParticle{\gamma}{}{}} hepnames
+\def\Pggx{\HepParticle{\gamma}{}{*}} hepnames
+\def\PW{\HepParticle{W}{}{}} hepnames
+\def\PWpm{\HepParticle{W}{}{\pm}} hepnames
+\def\PWmp{\HepParticle{W}{}{\mp}} hepnames
+\def\PWp{\HepParticle{W}{}{+}} hepnames
+\def\PWm{\HepParticle{W}{}{-}} hepnames
+\def\PWR{\HepParticle{W}{R}{}} hepnames
+\def\PWpr{\HepParticle{W}{}{\prime}} hepnames
+\def\PZ{\HepParticle{Z}{}{}} hepnames
+\def\PZz{\HepParticle{Z}{}{0}} hepnames
+\def\PZpr{\HepParticle{Z}{}{\prime}} hepnames
+\def\PZLR{\HepParticle{Z}{LR}{}} hepnames
+\def\PZgc{\HepParticle{Z}{\chi}{}} hepnames
+\def\PZge{\HepParticle{Z}{\eta}{}} hepnames
+\def\PZgy{\HepParticle{Z}{\psi}{}} hepnames
+\def\PZi{\HepParticle{Z}{1}{}} hepnames
+\def\PAz{\HepParticle{A}{}{\mspace{-2mu}0}} hepnames
+
+## Higgs (inc. SUSY Higgs)
+\def\PH{\HepParticle{H}{}{}} hepnames
+\def\PHz{\HepParticle{H}{}{0}} hepnames
+\def\Ph{\HepParticle{h}{}{}} hepnames
+\def\Phz{\HepParticle{h}{}{0}} hepnames
+\def\PA{\HepParticle{A}{}{}} hepnames
+\def\PHpm{\HepParticle{H}{}{\pm}} hepnames
+\def\PHmp{\HepParticle{H}{}{\mp}} hepnames
+\def\PHp{\HepParticle{H}{}{+}} hepnames
+\def\PHm{\HepParticle{H}{}{-}} hepnames
+
+\def\Pf{\HepGenParticle{f}{}{}} hepnames
+\def\Pfpm{\HepGenParticle{f}{}{\pm}} hepnames
+\def\Pfmp{\HepGenParticle{f}{}{\mp}} hepnames
+\def\Pfp{\HepGenParticle{f}{}{+}} hepnames
+\def\Pfm{\HepGenParticle{f}{}{-}} hepnames
+\def\Paf{\HepGenAntiParticle{f}{}{}} hepnames
+
+## Leptons
+\def\Pl{\HepGenParticle{\ell}{}{}} hepnames
+\def\Plpm{\HepGenParticle{\ell}{}{\pm}} hepnames
+\def\Plmp{\HepGenParticle{\ell}{}{\mp}} hepnames
+\def\Plp{\HepGenParticle{\ell}{}{+}} hepnames
+\def\Plm{\HepGenParticle{\ell}{}{-}} hepnames
+\def\Pal{\HepGenAntiParticle{\ell}{}{}} hepnames
+\def\Pgn{\HepGenParticle{\nu}{}{}} hepnames
+\def\Pgnl{\HepGenParticle{\nu}{\ell}{}} hepnames
+\def\Pagn{\HepGenAntiParticle{\nu}{}{}} hepnames
+\def\Pagnl{\HepGenAntiParticle{\nu}{\ell}{}} hepnames
+\def\Pe{\HepParticle{e}{}{}} hepnames
+\def\Pepm{\HepParticle{e}{}{\pm}} hepnames
+\def\Pemp{\HepParticle{e}{}{\mp}} hepnames
+\def\Pem{\HepParticle{e}{}{-}} hepnames
+\def\Pep{\HepParticle{e}{}{+}} hepnames
+\def\Pgm{\HepParticle{\mu}{}{}} hepnames
+\def\Pgmpm{\HepParticle{\mu}{}{\pm}} hepnames
+\def\Pgmmp{\HepParticle{\mu}{}{\mp}} hepnames
+\def\Pgmm{\HepParticle{\mu}{}{-}} hepnames
+\def\Pgmp{\HepParticle{\mu}{}{+}} hepnames
+\def\Pgt{\HepParticle{\tau}{}{}} hepnames
+\def\Pgtpm{\HepParticle{\tau}{}{\pm}} hepnames
+\def\Pgtmp{\HepParticle{\tau}{}{\mp}} hepnames
+\def\Pgtm{\HepParticle{\tau}{}{-}} hepnames
+\def\Pgtp{\HepParticle{\tau}{}{+}} hepnames
+\def\Pgne{\HepParticle{\nu}{\!e}{}} hepnames
+\def\Pgngm{\HepParticle{\nu}{\!\mu}{}} hepnames
+\def\Pgngt{\HepParticle{\nu}{\!\tau}{}} hepnames
+\def\Pagne{\HepAntiParticle{\nu}{\!e}{}} hepnames
+\def\Pagngm{\HepAntiParticle{\nu}{\!\mu}{}} hepnames
+\def\Pagngt{\HepAntiParticle{\nu}{\!\tau}{}} hepnames
+
+## Quarks
+\def\Pq{\HepGenParticle{q}{}{}} hepnames
+\def\Paq{\HepGenAntiParticle{q}{}{}} hepnames
+\def\Pqd{\HepParticle{d}{}{}} hepnames
+\def\Pqu{\HepParticle{u}{}{}} hepnames
+\def\Pqs{\HepParticle{s}{}{}} hepnames
+\def\Pqc{\HepParticle{c}{}{}} hepnames
+\def\Pqb{\HepParticle{b}{}{}} hepnames
+\def\Pqt{\HepParticle{t}{}{}} hepnames
+\def\Paqd{\HepAntiParticle{d}{}{}} hepnames
+\def\Paqu{\HepAntiParticle{u}{}{}} hepnames
+\def\Paqs{\HepAntiParticle{s}{}{}} hepnames
+\def\Paqc{\HepAntiParticle{c}{}{}} hepnames
+\def\Paqb{\HepAntiParticle{b}{}{}} hepnames
+\def\Paqt{\HepAntiParticle{t}{}{}} hepnames
+
+## Nucleons
+\def\Pp{\HepParticle{p}{}{}} hepnames
+\def\Pn{\HepParticle{n}{}{}} hepnames
+\def\Pap{\HepAntiParticle{p}{}{}} hepnames
+\def\Pan{\HepAntiParticle{n}{}{}} hepnames
+
+## Chi_c mesons
+\def\Pcgc{\HepParticle{\chi}{c}{}} hepnames
+\def\Pcgcii{\HepParticleResonanceFull{\chi}{c2}{}{1P}{}{}} hepnames
+\def\Pcgci{\HepParticleResonanceFull{\chi}{c1}{}{1P}{}{}} hepnames
+\def\Pcgcz{\HepParticleResonanceFull{\chi}{c0}{}{1P}{}{}} hepnames
+
+## f baryons
+\def\Pfia{\HepParticleResonanceFull{f}{1}{}{1390}{}{}} hepnames
+\def\Pfib{\HepParticleResonanceFull{f}{1}{}{1510}{}{}} hepnames
+\def\Pfiia{\HepParticleResonanceFull{f}{2}{}{1720}{}{}} hepnames
+\def\Pfiib{\HepParticleResonanceFull{f}{2}{}{2010}{}{}} hepnames
+\def\Pfiic{\HepParticleResonanceFull{f}{2}{}{2300}{}{}} hepnames
+\def\Pfiid{\HepParticleResonanceFull{f}{2}{}{2340}{}{}} hepnames
+\def\Pfiipr{\HepParticleResonanceFull{f}{2}{\prime}{1525}{}{}} hepnames
+\def\Pfii{\HepParticleResonanceFull{f}{2}{}{1270}{}{}} hepnames
+\def\Pfiv{\HepParticleResonanceFull{f}{4}{}{2050}{}{}} hepnames
+\def\Pfi{\HepParticleResonanceFull{f}{1}{}{1285}{}{}} hepnames
+\def\Pfza{\HepParticleResonanceFull{f}{0}{}{1400}{}{}} hepnames
+\def\Pfzb{\HepParticleResonanceFull{f}{0}{}{1590}{}{}} hepnames
+\def\Pfz{\HepParticleResonanceFull{f}{0}{}{975}{}{}} hepnames
+
+## Delta baryons
+\def\PgD{\HepParticle{\Delta}{}{}} hepnames
+\def\PgDa{\HepParticleResonanceFormal{\PgD}{1232}{}{}{P}{33}{}} hepnames
+\def\PgDb{\HepParticleResonanceFormal{\PgD}{1620}{}{}{S}{31}{}} hepnames
+\def\PgDc{\HepParticleResonanceFormal{\PgD}{1700}{}{}{D}{33}{}} hepnames
+\def\PgDd{\HepParticleResonanceFormal{\PgD}{1900}{}{}{S}{31}{}} hepnames
+\def\PgDe{\HepParticleResonanceFormal{\PgD}{1905}{}{}{F}{35}{}} hepnames
+\def\PgDf{\HepParticleResonanceFormal{\PgD}{1910}{}{}{P}{31}{}} hepnames
+\def\PgDh{\HepParticleResonanceFormal{\PgD}{1920}{}{}{P}{33}{}} hepnames
+\def\PgDi{\HepParticleResonanceFormal{\PgD}{1930}{}{}{D}{35}{}} hepnames
+\def\PgDj{\HepParticleResonanceFormal{\PgD}{1950}{}{}{F}{37}{}} hepnames
+\def\PgDk{\HepParticleResonanceFormal{\PgD}{2420}{}{}{H}{3,11}{}} hepnames
+
+## Lambda baryons
+\def\PgL{\HepParticle{\Lambda}{}{}} hepnames
+\def\PagL{\HepAntiParticle{\Lambda}{}{}} hepnames
+\def\PcgLp{\HepParticle{\Lambda}{\,c}{+}} hepnames
+\def\PbgL{\HepParticle{\Lambda}{b}{}} hepnames
+\def\PgLa{\HepParticleResonanceFormal{\PgL}{1405}{}{}{S}{01}{}} hepnames
+\def\PgLb{\HepParticleResonanceFormal{\PgL}{1520}{}{}{D}{03}{}} hepnames
+\def\PgLc{\HepParticleResonanceFormal{\PgL}{1600}{}{}{P}{01}{}} hepnames
+\def\PgLd{\HepParticleResonanceFormal{\PgL}{1670}{}{}{S}{01}{}} hepnames
+\def\PgLe{\HepParticleResonanceFormal{\PgL}{1690}{}{}{D}{03}{}} hepnames
+\def\PgLf{\HepParticleResonanceFormal{\PgL}{1800}{}{}{S}{01}{}} hepnames
+\def\PgLg{\HepParticleResonanceFormal{\PgL}{1810}{}{}{P}{01}{}} hepnames
+\def\PgLh{\HepParticleResonanceFormal{\PgL}{1820}{}{}{F}{05}{}} hepnames
+\def\PgLi{\HepParticleResonanceFormal{\PgL}{1830}{}{}{D}{05}{}} hepnames
+\def\PgLj{\HepParticleResonanceFormal{\PgL}{1890}{}{}{P}{03}{}} hepnames
+\def\PgLk{\HepParticleResonanceFormal{\PgL}{2100}{}{}{G}{07}{}} hepnames
+\def\PgLl{\HepParticleResonanceFormal{\PgL}{2110}{}{}{F}{05}{}} hepnames
+\def\PgLm{\HepParticleResonanceFormal{\PgL}{2350}{}{}{H}{09}{}} hepnames
+
+## Omega
+\def\PgO{\HepParticle{\Omega}{}{}} hepnames
+\def\PgOpm{\HepParticle{\Omega}{}{\pm}} hepnames
+\def\PgOmp{\HepParticle{\Omega}{}{\mp}} hepnames
+\def\PgOp{\HepParticle{\Omega}{}{+}} hepnames
+\def\PgOm{\HepParticle{\Omega}{}{-}} hepnames
+\def\PgOma{\HepParticleResonanceFull{\Omega}{}{}{2250}{}{-}} hepnames
+\def\PagO{\HepAntiParticle{\Omega}{}{}} hepnames
+\def\PagOp{\HepAntiParticle{\Omega}{}{+}} hepnames
+\def\PagOm{\HepAntiParticle{\Omega}{}{-}} hepnames
+
+## Sigma baryons
+\def\PgS{\HepParticle{\Sigma}{}{}} hepnames
+\def\PgSpm{\HepParticle{\Sigma}{}{\pm}} hepnames
+\def\PgSmp{\HepParticle{\Sigma}{}{\mp}} hepnames
+\def\PgSm{\HepParticle{\Sigma}{}{-}} hepnames
+\def\PgSp{\HepParticle{\Sigma}{}{+}} hepnames
+\def\PgSz{\HepParticle{\Sigma}{}{0}} hepnames
+\def\PcgS{\HepParticle{\Sigma}{c}{}} hepnames
+\def\PagSm{\HepAntiParticle{\Sigma}{}{-}} hepnames
+\def\PagSp{\HepAntiParticle{\Sigma}{}{+}} hepnames
+\def\PagSz{\HepAntiParticle{\Sigma}{}{0}} hepnames
+\def\PacgS{\HepAntiParticle{\Sigma}{c}{}} hepnames
+\def\PgSa{\HepParticleResonanceFormal{\PgS}{1385}{}{}{P}{13}{}} hepnames
+\def\PgSb{\HepParticleResonanceFormal{\PgS}{1660}{}{}{P}{11}{}} hepnames
+\def\PgSc{\HepParticleResonanceFormal{\PgS}{1670}{}{}{D}{13}{}} hepnames
+\def\PgSd{\HepParticleResonanceFormal{\PgS}{1750}{}{}{S}{11}{}} hepnames
+\def\PgSe{\HepParticleResonanceFormal{\PgS}{1775}{}{}{D}{15}{}} hepnames
+\def\PgSf{\HepParticleResonanceFormal{\PgS}{1915}{}{}{F}{15}{}} hepnames
+\def\PgSg{\HepParticleResonanceFormal{\PgS}{1940}{}{}{D}{13}{}} hepnames
+\def\PgSh{\HepParticleResonanceFormal{\PgS}{2030}{}{}{F}{17}{}} hepnames
+\def\PgSi{\HepParticleResonance{\PgS}{2050}{}{}} hepnames
+\def\PcgSi{\HepParticleResonance{\PcgS}{2455}{}{}} hepnames
+
+## Upsilon
+\def\PgU{\HepParticle{\Upsilon}{}{}} hepnames
+\def\PgUi{\HepParticleResonance{\PgU}{1S}{}{}} hepnames
+\def\PgUa{\HepParticleResonance{\PgU}{2S}{}{}} hepnames
+\def\PgUb{\HepParticleResonance{\PgU}{3S}{}{}} hepnames
+\def\PgUc{\HepParticleResonance{\PgU}{4S}{}{}} hepnames
+\def\PgUd{\HepParticleResonance{\PgU}{10860}{}{}} hepnames
+\def\PgUe{\HepParticleResonance{\PgU}{11020}{}{}} hepnames
+
+## Xi
+\def\PgX{\HepParticle{\Xi}{}{}} hepnames
+\def\PgXp{\HepParticle{\Xi}{}{+}} hepnames
+\def\PgXm{\HepParticle{\Xi}{}{-}} hepnames
+\def\PgXz{\HepParticle{\Xi}{}{0}} hepnames
+\def\PgXa{\HepParticleResonanceFormalFull{\Xi}{}{}{1530}{}{}{P}{13}{}} hepnames
+\def\PgXb{\HepParticleResonanceFull{\Xi}{}{}{1690}{}{}} hepnames
+\def\PgXc{\HepParticleResonanceFormalFull{\Xi}{}{}{1820}{}{}{D}{13}{}} hepnames
+\def\PgXd{\HepParticleResonanceFull{\Xi}{}{}{1950}{}{}} hepnames
+\def\PgXe{\HepParticleResonanceFull{\Xi}{}{}{2030}{}{}} hepnames
+\def\PagXp{\HepAntiParticle{\Xi}{}{+}} hepnames
+\def\PagXm{\HepAntiParticle{\Xi}{}{-}} hepnames
+\def\PagXz{\HepAntiParticle{\Xi}{}{0}} hepnames
+\def\PcgXp{\HepParticle{\Xi}{\,c}{+}} hepnames
+\def\PcgXz{\HepParticle{\Xi}{c}{0}} hepnames
+
+## Strange mesons
+\def\Pgf{\HepParticle{\phi}{}{}} hepnames
+\def\Pgfi{\HepParticleResonance{\Pgf}{1020}{}{}} hepnames
+\def\Pgfa{\HepParticleResonance{\Pgf}{1680}{}{}} hepnames
+\def\Pgfiii{\HepParticleResonanceFull{\phi}{3}{}{1850}{}{}} hepnames
+
+## Eta mesons
+\def\Pgh{\HepParticle{\eta}{}{}} hepnames
+\def\Pghpr{\HepParticle{\eta}{}{\prime}} hepnames
+\def\Pcgh{\HepParticle{\eta}{\Pqc}{}} hepnames
+\def\Pgha{\HepParticleResonance{\Pgh}{1295}{}{}} hepnames
+\def\Pghb{\HepParticleResonance{\Pgh}{1440}{}{}} hepnames
+\def\Pghpri{\HepParticleResonance{\Pghpr}{958}{}{}} hepnames
+\def\Pcghi{\HepParticleResonance{\Pcgh}{1S}{}{}} hepnames
+
+## omega mesons
+\def\Pgo{\HepParticle{\omega}{}{}} hepnames
+\def\Pgoi{\HepParticleResonance{\Pgo}{783}{}{}} hepnames
+\def\Pgoa{\HepParticleResonance{\Pgo}{1390}{}{}} hepnames
+\def\Pgob{\HepParticleResonance{\Pgo}{1600}{}{}} hepnames
+\def\Pgoiii{\HepParticleResonance{\Pgo}{3}{}{1670}{}{}} hepnames
+
+## Pions
+\def\Pgp{\HepParticle{\pi}{}{}} hepnames
+\def\Pgppm{\HepParticle{\pi}{}{\pm}} hepnames
+\def\Pgpmp{\HepParticle{\pi}{}{\mp}} hepnames
+\def\Pgpm{\HepParticle{\pi}{}{-}} hepnames
+\def\Pgpp{\HepParticle{\pi}{}{+}} hepnames
+\def\Pgpz{\HepParticle{\pi}{}{0}} hepnames
+\def\Pgpa{\HepParticleResonanceFull{\pi}{}{}{1300}{}{}} hepnames
+\def\Pgpii{\HepParticleResonanceFull{\pi}{2}{}{1670}{}{}} hepnames
+
+## Rho mesons
+\def\Pgr{\HepParticle{\rho}{}{}} hepnames
+\def\Pgrp{\HepParticle{\rho}{}{+}} hepnames
+\def\Pgrm{\HepParticle{\rho}{}{-}} hepnames
+\def\Pgrpm{\HepParticle{\rho}{}{\pm}} hepnames
+\def\Pgrmp{\HepParticle{\rho}{}{\mp}} hepnames
+\def\Pgrz{\HepParticle{\rho}{}{0}} hepnames
+\def\Pgri{\HepParticleResonanceFull{\rho}{}{}{770}{}{}} hepnames
+\def\Pgra{\HepParticleResonanceFull{\rho}{}{}{1450}{}{}} hepnames
+\def\Pgrb{\HepParticleResonanceFull{\rho}{}{}{1700}{}{}} hepnames
+\def\Pgriii{\HepParticleResonanceFull{\rho}{3}{}{1690}{}{}} hepnames
+
+## Psi resonances
+\def\PJgy{\HepParticle{J\mspace{-2mu}/\mspace{-2mu}\psi}{}{}} hepnames
+\def\PJgyi{\HepParticleResonance{\PJgy}{1S}{}{}} hepnames
+\def\Pgy{\HepParticle{\psi}{}{}} hepnames
+\def\Pgyii{\HepParticleResonance{\Pgy}{2S}{}{}} hepnames
+\def\Pgya{\HepParticleResonance{\Pgy}{3770}{}{}} hepnames
+\def\Pgyb{\HepParticleResonance{\Pgy}{4040}{}{}} hepnames
+\def\Pgyc{\HepParticleResonance{\Pgy}{4160}{}{}} hepnames
+\def\Pgyd{\HepParticleResonance{\Pgy}{4415}{}{}} hepnames
+
+## Charmed mesons
+\def\PD{\HepParticle{D}{}{}} hepnames
+\def\PDpm{\HepParticle{D}{}{\pm}} hepnames
+\def\PDmp{\HepParticle{D}{}{\mp}} hepnames
+\def\PDz{\HepParticle{D}{}{0}} hepnames
+\def\PDm{\HepParticle{D}{}{-}} hepnames
+\def\PDp{\HepParticle{D}{}{+}} hepnames
+\def\PDst{\HepParticle{D}{}{\ast}} hepnames
+\def\PaD{\HepAntiParticle{D}{}{}} hepnames
+\def\PaDz{\HepAntiParticle{D}{}{0}} hepnames
+\def\PsD{\HepParticle{D}{s}{}} hepnames
+\def\PsDm{\HepParticle{D}{\,s}{-}} hepnames
+\def\PsDp{\HepParticle{D}{\,s}{+}} hepnames
+\def\PsDpm{\HepParticle{D}{\,s}{\pm}} hepnames
+\def\PsDmp{\HepParticle{D}{\,s}{\mp}} hepnames
+\def\PsDst{\HepParticle{D}{s}{\ast}} hepnames
+\def\PsDipm{\HepParticleResonanceFull{D}{s1}{}{2536}{}{\pm}} hepnames
+\def\PsDimp{\HepParticleResonanceFull{D}{s1}{}{2536}{}{\mp}} hepnames
+\def\PDiz{\HepParticleResonanceFull{D}{1}{}{2420}{}{0}} hepnames
+\def\PDstiiz{\HepParticleResonanceFull{D}{2}{\ast}{2460}{}{0}} hepnames
+\def\PDstpm{\HepParticleResonanceFull{D}{}{\ast}{2010}{}{\pm}} hepnames
+\def\PDstmp{\HepParticleResonanceFull{D}{}{\ast}{2010}{}{\mp}} hepnames
+\def\PDstz{\HepParticleResonanceFull{D}{}{\ast}{2010}{}{0}} hepnames
+
+## Random things
+\def\PEz{\HepParticle{E}{}{0}} hepnames
+\def\PLpm{\HepParticle{L}{}{\mspace{-1mu}\pm}} hepnames
+\def\PLmp{\HepParticle{L}{}{\mspace{-1mu}\mp}} hepnames
+\def\PLz{\HepParticle{L}{}{\mspace{-1mu}0}} hepnames
+\def\Paii{\HepParticleResonanceFull{a}{2}{}{1320}{}{}} hepnames
+\def\Pai{\HepParticleResonanceFull{a}{1}{}{1260}{}{}} hepnames
+\def\Paz{\HepParticleResonanceFull{a}{0}{}{980}{}{}} hepnames
+\def\Pbgcia{\HepParticleResonanceFull{\chi}{b1}{}{2P}{}{}} hepnames
+\def\Pbgciia{\HepParticleResonanceFull{\chi}{b2}{}{2P}{}{}} hepnames
+\def\Pbgcii{\HepParticleResonanceFull{\chi}{b2}{}{1P}{}{}} hepnames
+\def\Pbgci{\HepParticleResonanceFull{\chi}{b1}{}{1P}{}{}} hepnames
+\def\Pbgcza{\HepParticleResonanceFull{\chi}{b0}{}{2P}{}{}} hepnames
+\def\Pbgcz{\HepParticleResonanceFull{\chi}{b0}{}{1P}{}{}} hepnames
+\def\Pbi{\HepParticleResonanceFull{b}{1}{}{1235}{}{}} hepnames
+\def\Phia{\HepParticleResonanceFull{h}{1}{}{1170}{}{}} hepnames
+
+## SUSY particles
+\def\PSH{\HepSusyParticle{H}{}{}} hepnames
+\def\PSHp{\HepSusyParticle{H}{}{+}} hepnames
+\def\PSHm{\HepSusyParticle{H}{}{-}} hepnames
+\def\PSHpm{\HepSusyParticle{H}{}{\pm}} hepnames
+\def\PSHmp{\HepSusyParticle{H}{}{\mp}} hepnames
+\def\PSHz{\HepSusyParticle{H}{}{0}} hepnames
+\def\PSW{\HepSusyParticle{W}{}{}} hepnames
+\def\PSWp{\HepSusyParticle{W}{}{+}} hepnames
+\def\PSWm{\HepSusyParticle{W}{}{-}} hepnames
+\def\PSWpm{\HepSusyParticle{W}{}{\pm}} hepnames
+\def\PSWmp{\HepSusyParticle{W}{}{\mp}} hepnames
+\def\PSZ{\HepSusyParticle{Z}{}{}} hepnames
+\def\PSZz{\HepSusyParticle{Z}{}{0}} hepnames
+\def\PSB{\HepSusyParticle{B}{}{}} hepnames
+\def\PSe{\HepSusyParticle{e}{}{}} hepnames
+\def\PSgg{\HepSusyParticle{\gamma}{}{}} hepnames
+\def\PSgm{\HepSusyParticle{\mu}{}{}} hepnames
+\def\PSgn{\HepSusyParticle{\nu}{}{}} hepnames
+\def\PSgt{\HepSusyParticle{\tau}{}{}} hepnames
+\def\PSgx{\HepSusyParticle{\chi}{}{}} hepnames
+\def\PSgxpm{\HepSusyParticle{\chi}{}{\pm}} hepnames
+\def\PSgxmp{\HepSusyParticle{\chi}{}{\mp}} hepnames
+\def\PSgxz{\HepSusyParticle{\chi}{}{0}} hepnames
+\def\PSgxzi{\HepSusyParticle{\chi}{1}{0}} hepnames
+\def\PSgxzii{\HepSusyParticle{\chi}{2}{0}} hepnames
+\def\PSg{\HepSusyParticle{g}{}{}} hepnames
+\def\PSl{\HepGenSusyParticle{\ell}{}{}} hepnames
+\def\PaSl{\HepGenSusyAntiParticle{\ell}{}{}} hepnames
+\def\PSq{\HepGenSusyParticle{q}{}{}} hepnames
+\def\PaSq{\HepGenSusyAntiParticle{q}{}{}} hepnames
+\def\PSqd{\HepSusyParticle{d}{}{}} hepnames
+\def\PSqu{\HepSusyParticle{u}{}{}} hepnames
+\def\PSqs{\HepSusyParticle{s}{}{}} hepnames
+\def\PSqc{\HepSusyParticle{c}{}{}} hepnames
+\def\PSqb{\HepSusyParticle{b}{}{}} hepnames
+\def\PSqt{\HepSusyParticle{t}{}{}} hepnames
+\def\PaSqd{\HepSusyAntiParticle{d}{}{}} hepnames
+\def\PaSqu{\HepSusyAntiParticle{u}{}{}} hepnames
+\def\PaSqs{\HepSusyAntiParticle{s}{}{}} hepnames
+\def\PaSqc{\HepSusyAntiParticle{c}{}{}} hepnames
+\def\PaSqb{\HepSusyAntiParticle{b}{}{}} hepnames
+\def\PaSqt{\HepSusyAntiParticle{t}{}{}} hepnames
+
+
+#
+# Particle nice names. The code below is extracted from the hepnames
+# package by Andy Buckley.
+#    https://www.ctan.org/pkg/hepnames
+# It has been simplified and is only intended for display purposes inside LyX.
+
+## B mesons
+\def\PBplus{\PBp} hepnames
+\def\PBminus{\PBm} hepnames
+\def\PBzero{\PBz} hepnames
+\def\PBstar{\PBst} hepnames
+\def\PBd{\PdB} hepnames
+\def\PBu{\PuB} hepnames
+\def\PBc{\PcB} hepnames
+\def\PBs{\PsB} hepnames
+\def\APB{\PaB} hepnames
+\def\APBzero{\PaBz} hepnames
+\def\APBd{\PadB} hepnames
+\def\APBu{\PauB} hepnames
+\def\APBc{\PacB} hepnames
+\def\APBs{\PasB} hepnames
+
+## Kaons
+\def\PKplus{\PKp} hepnames
+\def\PKminus{\PKm} hepnames
+\def\PKzero{\PKz} hepnames
+\def\PKshort{\PKzS} hepnames
+\def\PKs{\PKzS} hepnames
+\def\PKlong{\PKzL} hepnames
+\def\PKl{\PKzL} hepnames
+\def\PKstar{\PKst} hepnames
+\def\APK{\PaKz} hepnames
+\def\APKzero{\PaKz} hepnames
+
+## Bosons
+\def\Pphoton{\Pgg} hepnames
+\def\Pgamma{\Pgg} hepnames
+\def\Pphotonx{\Pggx} hepnames
+\def\Pgammastar{\Pggx} hepnames
+\def\Pgluon{\Pg} hepnames
+\def\PWplus{\PWp} hepnames
+\def\PWminus{\PWm} hepnames
+\def\PWprime{\PWpr} hepnames
+\def\PZzero{\PZz} hepnames
+\def\PZprime{\PZpr} hepnames
+\def\Paxion{\PAz} hepnames
+
+## Generic fermions
+\def\Pfermion{\Pf} hepnames
+\def\Pfermionpm{\Pfpm} hepnames
+\def\Pfermionmp{\Pfmp} hepnames
+\def\Pfermionplus{\Pfp} hepnames
+\def\Pfermionminus{\Pfm} hepnames
+\def\APfermion{\Paf} hepnames
+
+## Leptons
+\def\Plepton{\Pl} hepnames
+\def\Pleptonpm{\Plpm} hepnames
+\def\Pleptonmp{\Plmp} hepnames
+\def\Pleptonplus{\Plp} hepnames
+\def\Pleptonminus{\Plm} hepnames
+\def\APlepton{\Pal} hepnames
+\def\Pnu{\Pgn} hepnames
+\def\APnu{\Pagn} hepnames
+\def\Pneutrino{\Pgn} hepnames
+\def\APneutrino{\Pagn} hepnames
+\def\Pnulepton{\Pgnl} hepnames
+\def\APnulepton{\Pagnl} hepnames
+\def\Pelectron{\Pem} hepnames
+\def\APelectron{\Pep} hepnames
+\def\Ppositron{\Pep} hepnames
+\def\APpositron{\Pep} hepnames
+\def\Pmu{\Pgm} hepnames
+\def\Pmupm{\Pgmpm} hepnames
+\def\Pmump{\Pgmmp} hepnames
+\def\Pmuon{\Pgmm} hepnames
+\def\APmuon{\Pgmp} hepnames
+\def\Ptau{\Pgt} hepnames
+\def\Ptaupm{\Pgtpm} hepnames
+\def\Ptaump{\Pgtmp} hepnames
+\def\Ptauon{\Pgtm} hepnames
+\def\APtauon{\Pgtp} hepnames
+\def\Pnue{\Pgne} hepnames
+\def\Pnum{\Pgngm} hepnames
+\def\Pnut{\Pgngt} hepnames
+\def\APnue{\Pagne} hepnames
+\def\APnum{\Pagngm} hepnames
+\def\APnut{\Pagngt} hepnames
+
+## Quarks
+\def\Pquark{\Pq} hepnames
+\def\APquark{\Paq} hepnames
+\def\Pdown{\Pqd} hepnames
+\def\Pup{\Pqu} hepnames
+\def\Pstrange{\Pqs} hepnames
+\def\Pcharm{\Pqc} hepnames
+\def\Pbottom{\Pqb} hepnames
+\def\Pbeauty{\Pqb} hepnames
+\def\Ptop{\Pqt} hepnames
+\def\Ptruth{\Pqt} hepnames
+\def\APdown{\Paqd} hepnames
+\def\APqd{\Paqd} hepnames
+\def\APup{\Paqu} hepnames
+\def\APqu{\Paqu} hepnames
+\def\APstrange{\Paqs} hepnames
+\def\APqs{\Paqs} hepnames
+\def\APcharm{\Paqc} hepnames
+\def\APqc{\Paqc} hepnames
+\def\APbottom{\Paqb} hepnames
+\def\APbeauty{\Paqb} hepnames
+\def\APqb{\Paqb} hepnames
+\def\APtop{\Paqt} hepnames
+\def\APtruth{\Paqt} hepnames
+\def\APqt{\Paqt} hepnames
+
+## Nucleons
+\def\Pproton{\Pp} hepnames
+\def\Pneutron{\Pn} hepnames
+\def\APproton{\Pap} hepnames
+\def\APneutron{\Pan} hepnames
+
+## Chi_c mesons
+\def\Pchic{\Pcgc} hepnames
+
+## Delta baryons
+\def\PDelta{\PgD} hepnames
+
+## Lambda baryons
+\def\PLambda{\PgL} hepnames
+\def\APLambda{\PagL} hepnames
+\def\PLambdac{\PcgLp} hepnames
+\def\PLambdab{\PbgL} hepnames
+
+## Omega
+\def\POmega{\PgO} hepnames
+\def\POmegapm{\PgOpm} hepnames
+\def\POmegamp{\PgOmp} hepnames
+\def\POmegaplus{\PgOp} hepnames
+\def\POmegaminus{\PgOm} hepnames
+\def\APOmega{\PagO} hepnames
+\def\APOmegaplus{\PagOp} hepnames
+\def\APOmegaminus{\PagOm} hepnames
+
+## Sigma baryons
+\def\PSigma{\PgS} hepnames
+\def\PSigmapm{\PgSpm} hepnames
+\def\PSigmamp{\PgSmp} hepnames
+\def\PSigmaminus{\PgSm} hepnames
+\def\PSigmaplus{\PgSp} hepnames
+\def\PSigmazero{\PgSz} hepnames
+\def\PSigmac{\PcgS} hepnames
+\def\APSigmaminus{\PagSm} hepnames
+\def\APSigmaplus{\PagSp} hepnames
+\def\APSigmazero{\PagSz} hepnames
+\def\APSigmac{\PacgS} hepnames
+
+## Upsilon
+\def\PUpsilon{\PgU} hepnames
+\def\PUpsilonOneS{\PgUi} hepnames
+\def\PUpsilonTwoS{\PgUa} hepnames
+\def\PUpsilonThreeS{\PgUb} hepnames
+\def\PUpsilonFourS{\PgUc} hepnames
+
+## Xi
+\def\PXi{\PgX} hepnames
+\def\PXiplus{\PgXp} hepnames
+\def\PXiminus{\PgXm} hepnames
+\def\PXizero{\PgXz} hepnames
+\def\APXiplus{\PagXp} hepnames
+\def\APXiminus{\PagXm} hepnames
+\def\APXizero{\PagXz} hepnames
+\def\PXicplus{\PcgXp} hepnames
+\def\PXiczero{\PcgXz} hepnames
+## others?
+
+## Strange mesons
+\def\Pphi{\Pgf} hepnames
+
+## Eta mesons
+\def\Peta{\Pgh} hepnames
+\def\Petaprime{\Pghpr} hepnames
+\def\Petac{\Pcgh} hepnames
+
+## omega mesons
+\def\Pomega{\Pgo} hepnames
+
+## Pions
+\def\Ppi{\Pgp} hepnames
+\def\Ppipm{\Pgppm} hepnames
+\def\Ppimp{\Pgpmp} hepnames
+\def\Ppiplus{\Pgpp} hepnames
+\def\Ppiminus{\Pgpm} hepnames
+\def\Ppizero{\Pgpz} hepnames
+
+## Rho mesons
+\def\Prho{\Pgr} hepnames
+\def\Prhoplus{\Pgrp} hepnames
+\def\Prhominus{\Pgrm} hepnames
+\def\Prhopm{\Pgrpm} hepnames
+\def\Prhomp{\Pgrmp} hepnames
+\def\Prhozero{\Pgrz} hepnames
+
+## Psi resonances
+\def\PJpsi{\PJgy} hepnames
+\def\PJpsiOneS{\PJgyi} hepnames
+\def\Ppsi{\Pgy} hepnames
+\def\PpsiTwoS{\Pgyii} hepnames
+
+## Charmed mesons
+\def\PDzero{\PDz} hepnames
+\def\PDminus{\PDm} hepnames
+\def\PDplus{\PDp} hepnames
+\def\PDstar{\PDst} hepnames
+\def\APD{\PaD} hepnames
+\def\APDzero{\PaDz} hepnames
+\def\PDs{\PsD} hepnames
+\def\PDsminus{\PsDm} hepnames
+\def\PDsplus{\PsDp} hepnames
+\def\PDspm{\PsDpm} hepnames
+\def\PDsmp{\PsDmp} hepnames
+\def\PDsstar{\PsDst} hepnames
+
+## Higgses (including SUSY sector Higgses)
+\def\PHiggs{\PH} hepnames
+\def\PHiggsheavy{\PH} hepnames
+\def\PHiggslight{\Ph} hepnames
+\def\PHiggsheavyzero{\PHz} hepnames
+\def\PHiggslightzero{\Phz} hepnames
+\def\PHiggsps{\PA} hepnames
+\def\PHiggspszero{\PAz} hepnames
+\def\PHiggsplus{\PHp} hepnames
+\def\PHiggsminus{\PHm} hepnames
+\def\PHiggspm{\PHpm} hepnames
+\def\PHiggsmp{\PHmp} hepnames
+\def\PHiggszero{\PHz} hepnames
+
+## SUSY partners
+\def\PSHiggs{\PSH} hepnames
+\def\PSHiggsino{\PSH} hepnames
+\def\PSHiggsplus{\PSHp} hepnames
+\def\PSHiggsinoplus{\PSHp} hepnames
+\def\PSHiggsminus{\PSHm} hepnames
+\def\PSHiggsinominus{\PSHm} hepnames
+\def\PSHiggspm{\PSHpm} hepnames
+\def\PSHiggsinopm{\PSHpm} hepnames
+\def\PSHiggsmp{\PSHmp} hepnames
+\def\PSHiggsinomp{\PSHmp} hepnames
+\def\PSHiggszero{\PSHz} hepnames
+\def\PSHiggsinozero{\PSHz} hepnames
+\def\PSBino{\PSB} hepnames
+\def\PSWplus{\PSWp} hepnames
+\def\PSWminus{\PSWm} hepnames
+\def\PSWino{\PSW} hepnames
+\def\PSWinopm{\PSWpm} hepnames
+\def\PSWinomp{\PSWmp} hepnames
+\def\PSZzero{\PSZz} hepnames
+\def\PSphoton{\PSgg} hepnames
+\def\PSphotino{\PSgg} hepnames
+\def\Pphotino{\PSgg} hepnames
+\def\PSmu{\PSgm} hepnames
+\def\PSnu{\PSgn} hepnames
+\def\PStau{\PSgt} hepnames
+\def\PSino{\PSgx} hepnames
+\def\PSgaugino{\PSino} hepnames
+\def\PScharginopm{\PSgxpm} hepnames
+\def\PScharginomp{\PSgxmp} hepnames
+\def\PSneutralino{\PSgxz} hepnames
+\def\PSneutralinoOne{\PSgxzi} hepnames
+\def\PSneutralinoTwo{\PSgxzii} hepnames
+\def\PSgluino{\PSg} hepnames
+\def\PSlepton{\PSl} hepnames
+\def\PSslepton{\PSl} hepnames
+\def\Pslepton{\PSl} hepnames
+\def\APSlepton{\PaSl} hepnames
+\def\APslepton{\PaSl} hepnames
+
+## Squarks
+\def\Psquark{\PSq} hepnames
+\def\APSq{\PaSq} hepnames
+\def\APsquark{\PaSq} hepnames
+\def\PSdown{\PSqd} hepnames
+\def\PSup{\PSqu} hepnames
+\def\PSstrange{\PSqs} hepnames
+\def\PScharm{\PSqc} hepnames
+\def\PSbottom{\PSqb} hepnames
+\def\PStop{\PSqt} hepnames
+\def\PASdown{\PaSqd} hepnames
+\def\PASup{\PaSqu} hepnames
+\def\PASstrange{\PaSqs} hepnames
+\def\PAScharm{\PaSqc} hepnames
+\def\PASbottom{\PaSqb} hepnames
+\def\PAStop{\PaSqt} hepnames
+
+## Even less formal names
+\def\eplus{\Pep} hepnames
+\def\eminus{\Pem} hepnames
+