Warning, /office/kile/src/internal-testing/syntax-math1.tex is written in an unsupported language. File is not indexed.

0001 % /***************************************************************************
0002 %     begin                : Mon 9 october 2006
0003 %     copyright            : (C) 2006 by Holger Danielsson, Thomas Braun
0004 %  ***************************************************************************/
0005 % 
0006 % /***************************************************************************
0007 %  *                                                                         *
0008 %  *   This program is free software; you can redistribute it and/or modify  *
0009 %  *   it under the terms of the GNU General Public License as published by  *
0010 %  *   the Free Software Foundation; either version 2 of the License, or     *
0011 %  *   (at your option) any later version.                                   *
0012 %  *                                                                         *
0013 %  ***************************************************************************/
0014 %  description: test document for syntax file latex.xml
0015 %               (syntax highlighting for mathmode)
0016 %  compiles:    no              
0017 % 
0018 
0019 {
0020 %  basic math mode
0021 \[blah \alpha\] xyz \par
0022 \(blah \alpha\) xyz \par
0023 $blah \alpha$ xyz \par
0024 $$blah \alpha$$ xyz \par
0025 
0026 % one space at the end
0027 \[blah \alpha \] xyz \par
0028 \(blah \alpha \) xyz \par
0029 $blah \alpha $ xyz \par
0030 $$blah \alpha $$ xyz \par
0031 
0032 % one space at the start
0033 \[ blah \alpha\] xyz \par
0034 \( blah \alpha\) xyz \par
0035 $ blah \alpha$ xyz \par
0036 $$ blah \alpha$$ xyz \par
0037 
0038 % a bit more advanced
0039 \(blah \alpha \command[sad\alpha]{sad\alpha}\) xyz
0040 \[blah \alpha \command[sad\alpha]{sad\alpha}\] xyz
0041 $blah \alpha \command[sad\alpha]{sad\alpha}$ xyz
0042 $$blah \alpha \command[sad\alpha]{sad\alpha}$$ xyz
0043 
0044 \(blah \alpha \command[sad\alpha]{sad\alpha} \) xyz
0045 \[blah \alpha \command[sad\alpha]{sad\alpha} \] xyz
0046 $blah \alpha \command[sad\alpha]{sad\alpha} $ xyz
0047 $$blah \alpha \command[sad\alpha]{sad\alpha} $$ xyz
0048 
0049 \( blah \alpha\command[sad\alpha]{sad\alpha} \) xyz
0050 \[ blah \alpha\command[sad\alpha]{sad\alpha} \] xyz
0051 $ blah \alpha\command[sad\alpha]{sad\alpha} $ xyz
0052 $$ blah \alpha\command[sad\alpha]{sad\alpha} $$ xyz
0053 }
0054 
0055 % equations
0056 {
0057 \begin{equation} xyz
0058         blah \alpha
0059 \end{equation} xyz
0060 %  in one line
0061 \begin{equation} xyz    blah \alpha\end{equation} xyz 
0062 %  two in one line
0063 \begin{equation} xyz    blah \alpha\end{equation} xyz \begin{equation} xyz      blah \alpha\end{equation} xyz 
0064 
0065 %  with additional environments inside
0066 \begin{eqnarray} blah
0067         \begin{split}
0068 (blah) blah \alpha & blah \\
0069 \text{ asd $ asd $ sdf}
0070         \end{split}
0071 \intertext{ asd $ asd $ sdf}
0072 a+b
0073 \mbox{asd $ asd $ sdf}
0074 \end{eqnarray} xyz 
0075 }
0076 
0077 % bullets
0078 
0079 \begin{alignat}{0}
0080         \frac{}{×}
0081 \text{×}
0082 \end{alignat}
0083 
0084 $\frac{}{×}$
0085 
0086 \begin{align}
0087         \frac{}{×}
0088 \end{align}
0089 
0090 % out of bug reports:
0091 {
0092 % #119617
0093 $$\phi_\ccc\circ\phi_a=(\ccc*\phi)_a\circ\phi_\ccc$$ 
0094 \begin{equation} a=b\nonumber\end{equation}
0095 xyz 
0096 \[blah blah \qedhere\] xyz
0097 }