Document ClassesProblem while including hyperref

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
phanipolina
Posts: 1
Joined: Thu Sep 04, 2014 3:05 am

Problem while including hyperref

Post by phanipolina »

I have a latex Class File which is given from an university. It works fine. I am trying to make my menu clickable and have the links appear on the left. For this I am trying to include the package \usepackage{hyperref}

The minute I include the hyperref package get an error argument of contents line has an extra }

I have attached the files. samplethesis.tex is the file with the problem.

I am new to latex and I am not able to solve this. Any help is highly appreciated
Attachments
ulthesis-2.0.3.zip
(144.43 KiB) Downloaded 258 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem while including hyperref

Post by Johannes_B »

Get rid of all those \addcontentslines, they are stupid. From the TeXnical side, the file sample_thesis.tex is obsolet for about 20 years. In other words, this is really bad style. Somebody should take a look at this and make it better. There is a lot room for improvements. Please inform Professor Kielkopf about this. It almost makes me nauseated.

EDIT: Just had a look at the class file. The first part is a nearly one to one copy of report.cls from 1994 (bit outdated, but still ok). The second part are some redefinitions, but using the new LaTeX2e syntax (been there since 1994). Now the question arises: Why isn't the new syntax used in the sample file? Please be aware, that new means 20 years old.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply