1

as you can see I use a list of packages but when I try to use the menukeys package, I get an error as a result

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

error

! 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
    The package you want to load is xcolor, not color. – Phelype Oleinik Jun 22 '19 at 0:34
  • And the usenames option has been deprecated for quite a few years: it's the default. – Bernard Jun 22 '19 at 0:37
  • but i use this type of code \definecolor{mybluei}{RGB}{28,138,207} – royer Jun 22 '19 at 3:16
  • @royer And?... This shouldn't be a problem. – frougon Jun 22 '19 at 5:36
  • @frougon yes, I believe I found the solution and I will publish it as an answer to my question and I hope it helps others who may have a similar problem. – royer Jun 22 '19 at 5:43
0

The solution is simple, you only have to delete the package \usepackage[usenames]{color}for this\usepackage{xcolor} and I think it would look like this:

\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}```
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.