Created
October 11, 2014 06:45
-
-
Save jasonblewis/b10ccbe2a4471925c9fd to your computer and use it in GitHub Desktop.
suppress page number output for \part in tableofcontents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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