diff --git a/revtex.template b/revtex.template
index 6a6c8f6279d5596629af3c81826096e1511e00d5..9cf81b4dafa53acf59ec99c53eed05088e933641 100755
--- a/revtex.template
+++ b/revtex.template
@@ -2,7 +2,7 @@
 \pdfoutput=1
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
-\usepackage{verbatim}
+\usepackage{listings}
 \usepackage{units}
 \usepackage{mathtools}
 \usepackage{amsmath}
@@ -64,6 +64,9 @@
 % workaround for https://github.com/jgm/pandoc/issues/2392#issuecomment-140114736
 \renewcommand{\citep}{\cite}
 
+% workaround for https://github.com/jgm/pandoc/issues/4716
+\newcommand{\passthrough}[1]{\lstset{mathescape=false}#1\lstset{mathescape=true}}
+
 \begin{document}
 
 \title{$if(title)$$title$$endif$}