% Stylesheet for pygments enhanced reStructured Text
% ==================================================
%
% :Author:    Günter Milde
% :Contact:   milde@users.berlios.de
% :Revision:  $Revision: 5534 $
% :Date:      $Date: 2005-06-28$
% :Copyright: © 2007, 2009 G. Milde,
%             Released  without warranties or conditions of any kind
%             under the terms of the Apache License, Version 2.0
%             http://www.apache.org/licenses/LICENSE-2.0
%
% This example style sheet provides syntax highlight for documents generated
% with the `rst2latex-highlight` pygments-enhanced Docutils front end.
%
%
% Separate paragraphs by vertical space
% -------------------------------------
%
% This is not required for syntax highlight, but usually a good idea for
% documents with lots of source code.
% ::

\usepackage{parskip}

% Highlight code blocks
% ---------------------
%
% Pygments_ has an option to generate stylesheets for HTML and LaTeX.
% However, the "kryptic" codes used for HTML and LaTeX differ, so that
% the output of the command
% `pygmentize -S default -f latex -O commandprefix=docutilsrole`
% fails to work with rst2latex-highlight.
% ::

% Colours with LaTeX
\usepackage{color}

% Standard Postscript fonts
\usepackage[sc]{mathpazo}
\RequirePackage[scaled=.95]{helvet}     % scaled to fit Palatino

% Courier monotype fonts with bold and italic variants
% \usepackage{courier}
% TXfonts monotype
\renewcommand{\ttdefault}{txtt}

% keyword
\newcommand\DUrolek[1]{\textbf{\textbf{#1}}}
% new function
\newcommand\DUrolenf[1]{\textcolor[rgb]{0.00,0.25,0.82}{#1}}
% punktuation
% \newcommand\DUrolep[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}
% string
\newcommand\DUroles[1]{\textcolor[rgb]{0.40,0.40,0.40}{\textit{#1}}}
% number
% \newcommand\DUrolemf[1]{\textcolor[rgb]{0.00,0.53,0.00}{#1}}
% operator
\newcommand\DUrolear[1]{\textcolor[rgb]{0.72,0.53,0.04}{#1}}

% Incomplete!

% All STANDARD_TYPES below may appear in the output. (But only the ones
% you like to style need to be defined :-)

% STANDARD_TYPES = {
%     Token:                         '',
%
%     Text:                          '',
%     Whitespace:                    'w',
%     Error:                         'err',
%     Other:                         'x',
%
%     Keyword:                       'k',
%     Keyword.Constant:              'kc',
%     Keyword.Declaration:           'kd',
%     Keyword.Pseudo:                'kp',
%     Keyword.Reserved:              'kr',
%     Keyword.Type:                  'kt',
%
%     Name:                          'n',
%     Name.Attribute:                'na',
%     Name.Builtin:                  'nb',
%     Name.Builtin.Pseudo:           'bp',
%     Name.Class:                    'nc',
%     Name.Constant:                 'no',
%     Name.Decorator:                'nd',
%     Name.Entity:                   'ni',
%     Name.Exception:                'ne',
%     Name.Function:                 'nf',
%     Name.Property:                 'py',
%     Name.Label:                    'nl',
%     Name.Namespace:                'nn',
%     Name.Other:                    'nx',
%     Name.Tag:                      'nt',
%     Name.Variable:                 'nv',
%     Name.Variable.Class:           'vc',
%     Name.Variable.Global:          'vg',
%     Name.Variable.Instance:        'vi',
%
%     Literal:                       'l',
%     Literal.Date:                  'ld',
%
%     String:                        's',
%     String.Backtick:               'sb',
%     String.Char:                   'sc',
%     String.Doc:                    'sd',
%     String.Double:                 's2',
%     String.Escape:                 'se',
%     String.Heredoc:                'sh',
%     String.Interpol:               'si',
%     String.Other:                  'sx',
%     String.Regex:                  'sr',
%     String.Single:                 's1',
%     String.Symbol:                 'ss',
%
%     Number:                        'm',
%     Number.Float:                  'mf',
%     Number.Hex:                    'mh',
%     Number.Integer:                'mi',
%     Number.Integer.Long:           'il',
%     Number.Oct:                    'mo',
%
%     Operator:                      'o',
%     Operator.Word:                 'ow',
%
%     Punctuation:                   'p',
%
%     Comment:                       'c',
%     Comment.Multiline:             'cm',
%     Comment.Preproc:               'cp',
%     Comment.Single:                'c1',
%     Comment.Special:               'cs',
%
%     Generic:                       'g',
%     Generic.Deleted:               'gd',
%     Generic.Emph:                  'ge',
%     Generic.Error:                 'gr',
%     Generic.Heading:               'gh',
%     Generic.Inserted:              'gi',
%     Generic.Output:                'go',
%     Generic.Prompt:                'gp',
%     Generic.Strong:                'gs',
%     Generic.Subheading:            'gu',
%     Generic.Traceback:             'gt',
% }
