On May 25, 5:01 am, RAD <
richardarthurda...@gmail.com> wrote:
> thanks - but i'm using the article class (or report class)
>
> Rich
>
> On May 25, 3:36 am, jon <
jonwrobin...@gmail.com> wrote:
>
> > On May 24, 7:09 pm, RAD <
richardarthurda...@gmail.com> wrote:
>
> > > I have an article with two parts. I would the titles of the parts to
> > > appear in the toc, but without page numbers or the leading dots...
>
> > > any clues, anyone?
(it helps people follow the thread if you bottom-post.)
if you're dead set against using memoir, you'll probably want to try
something like this, then:
(note also what you need to do if you mean to use \part* rather than
\part.)
%%%%%%%%%%%%%%%%%%%%%%
\documentclass{report}
\usepackage{lipsum}
\makeatletter
\renewcommand*{\l@part}[2]{%
\par\addvspace{\topsep}
\setlength\@tempdima{2.3em}%
\noindent\hspace*{1.5em}\textbf{#1}\par}
\makeatother
\begin{document}
\tableofcontents
\part*{Part I}
\addcontentsline{toc}{part}{Part I}
\chapter{Chapter I}
\lipsum
\section{Section I}
\lipsum
\section{Section II}
\lipsum
\part{Part 2}
%\addcontentsline{toc}{part}{Part II}
\chapter{Chapter 2}
\lipsum
\section{Section 1}
\lipsum
\section{Section 2}
\lipsum
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%