Fortran 延续标签的 Latex 列表

Fortran 延续标签的 Latex 列表

我想为第六列中的 Fortran 延续标签设置样式。

目前,我已经

\documentclass[12pt]{article}

\usepackage{xcolor}
\usepackage{listings}

\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}

\lstset{ %
    backgroundcolor=\color{backcolour},
    commentstyle=\color{codegreen},
    keywordstyle=\color{blue},
    numberstyle=\tiny\color{codegray},
    stringstyle=\color{codepurple},
    basicstyle=\scriptsize,
    breakatwhitespace=false,
    breaklines=true,
    captionpos=b,
    keepspaces=true,
    showspaces=false,
    showstringspaces=false,
    showtabs=false,
    tabsize=2
}

\begin{document}

\begin{lstlisting}[language={[77]Fortran}]
subroutine vumat (
c Read only -
     *     jblock, ndir, nshr, nstatev, nfieldv, nprops, lanneal,
     *     stepTime, totalTime, dt, cmname, coordMp, charLength,
     *     props, density, strainInc, relSpinInc,
     *     tempOld, stretchOld, defgradOld, fieldOld,
     *     stressOld, stateOld, enerInternOld, enerInelasOld,
     *     tempNew, stretchNew, defgradNew, fieldNew,
c Write only -
     *     stressNew, stateNew, enerInternNew, enerInelasNew )
\end{lstlisting}
\end{document}

在此处输入图片描述

我希望这些延续符号的背景为绿色,类似于 在此处输入图片描述

请指教。谢谢!

相关内容