diff options
Diffstat (limited to 'latex_docutils/texmf/tex/latex/docUtils/DUpygments')
3 files changed, 365 insertions, 0 deletions
diff --git a/latex_docutils/texmf/tex/latex/docUtils/DUpygments/DUpygments-monokai.sty b/latex_docutils/texmf/tex/latex/docUtils/DUpygments/DUpygments-monokai.sty new file mode 100644 index 0000000..7c93d2a --- /dev/null +++ b/latex_docutils/texmf/tex/latex/docUtils/DUpygments/DUpygments-monokai.sty @@ -0,0 +1,142 @@ +% Stylesheet for syntax highlight with Docutils +% Generated by pygments_css2sty.py from a Pygments CSS style +% (output of `pygmentize -S <style> -f html`). + +\RequirePackage{color} +\providecommand*\DUrolehll[1]{\textcolor[rgb]{0.29,0.28,0.24}{#1}} +% Comment +\providecommand*\DUrolec[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Error +\providecommand*\DUroleerr[1]{\textcolor[rgb]{0.59,0.00,0.31}{#1}} +% Keyword +\providecommand*\DUrolek[1]{\textcolor[rgb]{0.40,0.85,0.94}{#1}} +% Literal +\providecommand*\DUrolel[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Name +\providecommand*\DUrolen[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Operator +\providecommand*\DUroleo[1]{\textcolor[rgb]{0.98,0.15,0.45}{#1}} +% Punctuation +\providecommand*\DUrolep[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Comment.Hashbang +\providecommand*\DUrolech[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Comment.Multiline +\providecommand*\DUrolecm[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Comment.Preproc +\providecommand*\DUrolecp[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Comment.PreprocFile +\providecommand*\DUrolecpf[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Comment.Single +\expandafter\providecommand\csname DUrolec1\endcsname[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Comment.Special +\providecommand*\DUrolecs[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Generic.Deleted +\providecommand*\DUrolegd[1]{\textcolor[rgb]{0.98,0.15,0.45}{#1}} +% Generic.Emph +\providecommand*\DUrolege[1]{\textit{#1}} +% Generic.Inserted +\providecommand*\DUrolegi[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Generic.Strong +\providecommand*\DUrolegs[1]{\textbf{#1}} +% Generic.Subheading +\providecommand*\DUrolegu[1]{\textcolor[rgb]{0.46,0.44,0.37}{#1}} +% Keyword.Constant +\providecommand*\DUrolekc[1]{\textcolor[rgb]{0.40,0.85,0.94}{#1}} +% Keyword.Declaration +\providecommand*\DUrolekd[1]{\textcolor[rgb]{0.40,0.85,0.94}{#1}} +% Keyword.Namespace +\providecommand*\DUrolekn[1]{\textcolor[rgb]{0.98,0.15,0.45}{#1}} +% Keyword.Pseudo +\providecommand*\DUrolekp[1]{\textcolor[rgb]{0.40,0.85,0.94}{#1}} +% Keyword.Reserved +\providecommand*\DUrolekr[1]{\textcolor[rgb]{0.40,0.85,0.94}{#1}} +% Keyword.Type +\providecommand*\DUrolekt[1]{\textcolor[rgb]{0.40,0.85,0.94}{#1}} +% Literal.Date +\providecommand*\DUroleld[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.Number +\providecommand*\DUrolem[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Literal.String +\providecommand*\DUroles[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Name.Attribute +\providecommand*\DUrolena[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Name.Builtin +\providecommand*\DUrolenb[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Class +\providecommand*\DUrolenc[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Name.Constant +\providecommand*\DUroleno[1]{\textcolor[rgb]{0.40,0.85,0.94}{#1}} +% Name.Decorator +\providecommand*\DUrolend[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Name.Entity +\providecommand*\DUroleni[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Exception +\providecommand*\DUrolene[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Name.Function +\providecommand*\DUrolenf[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Name.Label +\providecommand*\DUrolenl[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Namespace +\providecommand*\DUrolenn[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Other +\providecommand*\DUrolenx[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Name.Property +\providecommand*\DUrolepy[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Tag +\providecommand*\DUrolent[1]{\textcolor[rgb]{0.98,0.15,0.45}{#1}} +% Name.Variable +\providecommand*\DUrolenv[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Operator.Word +\providecommand*\DUroleow[1]{\textcolor[rgb]{0.98,0.15,0.45}{#1}} +% Text.Whitespace +\providecommand*\DUrolew[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Literal.Number.Bin +\providecommand*\DUrolemb[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Literal.Number.Float +\providecommand*\DUrolemf[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Literal.Number.Hex +\providecommand*\DUrolemh[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Literal.Number.Integer +\providecommand*\DUrolemi[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Literal.Number.Oct +\providecommand*\DUrolemo[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Literal.String.Affix +\providecommand*\DUrolesa[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Backtick +\providecommand*\DUrolesb[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Char +\providecommand*\DUrolesc[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Delimiter +\providecommand*\DUroledl[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Doc +\providecommand*\DUrolesd[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Double +\expandafter\providecommand\csname DUroles2\endcsname[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Escape +\providecommand*\DUrolese[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} +% Literal.String.Heredoc +\providecommand*\DUrolesh[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Interpol +\providecommand*\DUrolesi[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Other +\providecommand*\DUrolesx[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Regex +\providecommand*\DUrolesr[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Single +\expandafter\providecommand\csname DUroles1\endcsname[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Literal.String.Symbol +\providecommand*\DUroless[1]{\textcolor[rgb]{0.90,0.86,0.45}{#1}} +% Name.Builtin.Pseudo +\providecommand*\DUrolebp[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Function.Magic +\providecommand*\DUrolefm[1]{\textcolor[rgb]{0.65,0.89,0.18}{#1}} +% Name.Variable.Class +\providecommand*\DUrolevc[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Variable.Global +\providecommand*\DUrolevg[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Variable.Instance +\providecommand*\DUrolevi[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Name.Variable.Magic +\providecommand*\DUrolevm[1]{\textcolor[rgb]{0.97,0.97,0.95}{#1}} +% Literal.Number.Integer.Long +\providecommand*\DUroleil[1]{\textcolor[rgb]{0.68,0.51,1.00}{#1}} diff --git a/latex_docutils/texmf/tex/latex/docUtils/DUpygments/DUpygments-tango.sty b/latex_docutils/texmf/tex/latex/docUtils/DUpygments/DUpygments-tango.sty new file mode 100644 index 0000000..e5a8fd6 --- /dev/null +++ b/latex_docutils/texmf/tex/latex/docUtils/DUpygments/DUpygments-tango.sty @@ -0,0 +1,157 @@ +% Stylesheet for syntax highlight with Docutils +% Generated by pygments_css2sty.py from a Pygments CSS style +% (output of `pygmentize -S <style> -f html`). + +\RequirePackage{color} +\providecommand*\DUrolehll[1]{\textcolor[rgb]{1.00,1.00,0.80}{#1}} +% Comment +\providecommand*\DUrolec[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Error +\definecolor{DUcolor0}{rgb}{0.64,0.00,0.00} +\providecommand*\DUroleerr[1]{\colorbox{DUcolor0}{\textcolor[rgb]{0.64,0.00,0.00}{#1}}} +% Generic +\providecommand*\DUroleg[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Keyword +\providecommand*\DUrolek[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Literal +\providecommand*\DUrolel[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name +\providecommand*\DUrolen[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Operator +\providecommand*\DUroleo[1]{\textbf{\textcolor[rgb]{0.81,0.36,0.00}{#1}}} +% Other +\providecommand*\DUrolex[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Punctuation +\providecommand*\DUrolep[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.00}{#1}}} +% Comment.Hashbang +\providecommand*\DUrolech[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Comment.Multiline +\providecommand*\DUrolecm[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Comment.Preproc +\providecommand*\DUrolecp[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Comment.PreprocFile +\providecommand*\DUrolecpf[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Comment.Single +\expandafter\providecommand\csname DUrolec1\endcsname[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Comment.Special +\providecommand*\DUrolecs[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Generic.Deleted +\providecommand*\DUrolegd[1]{\textcolor[rgb]{0.64,0.00,0.00}{#1}} +% Generic.Emph +\providecommand*\DUrolege[1]{\textit{\textcolor[rgb]{0.00,0.00,0.00}{#1}}} +% Generic.Error +\providecommand*\DUrolegr[1]{\textcolor[rgb]{0.94,0.16,0.16}{#1}} +% Generic.Heading +\providecommand*\DUrolegh[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.50}{#1}}} +% Generic.Inserted +\providecommand*\DUrolegi[1]{\textcolor[rgb]{0.00,0.63,0.00}{#1}} +% Generic.Output +\providecommand*\DUrolego[1]{\textit{\textcolor[rgb]{0.00,0.00,0.00}{#1}}} +% Generic.Prompt +\providecommand*\DUrolegp[1]{\textcolor[rgb]{0.56,0.35,0.01}{#1}} +% Generic.Strong +\providecommand*\DUrolegs[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.00}{#1}}} +% Generic.Subheading +\providecommand*\DUrolegu[1]{\textbf{\textcolor[rgb]{0.50,0.00,0.50}{#1}}} +% Generic.Traceback +\providecommand*\DUrolegt[1]{\textbf{\textcolor[rgb]{0.64,0.00,0.00}{#1}}} +% Keyword.Constant +\providecommand*\DUrolekc[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Keyword.Declaration +\providecommand*\DUrolekd[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Keyword.Namespace +\providecommand*\DUrolekn[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Keyword.Pseudo +\providecommand*\DUrolekp[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Keyword.Reserved +\providecommand*\DUrolekr[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Keyword.Type +\providecommand*\DUrolekt[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Literal.Date +\providecommand*\DUroleld[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Literal.Number +\providecommand*\DUrolem[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.81}{#1}}} +% Literal.String +\providecommand*\DUroles[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Name.Attribute +\providecommand*\DUrolena[1]{\textcolor[rgb]{0.77,0.63,0.00}{#1}} +% Name.Builtin +\providecommand*\DUrolenb[1]{\textcolor[rgb]{0.13,0.29,0.53}{#1}} +% Name.Class +\providecommand*\DUrolenc[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Constant +\providecommand*\DUroleno[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Decorator +\providecommand*\DUrolend[1]{\textbf{\textcolor[rgb]{0.36,0.21,0.80}{#1}}} +% Name.Entity +\providecommand*\DUroleni[1]{\textcolor[rgb]{0.81,0.36,0.00}{#1}} +% Name.Exception +\providecommand*\DUrolene[1]{\textbf{\textcolor[rgb]{0.80,0.00,0.00}{#1}}} +% Name.Function +\providecommand*\DUrolenf[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Label +\providecommand*\DUrolenl[1]{\textcolor[rgb]{0.96,0.47,0.00}{#1}} +% Name.Namespace +\providecommand*\DUrolenn[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Other +\providecommand*\DUrolenx[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Property +\providecommand*\DUrolepy[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Tag +\providecommand*\DUrolent[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Name.Variable +\providecommand*\DUrolenv[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Operator.Word +\providecommand*\DUroleow[1]{\textbf{\textcolor[rgb]{0.13,0.29,0.53}{#1}}} +% Text.Whitespace +\providecommand*\DUrolew[1]{\textcolor[rgb]{0.97,0.97,0.97}{#1}} +% Literal.Number.Bin +\providecommand*\DUrolemb[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.81}{#1}}} +% Literal.Number.Float +\providecommand*\DUrolemf[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.81}{#1}}} +% Literal.Number.Hex +\providecommand*\DUrolemh[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.81}{#1}}} +% Literal.Number.Integer +\providecommand*\DUrolemi[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.81}{#1}}} +% Literal.Number.Oct +\providecommand*\DUrolemo[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.81}{#1}}} +% Literal.String.Affix +\providecommand*\DUrolesa[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Backtick +\providecommand*\DUrolesb[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Char +\providecommand*\DUrolesc[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Delimiter +\providecommand*\DUroledl[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Doc +\providecommand*\DUrolesd[1]{\textit{\textcolor[rgb]{0.56,0.35,0.01}{#1}}} +% Literal.String.Double +\expandafter\providecommand\csname DUroles2\endcsname[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Escape +\providecommand*\DUrolese[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Heredoc +\providecommand*\DUrolesh[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Interpol +\providecommand*\DUrolesi[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Other +\providecommand*\DUrolesx[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Regex +\providecommand*\DUrolesr[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Single +\expandafter\providecommand\csname DUroles1\endcsname[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Literal.String.Symbol +\providecommand*\DUroless[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} +% Name.Builtin.Pseudo +\providecommand*\DUrolebp[1]{\textcolor[rgb]{0.20,0.40,0.64}{#1}} +% Name.Function.Magic +\providecommand*\DUrolefm[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Variable.Class +\providecommand*\DUrolevc[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Variable.Global +\providecommand*\DUrolevg[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Variable.Instance +\providecommand*\DUrolevi[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Name.Variable.Magic +\providecommand*\DUrolevm[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} +% Literal.Number.Integer.Long +\providecommand*\DUroleil[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.81}{#1}}} diff --git a/latex_docutils/texmf/tex/latex/docUtils/DUpygments/pygments_css2sty.py b/latex_docutils/texmf/tex/latex/docUtils/DUpygments/pygments_css2sty.py new file mode 100644 index 0000000..185050b --- /dev/null +++ b/latex_docutils/texmf/tex/latex/docUtils/DUpygments/pygments_css2sty.py @@ -0,0 +1,66 @@ +#! /usr/bin/env python +# coding: utf8 +# Copyright: Raphael 'kena' Poss <r.c.poss@uva.nl> +# this file is placed in the public domain. +# +# Convert a CSS stylesheet into one for Docutils' LaTeX output. +# +# Usage example:: +# +# pygmentize -S default -f html | pygments_css2sty.py >pygments-default.sty +# +# Versions: +# +# 2012-05-09: Günter Milde <milde@users.sf.net>: +# Bugfix: do not fail at lines without comment. +# Support for digits in role names. +# ``\providecommand`` instead of ``\newcommand``. +# Renamed from makesty.py to pygments_css2sty.py. +# 2013-03-27: Günter Milde: +# Implement bugfix from Juan Luis Cano Rodríguez for csnames. + +import sys +import re + +print '% Stylesheet for syntax highlight with Docutils' +print '% Generated by pygments_css2sty.py from a Pygments CSS style' +print '% (output of `pygmentize -S <style> -f html`).' +print +print r'\RequirePackage{color}' + +cnt = 0 +for l in sys.stdin: + + if '/*' in l: + print "% " + l.split('*')[1] + key = l.split(' ', 1)[0][1:] + + s = '#1' + + if 'color:' in l: + col = l.split('#',1)[1][:6] + r = float(int(col[0:2], 16)) / 255. + g = float(int(col[2:4], 16)) / 255. + b = float(int(col[4:6], 16)) / 255. + s = r'\textcolor[rgb]{%.2f,%.2f,%.2f}{%s}' % (r, g, b, s) + + if 'font-style: italic' in l: + s = r'\textit{%s}' % s + if 'font-weight: bold' in l: + s = r'\textbf{%s}' % s + + if 'border:' in l: + col = l.split('#',1)[1][:6] + r = float(int(col[0:2], 16)) / 255. + g = float(int(col[2:4], 16)) / 255. + b = float(int(col[4:6], 16)) / 255. + cname = 'DUcolor%d' % cnt + cnt += 1 + print r'\definecolor{%s}{rgb}{%.2f,%.2f,%.2f}' % (cname, r, g, b) + s = r'\colorbox{%s}{%s}' % (cname, s) + + if re.match(r'.*[0-9]', key) is None: + print(r'\providecommand*\DUrole%s[1]{%s}' % (key, s)) + else: + print(r'\expandafter\providecommand\csname DUrole%s\endcsname[1]{%s}' + % (key, s)) |