-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pygment style that uses default beamer-trek colors
- Loading branch information
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,7 @@ | |
*.nav | ||
*.out | ||
*.snm | ||
*.toc | ||
*.toc | ||
pygments-style/build | ||
pygments-style/dist | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
""" | ||
beamer-trek | ||
~~~~~~~~~~~ | ||
Beamer Trek default color theme for pygments. | ||
""" | ||
|
||
from pygments.style import Style | ||
from pygments.token import Comment, Error, Generic, Keyword, Literal, Name, \ | ||
Operator, Text | ||
|
||
class BeamerTrekStyle(Style): | ||
""" | ||
Beamer Trek default color theme. | ||
""" | ||
|
||
trek_lightyellow = '#ffff99' | ||
trek_lightorange = '#ffcc66' | ||
trek_darkorange = '#ff9933' | ||
trek_darkpurple = '#664466' | ||
trek_lightpurple = '#cc99cc' | ||
trek_lightblue = '#99ccff' | ||
trek_midblue = '#3366cc' | ||
|
||
default_style = '' | ||
|
||
background_color = '#000000' | ||
|
||
styles = { | ||
Comment: 'italic ' + trek_lightpurple, | ||
Keyword: 'bold ' + trek_lightorange, | ||
Literal: trek_lightyellow | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/python | ||
|
||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name="pygments-style-beamertrek", | ||
version='0.1', | ||
description='Pygments theme for default beamer-trek colors', | ||
keywords='pygments style beamertrek', | ||
license='BSD', | ||
|
||
author='Jonathan Merritt', | ||
author_email='[email protected]', | ||
|
||
packages=find_packages(), | ||
install_requires=['pygments >= 1.6'], | ||
|
||
entry_points='''[pygments.styles] | ||
beamertrek=pygments_style_beamertrek:BeamerTrekStyle''', | ||
|
||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Environment :: Plugins', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python' | ||
] | ||
) |