菜单键错误选项冲突包颜色

菜单键错误选项冲突包颜色

正如你所见,我使用了一个包列表,但是当我尝试使用菜单键包,结果出现错误

\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}```

相关内容