Permalink
Browse files

Added bib and Python syntax highlighting.

  • Loading branch information...
1 parent 6275002 commit e1d424a745ec1e6b66b280fd99456c7cd5e7ebdf @scopatz scopatz committed Mar 17, 2012
Showing with 431 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +6 −0 library.bib
  3. +69 −1 pytables_proposal.tex
  4. +355 −0 state_of_the_art.tex
View
@@ -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
View
@@ -0,0 +1,6 @@
+@misc{TheHDFGroup2010,
+author = {{The HDF Group}},
+title = {{Hierarchical data format version 5}},
+url = { http://www.hdfgroup.org/HDF5},
+year = {2010}
+}
View
@@ -1,5 +1,8 @@
-\documentclass{article}
+\documentclass[a4paper]{article}
+\usepackage{fullpage}
+
+\usepackage{url}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{color}
@@ -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}
@@ -31,4 +97,6 @@
\include{app_phase}
+\bibliographystyle{plain}
+\bibliography{library}
\end{document}
Oops, something went wrong.

0 comments on commit e1d424a

Please sign in to comment.