GeneralFormat TOC, word table before lot, lof, appendices, etc.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nadeem
Posts: 2
Joined: Wed Mar 17, 2010 5:59 am

Format TOC, word table before lot, lof, appendices, etc.

Post by nadeem »

Hello there,

I had good times using Latex until recently when I started writing my thesis :( and am in need of desperate help. I am using a book.cls (attached); however, it does not conform to the new format my school requires. I tried to fix some problems by searching the web, but solving one problem generates many others. Here goes the list of my problems.

1. TOC: I want to add the word "Chapter" before chapter numbers, "Appendix" before appendices, a dotted line for chapter title (not just the sections); and nothing before dedication, acknowledgement, list of tables, and list of figures - all justified.

2. In the list of tables, I want the word "Table" before table numbers, and in the list of figures the word "Figure" before figure numbers.

3. The titles "Table of contents", "List of tables", and "List of figures" should be just 1" from the top of paper and not 2-3 inches down.

4. The title "References" in references should be just 1" from the paper top and not 3 inches down. [I had similar problem with chapters, but I was able to fix that by manipulating book.cls, but can't remember now.] For references, I am using bibtex file citations.bib.

I will really appreciate if someone could help me with this. I am attaching the book.cls file.

Thanks,
Nadeem
----------
UPDATE-1:
I was able to add the word 'chapter' before chap_number, and 'Appendix' before appendix_num replacing the following in book.cls
%{\protect\numberline{\thechapter}#1}
with
{\@chapapp~\thechapter: #1}
(in \def\@chapter section )

however, don't know about adding 'Table', 'Figure' in lot, and lof, yet!

UPDATE-2:
Adding the following definitions in book.cls solved the problem for the words 'Table' and 'Figure' in lot and lof:

\def\l@figure#1#2{\addpenalty{-\@highpenalty} % [nadeem: def added]
\vskip 4pt plus 2pt
{\@dottedtocline{0}{0em}{2.5em}{Figure.~#1}{#2}}}

\def\l@table#1#2{\addpenalty{-\@highpenalty} % [nadeem: def added]
\vskip 4pt plus 2pt
{\@dottedtocline{0}{0em}{2.5em}{Table.~#1}{#2}}}

In my book.cls I had to remove the following:
\let\l@table\l@figure
Attachments
book.cls
(23.88 KiB) Downloaded 132 times

Recommended reading 2024:

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

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

Post Reply