1% /*************************************************************************** 2% begin : Mon 9 october 2006 3% copyright : (C) 2006 by Holger Danielsson, Thomas Braun 4% ***************************************************************************/ 5% 6% /*************************************************************************** 7% * * 8% * This program is free software; you can redistribute it and/or modify * 9% * it under the terms of the GNU General Public License as published by * 10% * the Free Software Foundation; either version 2 of the License, or * 11% * (at your option) any later version. * 12% * * 13% ***************************************************************************/ 14% description: test document for syntax file latex.xml 15% (syntax highlighting for \newcommand and \def and others) 16% compiles: no 17 18\newcommand{\abc}{ $ start { % comment 19 test { abc --> } } end } behind % comment 20 21\newcommand{\abc}[1]{ $ start { % comment 22 test { abc --> #1 } } end } behind % comment 23 24\newcommand{\abc}[1][default]{ $ start { % comment 25 test { abc --> #1 } } end } behind % comment 26 27\newcommand*{\abc}{ $ start { % comment 28 test { abc --> } } end } behind % comment 29 30\newcommand*{\abc}[1]{ $ start { % comment 31 test { abc --> #1 } } end } behind % comment 32 33\newcommand*{\abc}[1][default]{ $ start { % comment 34 test { abc --> #1 } } end } behind % comment 35 36 37\renewcommand{\abc}{ $ start { % comment 38 test { abc --> } } end } behind % comment 39 40\renewcommand{\abc}[1]{ $ start { % comment 41 test { abc --> #1 } } end } behind % comment 42\renewcommand{\abc}[1][default]{ $ start { % comment 43 test { abc --> #1 } } end } behind % comment 44 45 46\renewcommand*{\abc}{ $ start { % comment 47 test { abc --> } } end } behind % comment 48 49\renewcommand*{\abc}[1]{ $ start { % comment 50 test { abc --> #1 } } end } behind % comment 51\renewcommand*{\abc}[1][default]{ $ start { % comment 52 test { abc --> #1 } } end } behind % comment 53 54 55\providenewcommand{\abc}{ $ start { % comment 56 test { abc --> } } end } behind % comment 57 58\providenewcommand{\abc}[1]{ $ start { % comment 59 test { abc --> #1 } } end } behind % comment 60 61\providenewcommand{\abc}[1][default]{ $ start { % comment 62 test { abc --> #1 } } end } behind % comment 63 64 65\providenewcommand*{\abc}{ $ start { % comment 66 test { abc --> } } end } behind % comment 67 68\providenewcommand*{\abc}[1]{ $ start { % comment 69 test { abc --> #1 } } end } behind % comment 70 71\providenewcommand*{\abc}[1][default]{ $ start { % comment 72 test { abc --> #1 } } end } behind % comment 73 74 75\def\xyz{ $ start { % comment 76 test{ abc --> } } end } behind % comment 77 78\def\xyz#1{ $ start { % comment 79 test{ abc --> #1 } } end } behind % comment 80 81\ref{test} 82 83\subref{test} 84\subref*{test} 85