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.
Here is my problem: I am unable to put a clickable URL in the “frontmatter” of the paper. Here is a minimal example:
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.
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 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.
Similar to the answer by @Trevor, but instead of editing the .cls file, you could patch it from within your document: