Tell me more ×
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.

Hi I'm trying to create a document in LaTeX with a few small subsections on the same page, is there any way to remove the repeated page numbers and keep the numbers when I move onto a new page?

share|improve this question

1 Answer

up vote 0 down vote accepted

Although I've no programming skills, it seems obvious that this possible; e.g. by adding a hook before each line of the toc: "if the pagenumer is the same as in the last line, print dots and number in \color{white} ".

There are some packages on CTAN regarding the table of contents. Do you know the "Topic Index"? Have a look on the packages about the table of contents there.

The closest candidate seems to be the package tocloft. If you've got a full installation, you might get the manual by typing texdoc tocloft on the command line. Maybe you can use \cftXleader or something similar.

However, your readers will miss the numbers and ask themselves (they can not ask you, can they? they are reading in a book!), whether it's a typo or not. So take my advice: print the 'toc' like all others do . . .

share|improve this answer
These are all okay workarounds, but I think I will leave it, and change the subsections to headings. Thanks! – Jas_Young Jul 20 '12 at 23:14

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.