I am trying to convert a .tex document from \documentclass{article} to \documentclass[final]{aomart}.
When I try to compile the document, I get the following error message:
line 17 Option clash for package hyperref. \usepackage
The script is:
1 \documentclass[final]{aomart}
2 \usepackage[utf8]{inputenc}
3 \usepackage[title]{appendix}
4 \usepackage{parskip}
5 \usepackage{amsmath}
6 \usepackage[english]{babel}
7 \usepackage{pgfplots}
8 \usepgflibrary{arrows}
9 \usetikzlibrary{arrows}
10 \pgfplotsset{compat=1.16}
11 \usepackage{tikz}
12 \usepackage{amssymb}
13 \usepackage{cancel}
14 \usepackage{float}
15 \usepackage[section]{placeins}
16 \usepackage[hidelinks]{hyperref}
17 \usepackage{enumerate}
18 \newtheorem{theorem}{Theorem}[subsection]
19 ...
I tried removing \usepackage[hidelinks]{hyperref} or \usepackage{enumerate}, but I get other messages.
How should I fix this issue?
Update
Here is the MWE:
\documentclass[final]{aomart}
\usepackage{pgfplots}
\usepackage[hidelinks]{hyperref}
\usepackage{enumerate}
\begin{document}
xxx
\end{document}
hyperrefwith rare exception should be loaded last. please provide complete but small document which we can test and see, what is the problem. – Zarko Oct 19 '18 at 10:19hidelinks? without it your example work fine. also links are not visible, however ithey are active. – Zarko Oct 19 '18 at 10:32aomart.clsas you have noticed already loadshyperrefwith options. Have you tried specifying the option via\hypersetup{ hidelinks }? – daleif Oct 19 '18 at 10:39