% latex_test.tex
%
% Test file for NEdit's syntax highlighting of LaTeX.
% Feedback + suggestions appreciated!
% So far it's only a bug report, i.e. useless as any sort of test.
%
% Released under the same license as NEdit itself.
%
% Volker Kuhlmann
%   5, 13 Jan 2004


% Nedit 5.4, LaTeX default patterns
% In this example, the first "$" isn't recognised as entering math mode, only
% the second one is, causing run-away math colouring.
%
x xxxx xxxxxxxxxxx xxxxxx xxx xx xxxxxxx xxxxxxxxx xx xxxxxx xxx xxxxxx 
\[
	\newcommand\arr{\rightarrow}
	%
	\scalebox{0.99}{$ % 1.0 is 0.9pt too wide
	  \ntext{sensor} \arr 
	  \itext{ADC} \arr \itext{processing} \arr \itext{storage}
	  \arr \ntext{analysis}
	$}
\]
xxxx x xxxxxxxx xxxxxxx xxxxxxxxx xxx xxx xxxxxxxx, xxx xxxxxxxxxx xx xxxxx
xxxxxxx xxxxxxx xx xxxxxxxxx xxx xxxxxxxx xxxxxxxxxxxx. xxx xxxxxxxxxxxx xx xxx
xxx xxxxx xxxx xxxxxxx xx xxxxx xxxxxxx xxxxxxxxxx xxx xxxxxxxxx xx 
\xxxx{xxxx:xxxxxxxxxxxxxxx-xxx-xx-xxxxxxxxxx}.
xxxx \xxxxx xxxxxxxxx xxxx xx xxx xxx xxxxxxxxxx xxxxxx.
% this stops runaway syntax highlighting


% Nedit 5.4, LaTeX default patterns
% Matching braces of a command are not recognised.
% Worse, ^M to show matching braces has stopped working.
% 
\chapter{
	%comment
	xxxxxxxxxxxx xx xxxxxxxxxx
}
%
% This is ok:
\chapter{
	xxxxxxxxxxxx xx xxxxxxxxxx
}


% Braces of the \gobble aren't recognised, the \begin and \end aren't shown as
% matching. show-matching-brace of the \gobble doesn't work.
\gobble{
\begin{equation}	% DFT
	X(k)=\sum\limits _{n=1}^{N}
		x(n)*e^{\frac{-j2\pi (k-1)(n-1)}{N}}, 1 \leq k \leq N
\end{equation}
}
