0

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}

1 Answers1

3

The aomart class already loads hyperref with options, thus you get an option class if you ask for other options.

If really needed, then use

\hypersetup{
  hidelinks
}

in your preamble instead. You can do this with most hyperref options (if not all).

BTW: enumitem is probably more recommended to use for lists than the old enumerate package

daleif
  • 54,450