1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
% LaTeX test file for kate's syntax highlighting and code folding
\ordinaryLaTeXcommandwithoption[10pt,a4paper]{article}
% BEGIN region
%comment, this is all ok % $
\%no comments please
\\%comment
% END of region
\newcommand{\nohighlighting}
\section{normal}
\ref{blue}
\pageref{blue}
\cite{blue}
\begin{environmentshavespecialcolors}
normal
\end{environmentshavespecialcolors}
$equations are green, \commands somewhat darker$
normal
$$equations are green, \commands somewhat darker$$
normal
\(
\frac{1}{2}
\begin{test}
\end{test}
\)
normal
\[
%comment
displaymath
\]
normal
\begin{equation}
green\darkergreen
\begin{test}
\test
\end{test}
\end{equation}
\begin{equation*}
green\darkergreen
%comment
\begin{test}
\test
\end{test}
\%no comment
\end{equation*}
\{ %this should be comment
\verb%this shouldn't be%and this should be normal text
\begin{verbatim}
text inside a verbatim environment is also treated special $ %,
you can even put a \begin{verbatim} inside
\end{verbatim}
normal
\begin{Verbatim}
&@@#^%&^#$
\end{Verbatim}
\begin{Verbatim*}
@*&^#@*(^#(*@&
\end{Verbatim*}
normal
% https://bugs.kde.org/show_bug.cgi?id=323048
% cases should be highlighted the same
\begin{align}
U_{bg}(z) = \begin{cases}
U_{max} e^{-(b(z-z_0))^4} &\mbox {if } z \leq z_0,\\
U_{max} &\mbox {if } z > z_0,\\
\end{cases}
\end{align}
% Spelling checker test document
% Anything that is an "Option Text" should not be spell checked
% The optional and required arguments here should NOT be spell checked
\documentclass[letterpaper,11pt,final]{article}
\usepackage{amssymb}
\usepackage[pdftex]{graphicx}
\usepackage[width=0.9\textwidth,small]{caption}
% The lengths specified here should NOT be spell checked
\setlength{\columnsep}{1cm}
\setlength{\headheight}{0in}
\setlength{\parskip}{\medskipamount}
% Argument to column should NOT be spell checked
\begin{columns}
\column{3in}
\end{columns}
% The arguments to these commands should NOT be spell checked
\input{../commands.tex}
\rule{0pt}{2.5ex}
\special{papersize=\the\paperwidth,\the\paperheight}
\hspace*{-0.4in}
\hspace{4in}
\setcounter{secnumdepth}{3}
\newboolean{ElectronicVersion}
\setboolean{ElectronicVersion}{true}
\geometry{verbose, dvips,
width=422.695pt, marginparsep=0pt, marginparwidth=0pt,
top=72.27pt, headheight=12pt, headsep=36pt, footskip=30pt, bottom=72.27pt
}
% Stuff with colours
\usepackage{color}
\definecolor{darkgreen}{rgb}{0.00,0.6,0.00}
\newcommand{\green}[1]{\textcolor{darkgreen}{#1}}
% Edge cases I'm not sure how to handle yet
\newcommand{\kh}{\kappa_h} % We do not want to spell check here, so Option Text
\newcommand{\rms}{Root mean square} % We do want to spell check here, so Normal Text
|