Warning, /office/kile/src/internal-testing/syntax-cmds.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 \newcommand and \def and others)
0016 %  compiles:    no              
0017 
0018 \newcommand{\abc}{ $ start {                    % comment
0019            test { abc -->  } } end  }   behind  % comment
0020 
0021 \newcommand{\abc}[1]{ $ start {                 % comment
0022            test { abc --> #1 } } end  } behind  % comment
0023 
0024 \newcommand{\abc}[1][default]{ $ start {        % comment
0025            test { abc --> #1 } } end  } behind  % comment
0026 
0027 \newcommand*{\abc}{ $ start {                    % comment
0028            test { abc -->  } } end  }   behind  % comment
0029 
0030 \newcommand*{\abc}[1]{ $ start {                 % comment
0031            test { abc --> #1 } } end  } behind  % comment
0032 
0033 \newcommand*{\abc}[1][default]{ $ start {        % comment
0034            test { abc --> #1 } } end  } behind  % comment
0035 
0036 
0037 \renewcommand{\abc}{ $ start {                    % comment
0038            test { abc -->  } } end  }   behind  % comment
0039 
0040 \renewcommand{\abc}[1]{ $ start {                 % comment
0041            test { abc --> #1 } } end  } behind  % comment
0042 \renewcommand{\abc}[1][default]{ $ start {        % comment
0043            test { abc --> #1 } } end  } behind  % comment
0044 
0045 
0046 \renewcommand*{\abc}{ $ start {                    % comment
0047            test { abc -->  } } end  }   behind  % comment
0048 
0049 \renewcommand*{\abc}[1]{ $ start {                 % comment
0050            test { abc --> #1 } } end  } behind  % comment
0051 \renewcommand*{\abc}[1][default]{ $ start {        % comment
0052            test { abc --> #1 } } end  } behind  % comment
0053 
0054 
0055 \providenewcommand{\abc}{ $ start {                    % comment
0056            test { abc -->  } } end  }   behind  % comment
0057 
0058 \providenewcommand{\abc}[1]{ $ start {                 % comment
0059            test { abc --> #1 } } end  } behind  % comment
0060 
0061 \providenewcommand{\abc}[1][default]{ $ start {        % comment
0062            test { abc --> #1 } } end  } behind  % comment
0063 
0064 
0065 \providenewcommand*{\abc}{ $ start {                    % comment
0066            test { abc -->  } } end  }   behind  % comment
0067 
0068 \providenewcommand*{\abc}[1]{ $ start {                 % comment
0069            test { abc --> #1 } } end  } behind  % comment
0070 
0071 \providenewcommand*{\abc}[1][default]{ $ start {        % comment
0072            test { abc --> #1 } } end  } behind  % comment
0073 
0074 
0075 \def\xyz{ $ start  {                            % comment
0076            test{ abc -->  } } end  }    behind  % comment
0077 
0078 \def\xyz#1{ $ start  {                          % comment
0079            test{ abc --> #1 } } end  }  behind  % comment
0080 
0081 \ref{test}
0082 
0083 \subref{test}
0084 \subref*{test}