diff --git a/Makefile b/Makefile index cb93e6a73146292da9cac7c90663ad0958982140..8e253fbe72f34413a1e9160d9867a0cbc7eb8b06 100755 --- a/Makefile +++ b/Makefile @@ -7,4 +7,4 @@ bbl: paper.tex bibtex paper.aux paper.tex: - pandoc -s --filter pandoc-fignos --filter pandoc-citeproc --filter pandoc-crossref --natbib paper.md -o paper.tex --bibliography paper.bib --listings -H listings-setup.tex --template revtex.template + pandoc -s --filter pandoc-fignos --filter pandoc-citeproc --filter pandoc-crossref --natbib paper.md -o paper.tex --bibliography paper.bib --listings --template revtex.template diff --git a/listings-setup.tex b/listings-setup.tex deleted file mode 100644 index f9f1ce2dfda3e07e1081d48af3ce6089f00acb25..0000000000000000000000000000000000000000 --- a/listings-setup.tex +++ /dev/null @@ -1,25 +0,0 @@ -% Contents of listings-setup.tex -\usepackage{xcolor} - -\lstset{ - basicstyle=\ttfamily, - numbers=left, - keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries, - stringstyle=\color[rgb]{0.31,0.60,0.02}, - commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape, - numberstyle=\footnotesize, - stepnumber=1, - numbersep=5pt, - backgroundcolor=\color[RGB]{248,248,248}, - showspaces=false, - showstringspaces=false, - showtabs=false, - tabsize=2, - captionpos=b, - breaklines=true, - breakatwhitespace=true, - breakautoindent=true, - escapeinside={\%*}{*)}, - linewidth=\textwidth, - basewidth=0.5em, -} diff --git a/revtex.template b/revtex.template index 9cf81b4dafa53acf59ec99c53eed05088e933641..a0b5ed66a12a3119630fc29a306a6d822c35ba9f 100755 --- a/revtex.template +++ b/revtex.template @@ -67,6 +67,32 @@ % workaround for https://github.com/jgm/pandoc/issues/4716 \newcommand{\passthrough}[1]{\lstset{mathescape=false}#1\lstset{mathescape=true}} +\usepackage{xcolor} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries, + stringstyle=\color[rgb]{0.31,0.60,0.02}, + commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape, + numberstyle=\footnotesize, + stepnumber=1, + numbersep=5pt, + backgroundcolor=\color[RGB]{248,248,248}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + escapeinside={\%*}{*)}, + linewidth=0.9\textwidth, + basewidth=0.5em, +} + + \begin{document} \title{$if(title)$$title$$endif$}