]> git.lyx.org Git - lyx.git/blobdiff - lib/reLyX/syntax.default
some trivial fixes
[lyx.git] / lib / reLyX / syntax.default
index ea072745832ff561064798d6bec73b62c8b540ef..977026b1de2ca6e9af1a65dfd8f4a546bbe2e246 100644 (file)
@@ -17,7 +17,7 @@
 
 % The first thing listed here is commands that are hard-coded into reLyX.
 % Redefining these commands in a new syntax file will probably not help%
-% and may break things. 
+% and may break things.
 \#
 \$
 \%
@@ -69,6 +69,54 @@ $$
 \bibliographystyle{}
 \c{}
 \cite[]{}
+
+% Natbib citations can usually have two optional args, but LyX currently
+% supports only one.
+\citet[]{}
+\Citet[]{}
+\citet*[]{}
+\Citet*[]{}
+%\citet[][]{}
+%\Citet[][]{}
+%\citet*[][]{}
+%\Citet*[][]{}
+
+\citealt[]{}
+\Citealt[]{}
+\citealt*[]{}
+\Citealt*[]{}
+%\citealt[][]{}
+%\Citealt[][]{}
+%\citealt*[][]{}
+%\Citealt*[][]{}
+
+\citep[]{}
+\Citep[]{}
+\citep*[]{}
+\Citep*[]{}
+%\citep[][]{}
+%\Citep[][]{}
+%\citep*[][]{}
+%\Citep*[][]{}
+
+\citealp[]{}
+\Citealp[]{}
+\citealp*[]{}
+\Citealp*[]{}
+%\citealp[][]{}
+%\Citealp[][]{}
+%\citealp*[][]{}
+%\Citealp*[][]{}
+
+\citeauthor[]{}
+\Citeauthor[]{}
+\citeauthor*[]{}
+\Citeauthor*[]{}
+
+\citeyear[]{}
+\citeyearpar[]{}
+%\citeyearpar[][]{}
+
 \cline{ - }
 \d{}
 \documentclass[]{}[]
@@ -497,6 +545,8 @@ $$
 \providecommand{}[][]{}
 \providecommand*{}[][]{}
 \ps
+\psfrag{}[][][][]{translate}
+\psfrag*{}[][][][]{translate}
 \pushtabs
 % \put(,){}     %picture
 % \qbezier[](,)(,)(,)     %picture
@@ -594,302 +644,6 @@ $$
 \vspace*{}
 \whiledo{}{}
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% MATH COMMANDS
-% This includes some AMSmath commands
-
-% characters (not in math_hash.C)
-^{}
-_{}
-&
-
-% Math space (not in math_hash.C)
-\:
-\;
-\!
-
-% Greek letters
-
-\alpha
-\beta
-\gamma
-\delta
-\epsilon
-\varepsilon
-\zeta
-\eta
-\theta
-\vartheta
-\iota
-\kappa
-\lambda
-\mu
-\nu
-\xi
-\pi
-\varpi
-\rho
-% \varrho isn't supported
-\sigma
-\varsigma
-\tau
-\upsilon
-\phi
-\varphi
-\chi
-\psi
-\omega
-
-\Delta
-\Omega
-\Upsilon
-\Theta
-\Lambda
-\Sigma
-\Gamma
-\Pi
-\Phi
-\Psi
-\Xi
-
-% Other stuff
-%\setminus
-%\ldots    % already in non-math
-\limits
-\stackrel{}{}
-%\ll
-%\label  % already in non-math
-\lceil
-\aleph
-\sqrt[]{}
-\times
-\subset
-\supset
-\spadesuit
-\Re
-\left   % kind of takes an argument...
-\smile
-\exists
-\Vert
-\uplus
-\ell
-\langle
-\arccos
-\sup
-\sharp
-\sqcup
-\sqcap
-\approx
-\triangleleft
-\triangleright
-\tilde{}
-\emptyset
-\triangle
-\limsup
-\partial
-\parallel
-\infty
-\leftharpoonup
-\searrow
-\swarrow
-\top
-\Rightarrow
-% \underline   % already in non-Math list
-\underbrace{}
-\acute{}
-\angle
-\exp
-\leftarrow
-\prime
-\int
-\longleftarrow
-\leftrightarrow
-\longrightarrow
-\longleftrightarrow
-\widehat{}
-\sin
-\asymp
-\nolimits
-\perp
-\wedge
-\ln
-\widetilde{}
-\natural
-\uparrow
-\updownarrow
-\star
-\leftharpoondown
-\wp
-\not
-\tan
-\rceil
-\lfloor
-\rightleftharpoons
-\cos
-\sec
-\succ
-\cdots
-\ker
-\forall
-\liminf
-\Uparrow
-\right
-\Updownarrow
-\Pr
-\nabla
-\arcsin
-\arctan
-\flat
-\check{}
-\rangle
-\cot
-\cdot
-\clubsuit
-\in
-\ni
-\Downarrow
-\sb{}   % equivalent to _
-\sp{}   % equivalent to ^
-\sim
-\sum
-\models
-\nearrow
-\nwarrow
-\max
-\Im
-\lim
-\rightharpoonup
-\cap
-\cup
-\prec
-\wr
-\inf
-\bigoplus
-\biguplus
-\bigotimes
-\rightarrow
-% \textrm    % already in nonmath
-\simeq
-\succeq
-\notin
-\subseteq
-\supseteq
-\sqsubseteq
-\sqsupseteq
-\leq
-\surd
-\ddots
-\bot
-\bullet
-\bigodot
-\sinh
-\jmath
-\mp
-\pm
-\nonumber
-\breve{}
-\bigvee
-\bowtie
-\bigwedge
-\frown
-\rightharpoondown
-\det
-\dot{}
-\ddot{}
-\lg
-\log
-\oplus
-\ominus
-\otimes
-\diamondsuit
-\rfloor
-% \end  % already exist in non-Math part -Ak
-\hat{}
-\tanh
-\vdots
-\bigcap
-\bigcup
-\bigsqcup
-\heartsuit
-\longmapsto
-\bigtriangleup
-\preceq
-\odot
-\oint
-\grave{}
-\pmod{}
-\prod
-\frac{}{}
-\csc
-\circ
-\min
-\overline{}
-\arg
-\overbrace{}
-\amalg
-\vee
-\equiv
-\downarrow
-\imath
-\propto
-% \begin      % already in non-Math list
-\neq
-\hookleftarrow
-\hookrightarrow
-\bigtriangledown
-\bar{}
-% \newcommand   % already in non-Math list
-\overleftarrow
-\overrightarrow
-\Leftarrow
-\Longleftarrow
-\Leftrightarrow
-\Longrightarrow
-\neg
-\bigcirc
-\Longleftrightarrow
-\dagger
-\ddagger
-\hbar
-\coprod
-\cosh
-\coth
-\cong
-\vec{}
-\dim
-\mid
-\hom
-\bmod
-\quad
-\doteq
-\qquad
-\mapsto
-\backslash
-\diamond
-\geq
-\deg
-\gcd
-\gg
-\div
-\dashv
-\oslash
-\vdash
-
-% Font changes
-\mathbf{}
-\mathsf{}
-\mathcal{}
-\boldmath     % This command's actually given in text mode
-\unboldmath   % This command's actually given in text mode
-\mathrm{}
-\mathtt{}
-\mathit{}
-\mathnormal{}  %not in lamport, but it should be safe
-\scriptstyle
-\scriptscriptstyle
-\textstyle
-\displaystyle
-
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % There are some environments which reLyX doesn't have an equivalent for.
@@ -912,26 +666,11 @@ titlepage
 \end{reLyXre}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% There are some math commands which LyX doesn't support. If there's an
-% equivalent command that it *does* support, then we might as well
-% translate it.
-%    While copying things in math mode, reLyX will replace anything of the
-% following commands with (exactly) whatever text is in braces, so, e.g.,
-% $x\sb{a}$ will be converted to $x_{a}$ in the LyX file.
-%    In most cases, this simply avoids "evil red text" in math mode, but
-% in a couple cases, it actually fixes things (e.g. '\ ')
-%    Tokens to replace should be "normal" tokens, backslash followed by a
-% nonletter or one or more letters. (Token may also have * at the end.)
+% Keep bugging AndrĂ© until he adds 'support' for these in mathed,
+% meaning that they can be removed from here.
 
 \begin{reLyXmt}
 \sb    {_}
 \sp    {^}
-\|     {\Vert}
-\vert  {|}
-\      {\,\,}    % That's '\ ', same length (6/18 quad) as two '\,' tokens
-\to    {\rightarrow}
-\gets  {\leftarrow}
-\le    {\leq}
-\ge    {\geq}
 \ensuremath   {}  % If it's in math mode, \ensuremath is unnec.
 \end{reLyXmt}