6

I'm using the docoumentclass amsart. Two things I don't like:

  1. The table of contents (TOC) looks kind of poor, is there an easy way to change it? I like it from article more.

  2. If I use \section*{bla} it still appears but without number in the TOC. How can I make a section that does not appear in the TOC?

lockstep
  • 250,273
Marcel
  • 1,072

2 Answers2

2
  1. You could use a package for customizing the TOC, such as tocloft or titletoc.

  2. is answered by Carsten. If you still need information, let us know.

Stefan Kottwitz
  • 231,401
0

in the meanwhile I solved the problem (found it somewhere else

\makeatletter
\def\@tocline#1#2#3#4#5#6#7{\relax
\ifnum #1>\c@tocdepth % then omit
  \else 
    \par \addpenalty\@secpenalty\addvspace{#2}% 
\begingroup \hyphenpenalty\@M
    \@ifempty{#4}{%
      \@tempdima\csname r@tocindent\number#1\endcsname\relax
 }{%
   \@tempdima#4\relax
 }%
 \parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax
 \rightskip\@pnumwidth plus4em \parfillskip-\@pnumwidth
 #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
 \ifnum#1<0\hfill\else\dotfill\fi\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
 \nobreak
 \endgroup
  \fi}
\makeatother
Marcel
  • 1,072