![菜单键错误选项冲突包颜色](https://linux22.com/image/397713/%E8%8F%9C%E5%8D%95%E9%94%AE%E9%94%99%E8%AF%AF%E9%80%89%E9%A1%B9%E5%86%B2%E7%AA%81%E5%8C%85%E9%A2%9C%E8%89%B2.png)
正如你所见,我使用了一个包列表,但是当我尝试使用菜单键包,结果出现错误
\documentclass[14pt]{extbook}
\usepackage[spanish]{babel}
\usepackage[pass,paperwidth=8.5in,paperheight=11in]{geometry}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[usenames]{color}
\usepackage{graphicx}
\usepackage{pstricks}
\let\clipbox\relax
\usepackage[os=win]{menukeys} %error latex
\definecolor{mybluei}{RGB}{28,138,207}
错误
! LaTeX Error: Option clash for package color.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.78 \SetupKeyvalOptions
{family=mdf,prefix=mdf@}
?
答案1
解决方法很简单,你只需要删除包 \usepackage[usenames]{color}
为此\usepackage{xcolor}
,我认为它看起来像这样:
\documentclass[14pt]{extbook}
\usepackage[spanish]{babel}
\usepackage[pass,paperwidth=8.5in,paperheight=11in]{geometry}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{xcolor} % ----------------> package changed
\usepackage{graphicx}
\usepackage{pstricks}
\let\clipbox\relax
\usepackage[os=win]{menukeys} %error latex
\definecolor{mybluei}{RGB}{28,138,207}```