Original link:https://tex.stackexchange.com/questions/57364/ op-clash-forpackagexcolor
Therefore, the following is just a copy of the above link:
xcolor
package is loaded via list. Put the line before\usepackage{listing}
. But your preamble is too messy. Most importantly, you callhyperref
as the last package and put all the options beforegeometry
fancyhdr
.
ucs
is irrelevant to your settings.As Harish wrote
\PassOptionsToPackage{svgnames}{xcolor}
is fine in\usepackage{listing}
, the problem is the sameTikZ</ code>. With
\PassOptionsToPackage
, you can avoid conflicts between options.
Read More:
- ! LaTeX Error: Option clash for package hyperref.
- Latex macro package and latex error: file ‘xxx. Sty’ not found
- Latex’s problem about package missing
- Texstudio prompts an error when compiling and viewing latex documents: package inputerror: Unicode character
- Latex sets page margin, page size, page margin and geometry macro package
- Idea Maven project uses package to package and report error (package does not exist)
- LaTeX Error: Can be used only in preamble
- Latex insert hyperlink
- How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent
- Three ways of latex supporting Chinese
- [latex] latex adjust row spacing
- Several common methods of inserting pictures into latex documents
- Latex: How to Set text Center
- How to Use Subfigure in Latex
- Add a new page in latex
- Latex Error pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pd fstartl
- Latex error: “paragraph ended before \ @ Citex was complete”
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- Webpack report error: unknown option ‘- p’ solution
- Failed to import package with error: couldn’t decompress package