GeneralTable of Contents without dotted Lines and Page Numbers

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
banneheka
Posts: 3
Joined: Thu Jul 07, 2011 7:58 am

Table of Contents without dotted Lines and Page Numbers

Post by banneheka »

Dear Latex Community,

I need to create a list of contents without dotted lines and page numbers as follows:

Contents
1 Introduction to Statistical Inference
1.1 Some Examples
2 Point Estimation
2.1 Estimator
2.2 Estimate
2.3 Notation
2.4 Accuracy and Precision
3 Estimation: Intuitive Estimators
3.1 Estimation of Mean
3.2 Estimation of Variance
3.3 Estimation of Proportion
.....
........

Any help is greatly appreciated.

With best regards,

Sarath Banneheka

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Table of Contents without dotted Lines and Page Numbers

Post by Frits »

To remove page numbers in your ToC:

Code: Select all

\renewcommand*{\addcontentsline}[3]{\addtocontents{#1}{\protect\contentsline{#2}{#3}{}}}	
BTW, this will produce errors when you also use the hyperref package.

I do not know how to remove the dotted line, but I do know how to adjust the spacing between them. So just make the spacing very large:

Code: Select all

\makeatletter
\renewcommand*{\@dotsep}{999}
\makeatother
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
paul
Posts: 49
Joined: Thu Apr 08, 2010 5:56 am

Re: Table of Contents without dotted Lines and Page Numbers

Post by paul »

Look at the titletoc package (documented in the titlesec manual)
Post Reply