0

This question already has an answer here:

I'm trying to use a package that imports color with the dvipsnames,usenames options. Unfortunately, my document uses the ACM format, which appears to already import the color package with no options.

The following file:

\documentclass[acmlarge,dvipsnames,usenames]{acmart}
\usepackage{booktabs} % For formal tables
\RequirePackage[dvipsnames,usenames]{color}

% Document starts
\begin{document}
% Title portion
\title{A Multifrequency MAC Specially Designed for Wireless Sensor
  Network Applications}
\titlenote{We can add a note to the title}

\maketitle
Body
\end{document}

Gives the following, highly unhelpful error error:

   LaTeX Error: Option clash for package color.

Is this a known problem? Is there an easy workaround for importing packages that conflict in their options?

marked as duplicate by Henri Menke, Phelype Oleinik, Stefan Pinnow, CarLaTeX, Sebastiano Apr 6 '18 at 6:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • just remove the usepackage{color} line, the color package will see the options on \documentclass – David Carlisle Apr 5 '18 at 23:13
  • Pressing h at the error prompt gets a more helpful text including the offending options. – Heiko Oberdiek Apr 5 '18 at 23:24
  • Probably the class loads package xcolor instead of color. – Heiko Oberdiek Apr 5 '18 at 23:27
  • Option usenames is obsolete: it's now the default. – Bernard Apr 5 '18 at 23:56