Warning, /office/kile/src/internal-testing/syntax-generic.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 %               (general syntax highlighting)   
0016 %  compiles:    no
0017 
0018 \section{xyz}            % ok: sectioning command (red), parameter in black
0019 
0020 \section[short]{xyz}     % ok
0021 
0022 \section*{xyz}           % ok: star belongs to the sectioning command
0023 
0024 \section*[short]{xyz}    % ok
0025 
0026 \sectionabc{xyz}         % command, parameter in black
0027 
0028 \sectionabc[short]{xyz}  % command
0029 
0030 \sectionabc*{xyz}        % ok: star belongs to the command
0031 
0032 \sectionabc*[short]{xyz} % ok
0033 
0034 \command*{parameter}     % ok
0035 
0036 
0037 \verb|a| abc             % a in verbatim mode
0038 
0039 \verb|abc                % only abc in verbatim mode
0040 abc                      % no verbatim mode more
0041 
0042 \verb*aba abc            % only b in verbatim mode
0043 
0044 \verbabc  abc            % normal command
0045 
0046 \verb|aaaassss sss| abc  % verbatim mode
0047 
0048 \rput*                   % \rput command (including star)
0049 
0050 \rput56                  % \rput command, 56 in black
0051 
0052 \rput=ab                 % \rput command, =ab in black
0053 
0054 \rput*ab                 % \rput command, ab in black
0055 
0056 $ x^2  $$ \] $ abc       % error; $$ and \]
0057 
0058 \( x^2 $$ \] $ abc       % error; $$ and \]
0059 
0060 $ x^2 $$ \] \) abc       % error; $$ and \]
0061 
0062 $$ x^2 $$ abc
0063 
0064 $$ x^2 $ \) \] $$ abc    % error; $, \) and \]
0065 
0066 \[ x^2 $$ $ \) \] abc    % error; $$, $ and \)
0067 
0068 \begin{XYZverbatim}      % environment
0069          xffg
0070 \end{XYZverbatim}
0071 
0072 \begin{verbatimXYZ}      % environment
0073          xffg
0074 \end{verbatimXYZ}
0075 
0076 \begin{verbatimX}        % environment
0077          xffg
0078 \end{verbatimX}
0079 
0080 \begin{verbatim}         % environment
0081          xffg            % verbatim mode
0082 \end{verbatim}
0083 
0084 \begin   {verbatim}      % environment
0085          xffg            % verbatim mode
0086 \end   {verbatim}
0087 
0088 \begin{verbatim*}        % environment
0089          xffg            % verbatim mode
0090 \end{verbatim*}
0091 
0092 % \begin{verbatim]       % comment
0093 %          xffg
0094 % \end{verbatim}
0095 
0096 \begin{verbatim*XYZ}     % error: *XYZ
0097          xffg
0098 \end{verbatim*XYZ}
0099 
0100 \begin{verbatim56}       % error: 56
0101          xffg
0102 \end{verbatim56}
0103 
0104 \begin{verbatim=ab}      % error: =ab
0105          xffg
0106 \end{verbatim=ab}
0107 
0108 \begin{lstlisting}       % environment
0109  verbatim                % verbatim mode
0110 \end{lstlisting}
0111 
0112 \begin{lstlisting}[frame=tb,           % environment, parameter in black
0113                    language=pascal]
0114  verbatim                              % verbatim mode
0115 \end{lstlisting}
0116 
0117 \begin{a}                % environment
0118          xffg
0119 \end{a}
0120 
0121 \begin{a*}               % environment
0122          xffg
0123 \end{a*}
0124 
0125 \begin{xyz}              % environment
0126 asd
0127 \end{xyz}
0128 
0129 \begin{xyz*}
0130 asd
0131 \end{xyz*}
0132 
0133 
0134 \begin{xyz]              % error: ]
0135 asd
0136 \end{xyz}
0137 
0138 \begin{xyz*ab}           % error: *ab
0139 asd
0140 \end{xyz*ab}
0141 
0142 \begin{xyz=ab}           % error: =ab
0143 asd
0144 \end{xyz=ab}
0145 
0146 \begin{xyz56}            % error: 56
0147 asd
0148 \end{xyz56}
0149 
0150 \begin{align}            % environment
0151  1&\le 2 \\              % mathmode
0152  &\le  \\
0153  &\le 
0154 \end{align}
0155 
0156 \begin {align*}          % environment
0157  1&\le 2 \\              % mathmode
0158  &\le  \\
0159  &\le 
0160 \end{align*}
0161 
0162 \begin{align}            % environment
0163 $ 1&\le 2 \\             % error: $
0164 $$ &\le  \\              % error: $$
0165 \( \) &\le               % error: \( and \)
0166 \[ \]                    % error: \[ and \]
0167 \end{align}
0168 
0169 \begin{align}{2}                  % environment
0170 x^2 &= 1  &\hskip2cm  1 &= 2 \\   % mathmode
0171 � &= �  &         � &= � \\
0172 � &= �  &         � &= �
0173 \end{align}
0174  
0175 \begin{XYZalign}         % environment
0176  1&= x^2 \\
0177 3 &=  4\\
0178  5&=6
0179 \end{XYZalign}
0180 
0181 \begin{alignXYZ}         % environment
0182  1&= x^2 \\
0183 3 &=  4\\
0184  5&=6
0185 \end{alignXYZ}
0186 
0187 \begin{alignX}           % environment
0188  1&= x^2 \\
0189 3 &=  4\\
0190  5&=6
0191 \end{alignX}
0192 
0193 \begin{align*XYZ}        % error: *XYZ
0194  1&= x^2 \\
0195 3 &=  4\\
0196  5&=6
0197 \end{align*XYZ}
0198 
0199 \begin{align56}          % error: 56
0200  1&= x^2 \\
0201 3 &=  4\\
0202  5&=6
0203 \end{align56}
0204 
0205 \begin{align=ab}         % error: =ab
0206  1&= x^2 \\
0207 3 &=  4\\
0208  5&=6
0209 \end{align=ab}
0210 
0211 $\begin{matrix}          % mathmode
0212  1&2  \\
0213  3& 4 \\
0214  5&6 
0215 \end{matrix}$
0216 
0217 $                        % mathmode
0218 \begin{align}            % error: align env in mathmode
0219  1&= x^2 \\
0220 3 &=  4\\
0221  5&=6
0222 \end{align}
0223 $
0224 
0225 \begin{   xyz}               % error: spaces
0226 x^2 
0227 \end{xyz   }
0228 
0229 
0230 \begin{al   ign}             % error: spaces
0231 x^2 \intertext{normal} y^2
0232 \end{align    }
0233 
0234 
0235 \begin{verba t  im}          % error: spaces
0236 x^2 \intertext{normal} y^2
0237 \end{ve rbatim}
0238 
0239 % iffalse
0240 
0241 \iffalse ×  test 
0242 test
0243 test
0244 \begin{abstract}
0245         
0246 \end{abstract}
0247 \fi
0248 
0249 \iffalse × test \else test × \fi
0250 
0251 \iffalse × test
0252 test
0253 test $ set $
0254 \else
0255  test
0256  test × \fi
0257 
0258 \iffalse $asdasd$ \fi
0259 test
0260 
0261 % comment sign as percentage sign
0262 test \% asdfsf
0263 
0264 % @ in commands (altough this needs \mathatletter and \makeatanother)
0265 \my@asdasd