Skip to content
Snippets Groups Projects
Commit db19a9d0 authored by Bas Nijholt's avatar Bas Nijholt
Browse files

use listings correctly

parent f696a407
No related branches found
No related tags found
No related merge requests found
...@@ -7,4 +7,4 @@ bbl: paper.tex ...@@ -7,4 +7,4 @@ bbl: paper.tex
bibtex paper.aux bibtex paper.aux
paper.tex: 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
% 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,
}
...@@ -67,6 +67,32 @@ ...@@ -67,6 +67,32 @@
% workaround for https://github.com/jgm/pandoc/issues/4716 % workaround for https://github.com/jgm/pandoc/issues/4716
\newcommand{\passthrough}[1]{\lstset{mathescape=false}#1\lstset{mathescape=true}} \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} \begin{document}
\title{$if(title)$$title$$endif$} \title{$if(title)$$title$$endif$}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment