Document Classestoc lines overflow page---custom thesis class problem

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
SmithWillSuffice
Posts: 15
Joined: Fri Feb 23, 2007 9:29 am

toc lines overflow page---custom thesis class problem

Post by SmithWillSuffice »

I wonder if any experts can help me fix a class definition. It is based on 'book.cls', but I had to make a number of hacks and kludges to get the output to conform with my university thesis style guidelines. The main problem presently is that somehow the TOC, LOF, and LOT entries do not wrap correctly, they seem to be in LR mode and run off the page. I think this is because of how I redefined the toc, lof, lot commands because the problem occurs in all of these tables, and the section, figure, and table titles seem to wrap correctly in the main text.

Attached is the 'lsuthesis_href.cls' class that I'm using, most of the changes to 'book.cls' are in the second half of the file. There are some weird things going on that I wrote to get the spacings and toc contents and other things working with the hyperref package, but I've exceeded my TeX competence and short of trial and error I can't see how to debug this class.

Any helps or hints would be appreciated.
Attachments
lsuthesis_href.cls
LSU thesis class, customized for LSU thesis guidelines and compatibility with hyperref. The TOC, LOF, LOT formatting is bad.
(59.87 KiB) Downloaded 499 times
Support Free Software---It's Made for Everyone

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
balfonsi
Posts: 93
Joined: Wed Mar 14, 2007 12:05 am

Re: toc lines overflow page---custom thesis class problem

Post by balfonsi »

Why not use the titletoc package? It lets you entirely customize your tocs, lots, lofs and perhaps does not have the same problems, as it doesn't redefine the commands to obtain them, but defines new ones.

Best regards,

B.A.
wladek
Posts: 1
Joined: Fri Apr 06, 2007 9:31 am

Re: toc lines overflow page---custom thesis class problem

Post by wladek »

I am not sure, but the feature may be due to hyperref package. Try the following
in preamble: \hypersetup{breaklinks=true}. By default the option is switched-off.

Best regards,

wladek
SmithWillSuffice
Posts: 15
Joined: Fri Feb 23, 2007 9:29 am

Re: toc lines overflow page---custom thesis class problem

Post by SmithWillSuffice »

Thanks wladek,

In fact I figured this out soon after posting, I forgot to send a post to answer my own question, sorry.
It was indeed the hyperref package that was offending and breaklinks=true was the solution. :)
Support Free Software---It's Made for Everyone
Post Reply