diff options
Diffstat (limited to 'common/classes/tex/DUpygments')
-rw-r--r-- | common/classes/tex/DUpygments/DUpygments-arduino.sty | 127 | ||||
-rw-r--r-- | common/classes/tex/DUpygments/DUpygments-colorful.sty | 149 | ||||
-rw-r--r-- | common/classes/tex/DUpygments/DUpygments-default.sty | 130 | ||||
-rw-r--r-- | common/classes/tex/DUpygments/DUpygments-monokai.sty | 143 | ||||
-rw-r--r-- | common/classes/tex/DUpygments/DUpygments-tango.sty | 157 | ||||
-rw-r--r-- | common/classes/tex/DUpygments/pygments_css2sty.py | 66 |
6 files changed, 772 insertions, 0 deletions
diff --git a/common/classes/tex/DUpygments/DUpygments-arduino.sty b/common/classes/tex/DUpygments/DUpygments-arduino.sty new file mode 100644 index 0000000..c1f623b --- /dev/null +++ b/common/classes/tex/DUpygments/DUpygments-arduino.sty @@ -0,0 +1,127 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{DUpygments-arduino}[2017/04/16 Docutils Pygments] + +% 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]{\textcolor[rgb]{0.58,0.65,0.65}{#1}} +% Error +\providecommand*\DUroleerr[1]{\textcolor[rgb]{0.65,0.09,0.09}{#1}} +% Keyword +\providecommand*\DUrolek[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Name +\providecommand*\DUrolen[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Operator +\providecommand*\DUroleo[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Comment.Hashbang +\providecommand*\DUrolech[1]{\textcolor[rgb]{0.58,0.65,0.65}{#1}} +% Comment.Multiline +\providecommand*\DUrolecm[1]{\textcolor[rgb]{0.58,0.65,0.65}{#1}} +% Comment.Preproc +\providecommand*\DUrolecp[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Comment.PreprocFile +\providecommand*\DUrolecpf[1]{\textcolor[rgb]{0.58,0.65,0.65}{#1}} +% Comment.Single +\expandafter\providecommand\csname DUrolec1\endcsname[1]{\textcolor[rgb]{0.58,0.65,0.65}{#1}} +% Comment.Special +\providecommand*\DUrolecs[1]{\textcolor[rgb]{0.58,0.65,0.65}{#1}} +% Keyword.Constant +\providecommand*\DUrolekc[1]{\textcolor[rgb]{0.00,0.59,0.62}{#1}} +% Keyword.Declaration +\providecommand*\DUrolekd[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Keyword.Namespace +\providecommand*\DUrolekn[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Keyword.Pseudo +\providecommand*\DUrolekp[1]{\textcolor[rgb]{0.00,0.59,0.62}{#1}} +% Keyword.Reserved +\providecommand*\DUrolekr[1]{\textcolor[rgb]{0.00,0.59,0.62}{#1}} +% Keyword.Type +\providecommand*\DUrolekt[1]{\textcolor[rgb]{0.00,0.59,0.62}{#1}} +% Literal.Number +\providecommand*\DUrolem[1]{\textcolor[rgb]{0.54,0.48,0.32}{#1}} +% Literal.String +\providecommand*\DUroles[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Name.Attribute +\providecommand*\DUrolena[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Builtin +\providecommand*\DUrolenb[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Name.Class +\providecommand*\DUrolenc[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Constant +\providecommand*\DUroleno[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Decorator +\providecommand*\DUrolend[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Entity +\providecommand*\DUroleni[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Exception +\providecommand*\DUrolene[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Function +\providecommand*\DUrolenf[1]{\textcolor[rgb]{0.83,0.33,0.00}{#1}} +% Name.Label +\providecommand*\DUrolenl[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Namespace +\providecommand*\DUrolenn[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Other +\providecommand*\DUrolenx[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Name.Property +\providecommand*\DUrolepy[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Tag +\providecommand*\DUrolent[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Variable +\providecommand*\DUrolenv[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Operator.Word +\providecommand*\DUroleow[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Literal.Number.Bin +\providecommand*\DUrolemb[1]{\textcolor[rgb]{0.54,0.48,0.32}{#1}} +% Literal.Number.Float +\providecommand*\DUrolemf[1]{\textcolor[rgb]{0.54,0.48,0.32}{#1}} +% Literal.Number.Hex +\providecommand*\DUrolemh[1]{\textcolor[rgb]{0.54,0.48,0.32}{#1}} +% Literal.Number.Integer +\providecommand*\DUrolemi[1]{\textcolor[rgb]{0.54,0.48,0.32}{#1}} +% Literal.Number.Oct +\providecommand*\DUrolemo[1]{\textcolor[rgb]{0.54,0.48,0.32}{#1}} +% Literal.String.Affix +\providecommand*\DUrolesa[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Backtick +\providecommand*\DUrolesb[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Char +\providecommand*\DUrolesc[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Delimiter +\providecommand*\DUroledl[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Doc +\providecommand*\DUrolesd[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Double +\expandafter\providecommand\csname DUroles2\endcsname[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Escape +\providecommand*\DUrolese[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Heredoc +\providecommand*\DUrolesh[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Interpol +\providecommand*\DUrolesi[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Other +\providecommand*\DUrolesx[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Regex +\providecommand*\DUrolesr[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Single +\expandafter\providecommand\csname DUroles1\endcsname[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Literal.String.Symbol +\providecommand*\DUroless[1]{\textcolor[rgb]{0.50,0.55,0.55}{#1}} +% Name.Builtin.Pseudo +\providecommand*\DUrolebp[1]{\textcolor[rgb]{0.45,0.56,0.00}{#1}} +% Name.Function.Magic +\providecommand*\DUrolefm[1]{\textcolor[rgb]{0.83,0.33,0.00}{#1}} +% Name.Variable.Class +\providecommand*\DUrolevc[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Variable.Global +\providecommand*\DUrolevg[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Variable.Instance +\providecommand*\DUrolevi[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Name.Variable.Magic +\providecommand*\DUrolevm[1]{\textcolor[rgb]{0.26,0.31,0.33}{#1}} +% Literal.Number.Integer.Long +\providecommand*\DUroleil[1]{\textcolor[rgb]{0.54,0.48,0.32}{#1}} diff --git a/common/classes/tex/DUpygments/DUpygments-colorful.sty b/common/classes/tex/DUpygments/DUpygments-colorful.sty new file mode 100644 index 0000000..f8a1d13 --- /dev/null +++ b/common/classes/tex/DUpygments/DUpygments-colorful.sty @@ -0,0 +1,149 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{DUpygments-colorful}[2017/04/19 Docutils Pygments] + +% 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.64,0.62,0.61}{#1}} +% Comment +\providecommand*\DUrolec[1]{\textcolor[rgb]{0.25,0.53,0.23}{#1}} +% Error +\providecommand*\DUroleerr[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Keyword +\providecommand*\DUrolek[1]{\textcolor[rgb]{0.51,0.36,0.64}{#1}} +% Literal +\providecommand*\DUrolel[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Name +\providecommand*\DUrolen[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Operator +\providecommand*\DUroleo[1]{\textcolor[rgb]{0.36,0.77,0.75}{#1}} +% Punctuation +\providecommand*\DUrolep[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Comment.Hashbang +\providecommand*\DUrolech[1]{\textcolor[rgb]{0.55,0.53,0.53}{#1}} +% Comment.Multiline +\providecommand*\DUrolecm[1]{\textcolor[rgb]{0.25,0.53,0.23}{#1}} +% Comment.Preproc +\providecommand*\DUrolecp[1]{\textcolor[rgb]{0.55,0.53,0.53}{#1}} +% Comment.PreprocFile +\providecommand*\DUrolecpf[1]{\textcolor[rgb]{0.55,0.53,0.53}{#1}} +% Comment.Single +\expandafter\providecommand\csname DUrolec1\endcsname[1]{\textcolor[rgb]{0.25,0.53,0.23}{#1}} +% Comment.Special +\providecommand*\DUrolecs[1]{\textcolor[rgb]{0.55,0.53,0.53}{#1}} +% Generic.Deleted +\providecommand*\DUrolegd[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Generic.Emph +\providecommand*\DUrolege[1]{\textit{#1}} +% Generic.Heading +\providecommand*\DUrolegh[1]{\textbf{\textcolor[rgb]{0.18,0.12,0.18}{#1}}} +% Generic.Inserted +\providecommand*\DUrolegi[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Generic.Prompt +\providecommand*\DUrolegp[1]{\textbf{\textcolor[rgb]{0.55,0.53,0.53}{#1}}} +% Generic.Strong +\providecommand*\DUrolegs[1]{\textbf{#1}} +% Generic.Subheading +\providecommand*\DUrolegu[1]{\textbf{\textcolor[rgb]{0.36,0.77,0.75}{#1}}} +% Keyword.Constant +\providecommand*\DUrolekc[1]{\textcolor[rgb]{0.51,0.36,0.64}{#1}} +% Keyword.Declaration +\providecommand*\DUrolekd[1]{\textcolor[rgb]{0.51,0.36,0.64}{#1}} +% Keyword.Namespace +\providecommand*\DUrolekn[1]{\textcolor[rgb]{0.36,0.77,0.75}{#1}} +% Keyword.Pseudo +\providecommand*\DUrolekp[1]{\textcolor[rgb]{0.51,0.36,0.64}{#1}} +% Keyword.Reserved +\providecommand*\DUrolekr[1]{\textcolor[rgb]{0.51,0.36,0.64}{#1}} +% Keyword.Type +\providecommand*\DUrolekt[1]{\textcolor[rgb]{0.50,0.77,0.09}{#1}} +% Literal.Date +\providecommand*\DUroleld[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.Number +\providecommand*\DUrolem[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.String +\providecommand*\DUroles[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Name.Attribute +\providecommand*\DUrolena[1]{\textcolor[rgb]{0.02,0.71,0.94}{#1}} +% Name.Builtin +\providecommand*\DUrolenb[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Name.Class +\providecommand*\DUrolenc[1]{\textcolor[rgb]{0.50,0.77,0.09}{#1}} +% Name.Constant +\providecommand*\DUroleno[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Name.Decorator +\providecommand*\DUrolend[1]{\textcolor[rgb]{0.36,0.77,0.75}{#1}} +% Name.Entity +\providecommand*\DUroleni[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Name.Exception +\providecommand*\DUrolene[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Name.Function +\providecommand*\DUrolenf[1]{\textcolor[rgb]{0.02,0.71,0.94}{#1}} +% Name.Label +\providecommand*\DUrolenl[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Name.Namespace +\providecommand*\DUrolenn[1]{\textcolor[rgb]{0.50,0.77,0.09}{#1}} +% Name.Other +\providecommand*\DUrolenx[1]{\textcolor[rgb]{0.02,0.71,0.94}{#1}} +% Name.Property +\providecommand*\DUrolepy[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Name.Tag +\providecommand*\DUrolent[1]{\textcolor[rgb]{0.36,0.77,0.75}{#1}} +% Name.Variable +\providecommand*\DUrolenv[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Operator.Word +\providecommand*\DUroleow[1]{\textcolor[rgb]{0.36,0.77,0.75}{#1}} +% Text.Whitespace +\providecommand*\DUrolew[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Literal.Number.Bin +\providecommand*\DUrolemb[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.Number.Float +\providecommand*\DUrolemf[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.Number.Hex +\providecommand*\DUrolemh[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.Number.Integer +\providecommand*\DUrolemi[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.Number.Oct +\providecommand*\DUrolemo[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.String.Affix +\providecommand*\DUrolesa[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Backtick +\providecommand*\DUrolesb[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Char +\providecommand*\DUrolesc[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Literal.String.Delimiter +\providecommand*\DUroledl[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Doc +\providecommand*\DUrolesd[1]{\textcolor[rgb]{0.55,0.53,0.53}{#1}} +% Literal.String.Double +\expandafter\providecommand\csname DUroles2\endcsname[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Escape +\providecommand*\DUrolese[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.String.Heredoc +\providecommand*\DUrolesh[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Interpol +\providecommand*\DUrolesi[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} +% Literal.String.Other +\providecommand*\DUrolesx[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Regex +\providecommand*\DUrolesr[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Single +\expandafter\providecommand\csname DUroles1\endcsname[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Literal.String.Symbol +\providecommand*\DUroless[1]{\textcolor[rgb]{0.28,0.71,0.52}{#1}} +% Name.Builtin.Pseudo +\providecommand*\DUrolebp[1]{\textcolor[rgb]{0.18,0.12,0.18}{#1}} +% Name.Function.Magic +\providecommand*\DUrolefm[1]{\textcolor[rgb]{0.02,0.71,0.94}{#1}} +% Name.Variable.Class +\providecommand*\DUrolevc[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Name.Variable.Global +\providecommand*\DUrolevg[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Name.Variable.Instance +\providecommand*\DUrolevi[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Name.Variable.Magic +\providecommand*\DUrolevm[1]{\textcolor[rgb]{0.94,0.38,0.33}{#1}} +% Literal.Number.Integer.Long +\providecommand*\DUroleil[1]{\textcolor[rgb]{0.98,0.61,0.08}{#1}} diff --git a/common/classes/tex/DUpygments/DUpygments-default.sty b/common/classes/tex/DUpygments/DUpygments-default.sty new file mode 100644 index 0000000..cf0fa8e --- /dev/null +++ b/common/classes/tex/DUpygments/DUpygments-default.sty @@ -0,0 +1,130 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{DUpygments-default}[2017/04/16 Docutils Pygments] + +% Stylesheet for syntax highlight with Docutils +% Generated by makesty.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*\DUrolecomment[1]{\textit{\textcolor[rgb]{0.25,0.50,0.50}{#1}}} +% Error +\definecolor{DUcolor0}{rgb}{1.00,0.00,0.00} +\providecommand*\DUroleerr[1]{\colorbox{DUcolor0}{#1}} +% Keyword +\providecommand*\DUrolekeyword[1]{\textbf{\textcolor[rgb]{0.00,0.50,0.00}{#1}}} +% Operator +\providecommand*\DUroleo[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} +% Comment.Multiline +\providecommand*\DUrolecm[1]{\textit{\textcolor[rgb]{0.25,0.50,0.50}{#1}}} +% Comment.Preproc +\providecommand*\DUrolecp[1]{\textcolor[rgb]{0.74,0.48,0.00}{#1}} +% Comment.Single +\expandafter\providecommand\csname DUrolec1\endcsname[1]{\textit{\textcolor[rgb]{0.25,0.50,0.50}{#1}}} +% Comment.Special +\providecommand*\DUrolecs[1]{\textit{\textcolor[rgb]{0.25,0.50,0.50}{#1}}} +% Generic.Deleted +\providecommand*\DUrolegd[1]{\textcolor[rgb]{0.63,0.00,0.00}{#1}} +% Generic.Emph +\providecommand*\DUrolege[1]{\textit{#1}} +% Generic.Error +\providecommand*\DUrolegr[1]{\textcolor[rgb]{1.00,0.00,0.00}{#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]{\textcolor[rgb]{0.50,0.50,0.50}{#1}} +% Generic.Prompt +\providecommand*\DUrolegp[1]{\textbf{\textcolor[rgb]{0.00,0.00,0.50}{#1}}} +% Generic.Strong +\providecommand*\DUrolegs[1]{\textbf{#1}} +% Generic.Subheading +\providecommand*\DUrolegu[1]{\textbf{\textcolor[rgb]{0.50,0.00,0.50}{#1}}} +% Generic.Traceback +\providecommand*\DUrolegt[1]{\textcolor[rgb]{0.00,0.25,0.82}{#1}} +% Keyword.Constant +\providecommand*\DUrolekc[1]{\textbf{\textcolor[rgb]{0.00,0.50,0.00}{#1}}} +% Keyword.Declaration +\providecommand*\DUrolekd[1]{\textbf{\textcolor[rgb]{0.00,0.50,0.00}{#1}}} +% Keyword.Namespace +\providecommand*\DUrolekn[1]{\textbf{\textcolor[rgb]{0.00,0.50,0.00}{#1}}} +% Keyword.Pseudo +\providecommand*\DUrolekp[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}} +% Keyword.Reserved +\providecommand*\DUrolekr[1]{\textbf{\textcolor[rgb]{0.00,0.50,0.00}{#1}}} +% Keyword.Type +\providecommand*\DUrolekt[1]{\textcolor[rgb]{0.69,0.00,0.25}{#1}} +% Literal.Number +\providecommand*\DUrolenumber[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} +% Literal.String +\providecommand*\DUrolestring[1]{\textcolor[rgb]{0.73,0.13,0.13}{#1}} +% Name.Attribute +\providecommand*\DUrolename[1]{\textcolor[rgb]{0.49,0.56,0.16}{#1}} +% Name.Builtin +\providecommand*\DUrolenb[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}} +% Name.Class +\providecommand*\DUrolenc[1]{\textbf{\textcolor[rgb]{0.00,0.00,1.00}{#1}}} +% Name.Constant +\providecommand*\DUroleno[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}} +% Name.Decorator +\providecommand*\DUrolend[1]{\textcolor[rgb]{0.67,0.13,1.00}{#1}} +% Name.Entity +\providecommand*\DUroleni[1]{\textbf{\textcolor[rgb]{0.60,0.60,0.60}{#1}}} +% Name.Exception +\providecommand*\DUrolene[1]{\textbf{\textcolor[rgb]{0.82,0.25,0.23}{#1}}} +% Name.Function +\providecommand*\DUrolenf[1]{\textcolor[rgb]{0.00,0.00,1.00}{#1}} +% Name.Label +\providecommand*\DUrolenl[1]{\textcolor[rgb]{0.63,0.63,0.00}{#1}} +% Name.Namespace +\providecommand*\DUrolenn[1]{\textbf{\textcolor[rgb]{0.00,0.00,1.00}{#1}}} +% Name.Tag +\providecommand*\DUrolent[1]{\textbf{\textcolor[rgb]{0.00,0.50,0.00}{#1}}} +% Name.Variable +\providecommand*\DUrolenv[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}} +% Operator.Word +\providecommand*\DUroleow[1]{\textbf{\textcolor[rgb]{0.67,0.13,1.00}{#1}}} +% Text.Whitespace +\providecommand*\DUrolew[1]{\textcolor[rgb]{0.73,0.73,0.73}{#1}} +% Literal.Number.Float +\providecommand*\DUrolemf[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} +% Literal.Number.Hex +\providecommand*\DUrolemh[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} +% Literal.Number.Integer +\providecommand*\DUrolemi[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} +% Literal.Number.Oct +\providecommand*\DUrolemo[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} +% Literal.String.Backtick +\providecommand*\DUrolesb[1]{\textcolor[rgb]{0.73,0.13,0.13}{#1}} +% Literal.String.Char +\providecommand*\DUrolesc[1]{\textcolor[rgb]{0.73,0.13,0.13}{#1}} +% Literal.String.Doc +\providecommand*\DUrolesd[1]{\textit{\textcolor[rgb]{0.73,0.13,0.13}{#1}}} +% Literal.String.Double +\expandafter\providecommand\csname DUroles2\endcsname[1]{\textcolor[rgb]{0.73,0.13,0.13}{#1}} +% Literal.String.Escape +\providecommand*\DUrolese[1]{\textbf{\textcolor[rgb]{0.73,0.40,0.13}{#1}}} +% Literal.String.Heredoc +\providecommand*\DUrolesh[1]{\textcolor[rgb]{0.73,0.13,0.13}{#1}} +% Literal.String.Interpol +\providecommand*\DUrolesi[1]{\textbf{\textcolor[rgb]{0.73,0.40,0.53}{#1}}} +% Literal.String.Other +\providecommand*\DUrolesx[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}} +% Literal.String.Regex +\providecommand*\DUrolesr[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}} +% Literal.String.Single +\expandafter\providecommand\csname DUroles1\endcsname[1]{\textcolor[rgb]{0.73,0.13,0.13}{#1}} +% Literal.String.Symbol +\providecommand*\DUroless[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}} +% Name.Builtin.Pseudo +\providecommand*\DUrolebp[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}} +% Name.Variable.Class +\providecommand*\DUrolevc[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}} +% Name.Variable.Global +\providecommand*\DUrolevg[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}} +% Name.Variable.Instance +\providecommand*\DUrolevi[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}} +% Literal.Number.Integer.Long +\providecommand*\DUroleil[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} diff --git a/common/classes/tex/DUpygments/DUpygments-monokai.sty b/common/classes/tex/DUpygments/DUpygments-monokai.sty new file mode 100644 index 0000000..e95f4dc --- /dev/null +++ b/common/classes/tex/DUpygments/DUpygments-monokai.sty @@ -0,0 +1,143 @@ +% 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*\DUroleln[1]{\textcolor[rgb]{1.00,1.00,1.00}{#1}} +\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/common/classes/tex/DUpygments/DUpygments-tango.sty b/common/classes/tex/DUpygments/DUpygments-tango.sty new file mode 100644 index 0000000..e5a8fd6 --- /dev/null +++ b/common/classes/tex/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/common/classes/tex/DUpygments/pygments_css2sty.py b/common/classes/tex/DUpygments/pygments_css2sty.py new file mode 100644 index 0000000..185050b --- /dev/null +++ b/common/classes/tex/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)) |