0

The goal is to simulate the style of this document. I managed to get rid of the "Chapter" word in chapter names using titlesec. And then I tried to do the same for the ToC, using e.g.

\usepackage{titletoc}

\titlecontents{chapter}
[0pt]                                               % left margin
{}%
{\contentsmargin{0pt}                               % numbered entry format
    \thecontentslabel\enspace%
    \large\scshape}
{\contentsmargin{0pt}\large}                        % unnumbered entry format
{\titlerule*[.5pc]{.}\contentspage}                 % filler-page format (e.g dots)
[]                                                  % below code (e.g vertical space)

This changes the name of the chapter fine, but the "Chapter X"-type of prefix is still there. How to get rid of it? enter image description here

I would like to achieve this: enter image description here

What could be done?

EDIT: The template is here, and my MWE file is here

1
  • 2
    That's the default behaviour, so we should have a short, yet complete code, with document class, relevant packages and your own related macros to understand why it is not the case.
    – Bernard
    Commented Aug 31, 2020 at 22:40

2 Answers 2

1

You can patch the document class macro that writes to the .toc file.

\usepackage{xpatch}
\makeatletter
\xpatchcmd{\dal@chapter}
 {\numberline{\@chapapp\space\thechapter}}
 {\numberline{\thechapter}}
 {}{}
\makeatother
0

The answer is to add \renewcommand{\chaptername}{} before the titlecontents in the above example, and we get rid of the "Chapter" word in the table of contents.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .