Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the package fixme and the command \listoffixmes which generates a list of fixme notes on a page titled List of Corrections. However, the title appears in the table of contents and messes with the other section titles throughout the front matter. I'm using amsbook as my document class.

Is there a way to remove the List of Corrections from the Table of Contents?

share|improve this question
    
Do you use a KOMA-Class with the option listof=totoc? –  Marco Daniel Jul 21 '11 at 20:00
add comment

1 Answer

up vote 2 down vote accepted

I guess you are using KOMA. In this case you can redefine the heading. It is important that you create a minimal example.

\documentclass[listof=totoc]{scrartcl}

\usepackage[draft]{fixme}
\makeatletter
\renewcommand\lox@heading{\section*{\@fxlistfixmename}%
\@mkboth{\@fxlistfixmename}{\@fxlistfixmename}%
}
\makeatother


\begin{document}
\tableofcontents
\listoffixmes
\clearpage
\section{foo}
Text\fxnote{hallo}
\end{document}

EDIT:

fixme uses an old definition of the heading. According to the package scrhack you can redefine the listoffixmes so that toxbasic is used. So you can use setuptoc{}{} to influence every \listof.... Here an example:

\documentclass[]{scrartcl}
\usepackage[draft]{fixme}
\makeatletter
\addtotoclist[float]{lox}
\setuptoc{lox}{chapteratlist}
\renewcommand*{\listoffixmes}{\listoftoc[{\@fxlistfixmename}]{lox}}
\makeatother

\setuptoc{lot}{totoc}


\begin{document}
\tableofcontents
\listoffigures
\listoftables
\listoffixmes
\clearpage
\section{foo}
Text\fxnote{hallo}
\end{document}

For more details see the documentation of KOMA.

EDIT 2

Explanation documentation amsbook:

In amsart.sty \@startsection, \@sect, and a couple of other things are redefined to fix a few hard-coded things that would interfere with the desired style. The most noteworthy difference is that all section headings will go into the table of contents (governed by secnumdepth as usual), EVEN WHEN THE * FORM IS USED. The only section heading not listed in the table of contents is the heading for the toc itself.

\documentclass[]{amsbook}
\usepackage[draft]{fixme}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\clearpage
\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}\endgraf}
\listoffixmes
\addtocontents{toc}{\protect\setcounter{tocdepth}{4}\endgraf}
\clearpage
\chapter{bar}
\section{foo}
Text\fxnote{hallo}
\end{document}
share|improve this answer
    
Hi Marco, I'm using amsbook not KOMA. Can you port your code to that document class? Thanks! –  user02138 Jul 22 '11 at 0:38
    
I edited my post. –  Marco Daniel Jul 22 '11 at 10:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.