当前位置: 首页 > 工具软件 > xColor > 使用案例 >

Latex error: option clash for package xcolor

胥诚
2023-12-01

The original links: https://tex.stackexchange.com/questions/57364/option-clash-for-package-xcolor

So the following is just a copy of the above links:

The xcolor package is loaded by listings. Put the line before \usepackage{listings}.
However your preamble is quite messy. It’s most important that you call hyperref as the last package and put all options to geometry before fancyhdr.
The package ucs is useless with your settings.

Like Harish wrote \PassOptionsToPackage{svgnames}{xcolor} before the line \usepackage{listings} is fine and the problem is the same with TikZ. With \PassOptionsToPackage you can avoid conflicts between options.

 类似资料:

相关阅读

相关文章

相关问答