From 4bcef5b66d8c4819e5b5459282eab2d92247c8c2 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 8 May 2018 12:05:57 +0200 Subject: Update docutils styles --- .../latex/docUtils/DUpygments/pygments_css2sty.py | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 latex_docutils/texmf/tex/latex/docUtils/DUpygments/pygments_css2sty.py (limited to 'latex_docutils/texmf/tex/latex/docUtils/DUpygments/pygments_css2sty.py') 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 +# 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 : +# 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