TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to be able to change (in particular, make smaller) the width of my table of contents in the article document class without altering the margins of the page. Is this possible??

share|improve this question
up vote 3 down vote accepted

The "meta" answer to your question is that you can use the tocloft package to change the style of your ToC. (Or the memoir class, or KOMA-Script classes, etc.) But if you just want to change some margins, there's an easier approach:

\documentclass{article}
\usepackage{patchcmd}
\makeatletter
\patchcommand\@starttoc{\begin{quote}}{\end{quote}}
\makeatother
\usepackage{lipsum}
\begin{document}
\tableofcontents
\section{lipsum}\lipsum[1-10]
\section{lipsum}\lipsum[1-10]
\section{lipsum}\lipsum[1-10]
\section{lipsum}\lipsum[1-10]
\end{document}

The quote environment indents by, oh, 2.5em I think. If you need a different amount consider using changepage’s adjustwidth environment.

share|improve this answer

Your Answer

 
discard

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.