Example stylesheets for syntax highlight of code snippets.
[docutils/kirr.git] / sandbox / code-block-directive / data / pygments-default.sty
blob45cc0363ed8cfaa08b02f5c37ae8807c3f02d71b
1 % pygments-default.sty
2 % ********************
3 %
4 % Stylesheet for pygments enhanced reStructured Text
5 % ==================================================
6 %
7 % :Author: Günter Milde
8 % :Contact: milde@users.berlios.de
9 % :Revision: $Revision: 5534 $
10 % :Date: $Date: 2005-06-28$
11 % :Copyright: © 2007, 2009 G. Milde,
12 % Released without warranties or conditions of any kind
13 % under the terms of the Apache License, Version 2.0
14 % http://www.apache.org/licenses/LICENSE-2.0
16 % This example style sheet provides syntax highlight for documents generated
17 % with the legacy front end `rst2latex-pygments`..
19 % (For the recommended front end `rst2latex-highlight` use
20 % ``pygments-docutilesroles.sty``.)
22 % Separate paragraphs by vertical space
23 % -------------------------------------
25 % This is not needed for syntax highlight, but usually a good idea for
26 % documents with lots of source code.
27 % ::
29 \usepackage{parskip}
31 % Colour code blocks
32 % ------------------
34 % Pygments has an option to generate stylesheets for html and latex.
35 % The following code is based on the output of the command
36 % `pygmentize -S default -f latex`::
38 \usepackage{fancyvrb}
39 \usepackage{color}
41 \newcommand\at{@}
42 \newcommand\lb{[}
43 \newcommand\rb{]}
44 \newcommand\PYba[1]{\textcolor[rgb]{0.67,0.13,1.00}{\textbf{#1}}}
45 \newcommand\PYaz[1]{\textcolor[rgb]{0.00,0.25,0.82}{#1}}
46 \newcommand\PYay[1]{\textcolor[rgb]{0.67,0.13,1.00}{#1}}
47 \newcommand\PYax[1]{\textcolor[rgb]{0.00,0.63,0.00}{#1}}
48 \newcommand\PYbc[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
49 \newcommand\PYas[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
50 \newcommand\PYar[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
51 \newcommand\PYaq[1]{\textcolor[rgb]{0.73,0.27,0.27}{\textit{#1}}}
52 \newcommand\PYap[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
53 \newcommand\PYaw[1]{\textcolor[rgb]{0.67,0.13,1.00}{\textbf{#1}}}
54 \newcommand\PYav[1]{\textcolor[rgb]{0.60,0.60,0.60}{\textbf{#1}}}
55 \newcommand\PYau[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
56 \newcommand\PYat[1]{\textcolor[rgb]{0.67,0.13,1.00}{\textbf{#1}}}
57 \newcommand\PYak[1]{\textbf{#1}}
58 \newcommand\PYaj[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}}
59 \newcommand\PYai[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
60 \newcommand\PYah[1]{\textcolor[rgb]{0.63,0.63,0.00}{#1}}
61 \newcommand\PYao[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}}
62 \newcommand\PYan[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}}
63 \newcommand\PYam[1]{\textcolor[rgb]{0.73,0.40,0.13}{\textbf{#1}}}
64 \newcommand\PYal[1]{\textcolor[rgb]{0.67,0.13,1.00}{\textbf{#1}}}
65 \newcommand\PYac[1]{\textcolor[rgb]{0.73,0.27,0.27}{#1}}
66 \newcommand\PYab[1]{\textit{#1}}
67 \newcommand\PYaa[1]{\textcolor[rgb]{0.50,0.50,0.50}{#1}}
68 \newcommand\PYag[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
69 \newcommand\PYaf[1]{\textcolor[rgb]{0.00,0.53,0.00}{\textit{#1}}}
70 \newcommand\PYae[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
71 \newcommand\PYad[1]{\textcolor[rgb]{0.73,0.27,0.27}{#1}}
72 \newcommand\PYbb[1]{\textcolor[rgb]{0.73,0.27,0.27}{#1}}
73 \newcommand\PYaZ[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
74 \newcommand\PYaY[1]{\textcolor[rgb]{0.00,0.00,0.50}{\textbf{#1}}}
75 \newcommand\PYaX[1]{\textcolor[rgb]{0.00,0.50,0.00}{\textbf{#1}}}
76 \newcommand\PYbd[1]{\textcolor[rgb]{0.73,0.40,0.53}{\textbf{#1}}}
77 \newcommand\PYbe[1]{\textcolor[rgb]{0.67,0.13,1.00}{\textbf{#1}}}
78 \newcommand\PYaS[1]{\textcolor[rgb]{0.82,0.25,0.23}{\textbf{#1}}}
79 \newcommand\PYaR[1]{\textcolor[rgb]{0.50,0.00,0.50}{\textbf{#1}}}
80 \newcommand\PYaQ[1]{\textcolor[rgb]{0.00,0.53,0.00}{\textit{#1}}}
81 \newcommand\PYaP[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
82 \newcommand\PYaW[1]{\textcolor[rgb]{0.73,0.27,0.27}{#1}}
83 \newcommand\PYaV[1]{\textcolor[rgb]{0.67,0.13,1.00}{#1}}
84 \newcommand\PYaU[1]{\textcolor[rgb]{0.73,0.27,0.27}{#1}}
85 \newcommand\PYaT[1]{\textcolor[rgb]{0.00,0.00,1.00}{\textbf{#1}}}
86 \newcommand\PYaK[1]{\textcolor[rgb]{0.00,0.53,0.00}{#1}}
87 \newcommand\PYaJ[1]{\textcolor[rgb]{0.67,0.13,1.00}{#1}}
88 \newcommand\PYaI[1]{\textcolor[rgb]{0.00,0.63,0.00}{#1}}
89 \newcommand\PYaH[1]{\textcolor[rgb]{0.73,0.27,0.27}{#1}}
90 \newcommand\PYaO[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
91 \newcommand\PYaN[1]{\textcolor[rgb]{0.73,0.27,0.27}{#1}}
92 \newcommand\PYaM[1]{\textcolor[rgb]{0.00,0.00,0.50}{\textbf{#1}}}
93 \newcommand\PYaL[1]{\textcolor[rgb]{0.00,0.00,1.00}{#1}}
94 \newcommand\PYaC[1]{\textcolor[rgb]{0.63,0.00,0.00}{#1}}
95 \newcommand\PYaB[1]{\textcolor[rgb]{0.00,0.53,0.00}{\textit{#1}}}
96 \newcommand\PYaA[1]{\textcolor[rgb]{0.67,0.13,1.00}{#1}}
97 \newcommand\PYaG[1]{\textcolor[rgb]{0.67,0.13,1.00}{\textbf{#1}}}
98 \newcommand\PYaF[1]{\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{#1}}
99 \newcommand\PYaE[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
100 \newcommand\PYaD[1]{\textcolor[rgb]{1.00,0.00,0.00}{#1}}