3

I need to achieve the following formatting. Is that possible?

TOC

Can someone provide an example?

5

This depends on the document class you are using, but most classes that support chapters have the commands \frontmatter, \mainmatter and \backmatter, which support this sort of thing automatically. For help on how to format the contents list itself, you should look at the tocloft package, or check the tag on the site for examples of its use.

\documentclass{book}
\begin{document}
\frontmatter
\chapter{Disclaimer}
It's not my fault.
\chapter{Acknowledgements}
Thanks, Mom and Dad.
\chapter{Abstract}
A short summary
\tableofcontents
\mainmatter
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
Intro
\chapter*{Objectives}
\addcontentsline{toc}{chapter}{Objectives}
Objectives
\chapter{Background}
\section{History}
\end{document}

output of code

  • Thanks a lot guys. I already found a different solution. If you want I can post mine as well but yours is much cleaner. – salamis Sep 6 '11 at 1:28
  • @salamis It's up to you, but the solution I've posted (other than using a different documentclass) is pretty much "best practice", I think. – Alan Munn Sep 6 '11 at 1:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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