Skip to content

Instantly share code, notes, and snippets.

@jasonblewis
Created October 11, 2014 06:45
Show Gist options
  • Save jasonblewis/b10ccbe2a4471925c9fd to your computer and use it in GitHub Desktop.
Save jasonblewis/b10ccbe2a4471925c9fd to your computer and use it in GitHub Desktop.
suppress page number output for \part in tableofcontents
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tocloft}
\title{42}
\author{Jane Doe}
\date{June 2011}
\begin{document}
\maketitle
\tableofcontents
\newpage
\addtocontents{toc}{\cftpagenumbersoff{part}}
\part{no page number for this part}
\addtocontents{toc}{\cftpagenumberson{part}}
less than
\section{Introduction}
\part{page number for this part}
\chapter{more chapter}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment