TransWikia.com

Option clash: xcolor, tcolorbox, tikz

TeX - LaTeX Asked by murray on October 9, 2020

How can the option clash be resolved in the following?

documentclass[tikz,border=10pt]{standalone}

usepackage{graphicx}
usepackage[names,dvipsnames,named]{xcolor}
usepackage[most]{tcolorbox}


begin{document}
Hello
end{document}

Error:

./tcolorbox-xcolor-clash.tex:5: LaTeX Error: Option clash for package xcolor.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.5 usepackage
               [most]{tcolorbox}

Note that for "ordinary" documents, the clash can be avoided:

documentclass{article}

usepackage{graphicx}
usepackage[names,dvipsnames,named]{xcolor}
usepackage[most]{tcolorbox}
usepackage{tikz}

begin{document}
Hello
end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP