Skip to content

Commit

Permalink
Added bib and Python syntax highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
scopatz committed Mar 17, 2012
1 parent 6275002 commit e1d424a
Show file tree
Hide file tree
Showing 4 changed files with 431 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all:
pdflatex pytables_proposal.tex
#bibtex pytables_proposal.aux
bibtex pytables_proposal.aux
pdflatex pytables_proposal.tex
pdflatex pytables_proposal.tex

Expand Down
6 changes: 6 additions & 0 deletions library.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@misc{TheHDFGroup2010,
author = {{The HDF Group}},
title = {{Hierarchical data format version 5}},
url = { http://www.hdfgroup.org/HDF5},
year = {2010}
}
70 changes: 69 additions & 1 deletion pytables_proposal.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
\documentclass{article}
\documentclass[a4paper]{article}

\usepackage{fullpage}

\usepackage{url}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{color}
Expand All @@ -10,6 +13,69 @@
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
\newcommand{\nuc}[2]{\superscript{#2}{#1}}

% Python listing setup
\usepackage{color}
\usepackage[procnames]{listings}
\usepackage{textcomp}
\usepackage{setspace}
\usepackage{palatino}
\renewcommand{\lstlistlistingname}{Code Listings}
\renewcommand{\lstlistingname}{Code Listing}
\definecolor{gray}{gray}{0.5}
\definecolor{green}{rgb}{0,0.5,0}
\definecolor{lightgreen}{rgb}{0,0.7,0}
\definecolor{purple}{rgb}{0.5,0,0.5}
\definecolor{darkred}{rgb}{0.5,0,0}
\definecolor{orange}{rgb}{1,0.5,0}
\lstnewenvironment{python}[1][]{
\lstset{
language=python,
basicstyle=\ttfamily\small\setstretch{1},
stringstyle=\color{green},
showstringspaces=false,
alsoletter={1234567890},
otherkeywords={\ , \}, \{},
keywordstyle=\color{blue},
emph={access,and,as,break,class,continue,def,del,elif,else,%
except,exec,finally,for,from,global,if,import,in,is,%
lambda,not,or,pass,print,raise,return,try,while,assert},
emphstyle=\color{magenta}\bfseries,
emph={[2]self},
emphstyle=[2]\color{gray},
emph={[4]ArithmeticError,AssertionError,AttributeError,BaseException,%
DeprecationWarning,EOFError,Ellipsis,EnvironmentError,Exception,%
False,FloatingPointError,FutureWarning,GeneratorExit,IOError,%
ImportError,ImportWarning,IndentationError,IndexError,KeyError,%
KeyboardInterrupt,LookupError,MemoryError,NameError,None,%
NotImplemented,NotImplementedError,OSError,OverflowError,%
PendingDeprecationWarning,ReferenceError,RuntimeError,RuntimeWarning,%
StandardError,StopIteration,SyntaxError,SyntaxWarning,SystemError,%
SystemExit,TabError,True,TypeError,UnboundLocalError,UnicodeDecodeError,%
UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,%
UserWarning,ValueError,Warning,ZeroDivisionError,abs,all,any,apply,%
basestring,bool,buffer,callable,chr,classmethod,cmp,coerce,compile,%
complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,%
execfile,exit,file,filter,float,frozenset,getattr,globals,hasattr,%
hash,help,hex,id,input,int,intern,isinstance,issubclass,iter,len,%
license,list,locals,long,map,max,min,object,oct,open,ord,pow,property,%
quit,range,raw_input,reduce,reload,repr,reversed,round,set,setattr,%
slice,sorted,staticmethod,str,sum,super,tuple,type,unichr,unicode,%
vars,xrange,zip},
emphstyle=[4]\color{purple}\bfseries,
upquote=true,
morecomment=[s][\color{lightgreen}]{"""}{"""},
commentstyle=\color{red}\slshape,
literate={>>>}{\textbf{\textcolor{darkred}{>{>}>}}}3%
{...}{{\textcolor{gray}{...}}}3,
procnamekeys={def,class},
procnamestyle=\color{blue}\textbf,
framexleftmargin=1mm, framextopmargin=1mm,
framexrightmargin=1mm, framexbottommargin=1mm,
frame=single,
rulesepcolor=\color{black},#1
}}{}


\begin{document}

\title{PyTables: Future Developments with Binary Databases}
Expand All @@ -31,4 +97,6 @@

\include{app_phase}

\bibliographystyle{plain}
\bibliography{library}
\end{document}
Loading

0 comments on commit e1d424a

Please sign in to comment.