COMPGROUPS.NET | Browse | Post | Groups | Users | Stream | About | |

### avoid self "contents" entry to appear in the table of contents (w/ memoir)

• Email
• Follow

I'm trying to remove the entry in the toc for ... the toc itself.
Is it possible at all?

The (obvious) minimal example is as follows:

\documentclass{memoir}
\begin{document}
\tableofcontents
\chapter{Foo} some text
\section{A} some text
\chapter{Bar} some text
\section{B} some text
\end{document}

What I want to obtain is a table of contents where the entry showing
that "Contents" appear at page 1 is not in the toc at all.

I've checked various ways of customizing the toc (both memoir-specific
and whatnot), but I haven't thus far found any way of achieving that.
Am I missing something?

TIA,
Cheers.

 0
Reply zack (2) 1/9/2010 4:13:50 PM

See related articles to this posting

Am Sat, 9 Jan 2010 08:13:50 -0800 (PST) schrieb zack@upsilon.cc:

> I'm trying to remove the entry in the toc for ... the toc itself.
> Is it possible at all?
>
> The (obvious) minimal example is as follows:
>
>   \documentclass{memoir}
>   \begin{document}
>   \tableofcontents
>   \chapter{Foo} some text
>   \section{A} some text
>   \chapter{Bar} some text
>   \section{B} some text
>   \end{document}
>
> What I want to obtain is a table of contents where the entry showing
> that "Contents" appear at page 1 is not in the toc at all.
>
> I've checked various ways of customizing the toc (both memoir-specific
> and whatnot), but I haven't thus far found any way of achieving that.
> Am I missing something?

Well you seemed not to have read the documentation, memman.pdf.
Searching for \tableofcontents the third hit was in chapter nine
"Contents lists" and gave:

"In memoir, unlike the standard classes, the unstarred versions add
their respective titles to the ToC. The starred versions act like
the standard classes� unstarred versions as they don�t add their
titles to the ToC"

--
Ulrike Fischer

 0
Reply Ulrike 1/9/2010 4:21:57 PM

"zack@upsilon.cc" <stefano.zacchiroli@gmail.com> wrote:

> I'm trying to remove the entry in the toc for ... the toc itself.
> Is it possible at all?
>
> The (obvious) minimal example is as follows:
>
>   \documentclass{memoir}

\KeepFromToc

Yours sincerely
Heiko <oberdiek@uni-freiburg.de>

 0
Reply Heiko 1/9/2010 4:25:55 PM

On Jan 9, 5:21=A0pm, Ulrike Fischer <ne...@nililand.de> wrote:
> > I've checked various ways of customizing the toc (both memoir-specific
> > and whatnot), but I haven't thus far found any way of achieving that.
> > Am I missing something?
>
> Well you seemed not to have read the documentation, memman.pdf.
> Searching for \tableofcontents the third hit was in chapter nine
> "Contents lists" and gave:

Well, sorry, I've actually read that, but the wording was unclear to
me (because the first reference highlight the facts that it typeset
the toc where you invoke it), now that you point me at it again the
reading looks (more?) obvious. Since I actually had searched the man
(and the TUG UK FAQs) before asking, I didn't think it was too
bothersome to ask here.

Thanks for the hint.

 0
Reply zack 1/9/2010 8:20:50 PM

3 Replies
411 Views

Similar Articles

[PageSpeed] 8

• Email
• Follow

Similar Artilces:

avoid self "contents" entry to appear in the table of contents (w/ memoir)
I'm trying to remove the entry in the toc for ... the toc itself. Is it possible at all? The (obvious) minimal example is as follows: \documentclass{memoir} \begin{document} \tableofcontents \chapter{Foo} some text \section{A} some text \chapter{Bar} some text \section{B} some text \end{document} What I want to obtain is a table of contents where the entry showing that "Contents" appear at page 1 is not in the toc at all. I've checked various ways of customizing the toc (both memoir-specific and whatnot), but I haven't thus far found ...

Hi, I am using memoir to write a book and am using one of the chapter page styles from CTAN designed for memoir. However, I just noticed that when I have \tableofcontents in my document, I get a page "Contents" as expected but I also get as first entry "Contents" which I do not like. I see no reason to have as first entry on the page "Contents" as being "Contents". How can I get rid of it? Is this expected behavior or perhaps I am doing something untoward? I would appreciate. Regards, Tariq Tariq <tariq.perwez@gmail.com> wrote: ...

Non-self-referential tables of contents in memoir
People, This looks like it should be a solved problem, but the solution escapes me. Using the memoir class, I wish to set up a rather complicated book with two tables of contents in the front matter: a Short Table of Contents and a Complete Table of Contents. It is easy to obtain a short table of contents that looks like this: Short Table of Contents.... Complete Table of Contents..... List of Figures..... List of Tables..... Introduction..... Chapter 1..... Chapter 2..... .. .. .. Appendix A..... Appendix B..... -and a complete table of contents that lists all of these items, and sectio...

Still working on getting my book to comply to my publisher's house style (using memoir class). In the table of contents, I have a lot of long chapter and section titles. The native behaviour of the memoir toc seems to be for long section titles to be printed as hanging paragraphs (second, third lines indented a little farther than the first). But for long chapter titles, lines 2, 3, etc., are flush left. How can I control this behaviour? I need the chapter titles to "hang" too, and to reduce the indentation of the "hang" in the section titles. I've tried to pu...

Hi all, I have specified the \tableofcontents command at the end of my acknowledgments page. I want the acknowledgments page to be numbered in arabic, and the pages of the table of contents to also be in arabic. However, I don't want an entry for the table of contents in the table of contents. Can someone help? Thanks, Diana M. Diana wrote: > Hi all, > > I have specified the \tableofcontents command at the end of my > acknowledgments page. I want the acknowledgments page to be numbered > in arabic, and the pages of the table of contents to also be in > arabic. >...