我正在尝试在我的 Latex 文档中插入一个 Python 代码,因此我使用了几种颜色来突出显示关键字和字符串单词...
\documentclass[a4paper,12pt,blue,rgb,]{tubsbook}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{lipsum}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{array,multirow}
\usepackage{graphicx}
\usepackage[activate]{pdfcprot}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{Maroon},
numberstyle=\tiny\color{codegray},
stringstyle=\color{magenta},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
但是我得到了栗色的错误:! 软件包 xcolor 错误:未定义颜色“栗色” 可能是什么原因?