File: highlight.tex

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (344 lines) | stat: -rw-r--r-- 6,804 bytes parent folder | download
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
% 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
\verb!verbatim text! normal text

text \texttt{more 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

\begin{Verbatim}
\begin{verbatim}
This is a verbatim block.
\end{verbatim}
\end{Verbatim}

normal

% test alignat
\begin{alignat}{2}
A  &= B &= C \\
A  &= B &= C
\end{alignat}
normal text

\iffalse
\fill commented out text
\fi

% Math mode

Depending on the value of $x$ the equation \( f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \) may diverge or converge.
 
\[ f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \]
 
\[
S = \{ z \in \mathbb{C}\, |\, |z| < 1 \} \quad \textrm{and} \quad S_2=\partial{S}
\]

\[
\frac{
    \begin{array}[b]{r}
      \left( x_1 x_2 \right)\\
      \times \left( x'_1 x'_2 \right)
    \end{array}
  }{
    \left( y_1y_2y_3y_4 \right)
  }
\]

\begin{eqnarray*}
\begin{eqnarray*}
f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\textstyle f(x) = \textstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptstyle f(x) = \scriptstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptscriptstyle f(x) = \scriptscriptstyle \sum_{i=0}^{n} \frac{a_i}{1+x}
\end{eqnarray*}
\end{eqnarray*}

\begin{xalignat}{3}
i_{11} & =i_{23}\nonumber
\end{xalignat}

c
\begin{equation}
c
\begin{aligned}
a & b\\
c & d
\end{aligned}
c
\end{equation}
c

$$E=mc^2$$
 
\begin{equation}
E=m
\end{equation}

\begin{equation
x=3\textrm{plop}
\end{equation}

\[ \begin{array}{llll}
  x^3 = (-x)^3 & \text{if $x > 0$}\\
  x^3 = (-x)^3 & \text{if {$x > 0$}}\\
  x^3 = (-x)^3 & \text{if {\color{green} $x > 0$}}\\
\end{array} \]

\section*{Notes for My Paper}

\begin{center}
\begin{tabular}{ |c|c|c| } 
 \hline
 cell1 & cell2 & cell3 \\ 
 cell4 & cell5 & cell6 \\ 
 cell7 & cell8 & cell9 \\ 
 \hline
\end{tabular}

\begin{tabular*}{0.75\textwidth}{@{\extracolsep{\fill} } | c | c | c | r | }
  \hline
  label 1 & label 2 & label 3 & label 4 \\
  \hline 
  item 1  & item 2  & item 3  & item 4  \\
  \hline
\end{tabular*}

\begin{tabular*}{0.75\textwidth}{ | c | c | c | r | }
  \hline
  label 1 & label 2 & label 3 & label 4 \\
  \hline 
  item 1  & item 2  & item 3  & item 4  \\
  \hline
\end{tabular*}
\end{center}


\begin{tabularx}{1\textwidth}{ |>{\setlength\hsize{1\hsize}\centering}X|>{\setlength\hsize{1\hsize}\raggedleft}X@{} >{\setlength\hsize{1\hsize}\raggedright}X|>{\setlength\hsize{1\hsize}\centering}X| } 
  \hline
Label 1 & \multicolumn{2}{>{\centering\setlength\hsize{2\hsize} }X|}{Label 2} & Label 3\tabularnewline
\hline 
  123  & 123  & 456  & 123  \tabularnewline
  \hline
  123  & 123  & 456  & 123  \tabularnewline
  \hline
\end{tabularx}

\begin{lstlisting}
Write('Case insensitive ');
Write('Pascal keywords.');
\end{lstlisting}

\begin{lstlisting}%[frame=single]
Write('Case insensitive ');
Write('Pascal keywords.');
\end{lstlisting}

\begin{lstlisting}[frame=single]
Write('Case insensitive ');
Write('Pascal keywords.');
\end{lstlisting}

\begin{lstlisting}[frame=single] % blah blah
Write('Case insensitive ');
Write('Pascal keywords.');
\end{lstlisting}

\begin{lstlisting}
[frame=single] % blah blah
Write('Case insensitive ');
Write('Pascal keywords.');
\end{lstlisting}

\begin{minted}{python}
def foo(x):
    return x
\end{minted}

\begin{minted}
% blah blah
{python}
def foo(x):
    return x
\end{minted}

\begin{minted}[frame=lines]{python}
def foo(x):
    return x
\end{minted}

\begin{minted}
% plop
[frame=lines,
fontsize=\footnotesize
]
% ok
{python}
def foo(x):
    return x
\end{minted}

\begin{comment}
This is a comment block.
\end{comment}

\documentclass{article}
\usepackage{fancyvrb}

\documentclass[12pt]{article}
\begin{document}

Text that has a footnote\footnote{This $i_s$ the \[i_s\] $$x_i$$ \(x_i\)footnote}\addtocounter{footnote}{-1}\addtocounter{footnote}{-1} looks like this. Later text referring to same footnote\footnotemark uses the other command.

\end{document}

% A delimiter is not required before "\" in keywords of kind "\command" (see bug #413493)
\begin{equation}123\end{equation}

\begin{comment}Comment\end{comment}
\iffalse text\fi normal text

text\begin{tabular}text\end{tabular}
text\begin{a}text\end{a}

% Close brackets correctly in some commands (see bug #415384)
\input{\a{}}
\cites{ text { text } text }

% Parentheses within [ ... ] (see bug #418979)
\cite[eq. (1.1)]{some_reference}
\cite[eq. \(x^n + y^n = z^n\)]{some reference}

% Close folding correctly in "\end{...}" and in region markers (see bug #419125)
\begin{document}
  \begin{abstract}

  \end{abstract}

  \begin{itemize}
    \item[\(\bullet\)]
    %%  BEGIN something
    Here are some text describiing a new theorem. In the equation
    \begin{equation}
      E = mc^2
    \end{equation}
    we have a solution for energy-mass equivalence.
    %% END

    \item[\(\bullet\)]
    \begin{align*}
      B(z) &= p^r \sum_{k \geq 0} \binom{-r}{k} (-1)^k (1 - p)^k z^k \\
      B(z) &= p^r \sum_{k \geq 0} \binom{-r}{k} (-(1-p) z)^k
    \end{align*}
  \end{itemize}
\end{document}

% Allow Math environment within another Math environment (see bug #435086)
\begin{gather*}
    a = 5 \\
    y = \begin{cases}
      0 & x < 2 \\
      2x-4 & x > 2 \\
    \end{cases} \\
    x = 5 \\
    z = 5
\end{gather*}

\begin{bashcode}
    find . -name '*.jpg' -print | parallel --bar convert '{}' '{.}.png'
    \(ToRemember\) # Remember expression in brackets and then use
    "${RAXML}" -s ${INPUT} # All the parameters as usually...
\end{bashcode}

\[\begin{matrix}2\\3\\3\end{matrix}\]

\section{title}{\small bla bla}

\section  {title}
{\small bla bla}

\section
  {title}
{\small bla bla}

$\begin{tabu*} to 140mm {|X[$c]}
    \alpha & \beta & \gamma \\
    \sum_i \frac{a_i}{x_i} & 0 & \cdot \\
\end{tabu}$

\begin{tabu}{|c|*{21}{X[$c]|}}
    \toprule
    Notes $x_i$ & 0 & 0b\\
    \hline
    Notes $x_i$ & 0 & 0b\\
    \bottomrule
\end{tabu}