From 878b8975dfa77231bece81fcf525a68de25aa4f5 Mon Sep 17 00:00:00 2001
From: Bas Nijholt <basnijholt@gmail.com>
Date: Fri, 13 Sep 2019 16:21:11 +0200
Subject: [PATCH] fix width listings

---
 revtex.template | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/revtex.template b/revtex.template
index a0b5ed6..a1f482b 100755
--- a/revtex.template
+++ b/revtex.template
@@ -67,8 +67,7 @@
 % workaround for https://github.com/jgm/pandoc/issues/4716
 \newcommand{\passthrough}[1]{\lstset{mathescape=false}#1\lstset{mathescape=true}}
 
-\usepackage{xcolor}
-
+% listing settings, from https://tex.stackexchange.com/a/179956
 \lstset{
     basicstyle=\ttfamily,
     numbers=left,
@@ -88,7 +87,7 @@
     breakatwhitespace=true,
     breakautoindent=true,
     escapeinside={\%*}{*)},
-    linewidth=0.9\textwidth,
+    linewidth=\columnwidth,
     basewidth=0.5em,
 }
 
-- 
GitLab