]> git.lyx.org Git - lyx.git/blobdiff - lib/symbols
Move DrawStrategy enum to update_flags.h.
[lyx.git] / lib / symbols
index 293c7291b4ec639d4d03a98b9b5506a249dfa56d..aac3ee3b6c93fe50b3510df6333ba738005b9f5b 100644 (file)
@@ -11,7 +11,7 @@
 # Note that the first argument of \def must not uses braces, and the second
 # must use braces.
 #
-# syntax: Either
+# syntax: (note that there should be no space character in the definition)
 # \def\macroname{definition}
 # or
 # \def\macroname{definition} 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
@@ -52,7 +57,8 @@ overleftrightarrow  decoration none       amsmath
 overline            decoration none
 overrightarrow      decoration none
 tilde               decoration none
-underbar            decoration none
+uline               decoration none       ulem
+underbar            decoration everymode
 underbrace          decoration none
 underleftarrow      decoration none       amsmath
 underleftrightarrow decoration none       amsmath
@@ -63,6 +69,8 @@ underrightarrow     decoration none       amsmath
 #undertilde          decoration none       accents
 undertilde          decoration none       hiddensymbol
 utilde              decoration none       undertilde
+uuline              decoration none       ulem
+uwave               decoration none       ulem
 vec                 decoration none
 widehat             decoration none
 widetilde           decoration none
@@ -152,6 +160,18 @@ it                oldfont     none    hiddensymbol
 rm                oldfont     none    hiddensymbol
 tt                oldfont     none    hiddensymbol
 
+# textsize commands
+tiny              textsize    none    hiddensymbol
+scriptsize        textsize    none    hiddensymbol
+footnotesize      textsize    none    hiddensymbol
+small             textsize    none    hiddensymbol
+normalsize        textsize    none    hiddensymbol
+large             textsize    none    hiddensymbol
+Large             textsize    none    hiddensymbol
+LARGE             textsize    none    hiddensymbol
+huge              textsize    none    hiddensymbol
+Huge              textsize    none    hiddensymbol
+
 # matrix environments
 Bmatrix           matrix      none
 Vmatrix           matrix      none
@@ -1060,7 +1080,7 @@ endif
 \def\oiint{\oiintop\nolimits}       mathop  ∯        esint
 \def\sqint{\sqintop\nolimits}       mathop  ⨖        esint
 \def\sqiint{\sqiintop\nolimits}     mathop  esint
-\def\dotsint{\dotsintop\nolimits}   mathop  ∫⋯∫
+\def\dotsint{\dotsintop\nolimits}   mathop  ∫⋯∫        esint
 \def\ointctrclockwise{\ointctrclockwiseop\nolimits} mathop  ∲        esint
 \def\ointclockwise{\ointclockwiseop\nolimits}       mathop  ∲        esint
 
@@ -1115,12 +1135,19 @@ exp                lyxblacktext  0   0 func     x
 Pr                 lyxblacktext  0   0 funclim  x
 gcd                lyxblacktext  0   0 funclim  x
 deg                lyxblacktext  0   0 func     x
-mod                lyxblacktext  0   0 func     x     amsmath
-bmod               lyxblacktext  0   0 func     x
-pmod               lyxblacktext  0   0 func     x
-pod                lyxblacktext  0   0 func     x     amsmath
 
 
+#
+# 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