Trevor
I am working on an academic paper for the journal *Automatica*. The publisher has provided a class file to use, which is called `autart.cls` and can be downloaded [here](http://www.elsevier.com/__data/promis_misc/automatica_latex.zip).
Here is my problem: I am unable to put a clickable URL in the "frontmatter" of the paper.
Here is a minimal example:
```
\documentclass[twocolumn]{autart}
\usepackage[hidelinks,breaklinks=true]{hyperref}
\usepackage{breakurl}
\begin{document}
This link is clickable: \url{https://en.wikipedia.org/wiki/Belle_Fourche_River}
\begin{frontmatter}
This link is NOT clickable: \url{https://en.wikipedia.org/wiki/Belle_Fourche_River}
\end{frontmatter}
\end{document}
```
After looking through the autart.cls file, I believe that this behavior is intentional as there is an environment called "NoHyper" used for the frontmatter. So I would like to go into the .cls file and make the *minimal* set of changes possible to make a URL clickable, and not disrupt any other behavior of the class. Unfortunately, I am not knowledgeable enough about Tex/Latex to do this myself, so I am wondering if someone can help me out.
Note: I am only modifying the .cls file for the preprint and I will use the unaltered .cls file for the final version.
Top Answer
Trevor
I figured this out by myself. All I had to do was comment out `NoHyper` (line 979) in autart.cls. I had thought that `NoHyper` was a custom environment defined in autart.cls, but it is defined in the `hyperref` package.
Additionally, with the help of [this post](https://tex.stackexchange.com/questions/565299/hyperref-does-not-work-in-autart-cls) on Stack Exchange, I realized that the autart.cls file disables hyperlinks for the entire document (e.g., references to citations, equations, and sections), except for URL hyperlinks which work outside the frontmatter. As mentioned in the Stack Exchange post, this may be an error in the class file. So commenting out `NoHyper` will enable hyperlinks in the entire document.
Answer #2
samcarter
Similar to the answer by @Trevor, but instead of editing the .cls file, you could patch it from within your document:
```
\documentclass[twocolumn]{autart}
\usepackage[hidelinks,breaklinks=true]{hyperref}
\usepackage{breakurl}
\usepackage{xpatch}
\patchcmd{\frontmatter}{\NoHyper}{}{}{}
\begin{document}
This link is clickable: \url{https://en.wikipedia.org/wiki/Belle_Fourche_River}
\begin{frontmatter}
This link is NOT clickable: \url{https://en.wikipedia.org/wiki/Belle_Fourche_River}
\end{frontmatter}
\end{document}
```