add tag
3 years ago 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.

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.

Top Answer
3 years ago 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 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
3 years ago samcarter

Similar to the answer by @Trevor, but instead of editing the .cls file, you could patch it from within your document:

3 years
Trevor replying to samcarter — Wednesday, 16th Mar 2022 22:43

Haha no worries!

2 days
samcarter replying to Trevor — Tuesday, 15th Mar 2022 09:05

Sorry for the typo in your name!

8 hours
Trevor — Tuesday, 15th Mar 2022 00:46

@samcarter Ok, thanks for mentioning that

10 hours
samcarter — Monday, 14th Mar 2022 14:59

@Trevor, re: your answer, Thanks for sharing your solution! Minor nitpick: Since the class is licensed under the latex project public license 1.2, please consider renaming your modified class file, e.g. autartTrevor.cls and then use \documentclass{autartTrevor}

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.