我正在尝试改变 ACM 模板中某个部分的名称的颜色。
\section{\color{red} My Section}
我已经发现此解决方案但它没有作用。
它给出了错误Undefined color RED
这是我的代码:
\documentclass[acmlarge]{acmart}
\settopmatter{printacmref=false}%
\renewcommand\footnotetextcopyrightpermission[1]{}%
\renewcommand\footnotetextauthorsaddresses[1]{}% \pagestyle{plain}
\fancyfoot{}
\makeatletter
\def\runningfoot{\def\@runningfoot{}}
\def\firstfoot{\def\@firstfoot{}}
\def\@copyrightspace{\relax}
\makeatother
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage[mathscr]{euscript}
\usepackage{booktabs} % For formal tables
\begin{document}
\title{My Title}
\author{Me}
\maketitle
\thispagestyle{empty}
\section{\color{red} My Section}
This is my file. This is an algorithm, called \textsc{exp3}. Numbers like $1,2,3$ are not small caps.
\end{document}