Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I found this article and would like to know how can one create a template (generic) to accomplish this. It would be great to implement a (generic) template to be able to make it for a table of contents, list of figures, list of tables, list of listings (code), etc... I would like the table of contents, table of figures, etc.. to all start on a fresh page instead of running on from the previous section. I will post a external like because you will able to get a better idea of what I am asking. I could post a picture, but the functionality would be taken away, i.e., being able to click the link and it takes you to the appropriate part of the document. I would like to know how is this done for contents,figures, sections, references, footnotes, etc. Also, if one can include how to play around with the color of the wording for the contents would be great. Can I also add, (I know its already a lot, but I think this is the last thing) I would like to be able to move the contents, list of figures, list of tables to the center of the page and I would like if I could have control of what to name them, i.e., Table of Contents instead of Contents produced from \tableofcontents,\listofigures,\listoftables. Okay I will stop here, its already a lot to digest I think.

  • microtype

  • TOC and Headings (This is the document that has the centered and underlined section titles that I would like to accomplish).

share|improve this question
Some modification depend on you document class. Which one do you use? –  Marco Daniel Nov 13 '11 at 11:53
HEy Marco! How you been buddy? I am using the report class. I wanted to use article but I get some unwanted issues with paging. Its skips pages leaving blank ones, and a creates a lot of messiness (with errors). I tried book, but was a few issues with that as well. –  night owl Nov 13 '11 at 11:59
Have you looked at the memoir class? It provides hooks and commands to accomplish pretty much everything on your wish list. –  Mico Nov 13 '11 at 13:05
Mico: No I haven't. Never had to use that package before. It will be something I look into. Thanks :). –  night owl Nov 13 '11 at 13:12

2 Answers 2

up vote 4 down vote accepted

In the report class, the table of contents and related lists are typeset as (unnumbered) chapters, i.e., with a page break before them. To center chapter titles and add a rule below them, use the titlesec package. To rename the ToC & friends, redefine the \contentsname, \listfigurename, and\listtablename macros. (If you're using babel, have a look at this question.)



\renewcommand{\contentsname}{Table of Contents}







Page 1:

enter image description here

Page 2:

enter image description here

share|improve this answer
+1. Thanks a lot. That really helped. I got two more small (I think) problems if you can help. First is, the [pdflatex]{hyperref} is creating red boxes around everything. How can you control this to style to one's pleasure including colors and removing frames? Second is, I have issues with my referencing. Say if I put a graphics file in section 3.4, on the listoffigures, it will show up with 3.1 next to it? Whats going on with that you think? –  night owl Nov 13 '11 at 13:10
@nightowl: hyperref offers a lot of configuration options -- to simlply remove the colored boxes, use the hidelinks option. (You need an up-to-date TeX distribution to do so.) With regard to your referencing issues, please ask a new question and include a minimal working example. –  lockstep Nov 13 '11 at 13:15
Okay, says hidelinks is undefined. Could you add a line in the code about the color of the text for the contents and list of figures? –  night owl Nov 13 '11 at 13:30
@nightowl: Try to add \usepackage[pdfborder={0 0 0}]{hyperref} at the end of your preamble. –  lockstep Nov 13 '11 at 13:32
Nice: :), so I see the third element takes care of the frames and how thick they are, but what are the first two zero elements represent? Can you alter the color of the text using these, say if I wanted blue, green, text? –  night owl Nov 13 '11 at 14:55

The sources of that example are publicly available; for example, chapter and section titles are defined as seen in http://cring.adeel.ru/cring/tree/other/packages.tex

  {\LARGE \bfseries \centering}
  {Chapter \ \textbf{\arabic{chapter}}}
share|improve this answer
Thanks for that egreg! –  night owl Nov 13 '11 at 15:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.