I have these following packages defined in my preamble and once the file is ran, it creates an error of the following saying there is a clash within the package options. Packages are below:
\documentclass[addpoints,11pt]{exam}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{enumerate}
\usepackage{array}
\usepackage{amsthm}
\usepackage{cancel}
\usepackage{amsfonts}
\usepackage{tikz}
\usepackage{upgreek}
\usepackage{calligra}
\usepackage{graphicx,graphics}
\usepackage[normalem]{ulem}
\usepackage[all]{xy}
\usepackage[dvipsnames]{xcolor}
\begin{document}
.......
\end{document}
Is there a way to prevent and what is the actual root of the problem to persist?
tikz
is the package which already loadsxcolor
\PassOptionsToPackage{dvipsnames}{xcolor}
as I alread wrote in my answer\documentclass{...}
, is that like in a sense making a global variable?