0

My supervisor wants me to write an introduction for each chapter, between the chapter number and the chapter title. I don't know how am I supposed to do it.This is what I want:

Chapter 2:
blabla
Title of Chapter 2 

And I also want to have in my table of contents the following: 2 Title of Chapter 2......... page 15

This is what she wrote: enter image description here

5
  • 1
    Such kind of writing is very strange. The introduction should be after the chapter title I think
    – user156344
    May 24, 2019 at 14:59
  • 1
    I think the same, but I edited the question so you can see it and maybe tell me what she wants...and how to do it
    – Jojo
    May 24, 2019 at 15:05
  • 1
    Of course I understand what she wants, but I just want to say that it is very strange, if 'terrible' is a too heavy word. I would never read a document like that
    – user156344
    May 24, 2019 at 15:06
  • 2
    I know, I agree with you...but she decides about my marks ahah! Maybe she is telling that she wants the chapter number, then the intro to the chapter, then a section? but in this way the table of contents becomes a mess!
    – Jojo
    May 24, 2019 at 15:09
  • Usually the solution for questions like this depends to some (certainly not insignificant) degree on the document class you use. Maybe you could tell us more about that in a short example document (MWE: tex.meta.stackexchange.com/q/228/35864). The KOMA Script classes, for example, have some features that could be helpful here.
    – moewe
    May 24, 2019 at 15:29

1 Answer 1

0

The memoir class provides a macro \afterchapternum which inserts itself between the chapter number and the chapter title. The following, less any typos, is just to give you an idea.

\documentclass{memoir}
\begin{document}
\tableofcontents
\renewcommand{\afterchapternum}{{\\ \normalsize\textit{In this chapter \ldots}\\}}
\chapter{first}
Some text.
\renewcommand{\afterchapternum}{\\ \normalsize\textit{But here \ldots}\\}}
\chapter{Second}
More text.
\end{document}

This produces text between the chapter number and the title, but does not add the text to the ToC. As given the layout of the inserted text is not pretty but I don't know what your supervisor wants, except that it is passing strange.

Define a macro that encompasses the desired layout of the inserted text and use that before each \chapter. For instance:

\newcommand{\chapintro}[1]{\renewcommand{\afterchapternum}{{\\ \normalsize\textit{#1}\\}}}

Good luck with your supervisor.

1
  • many thanks, this is the thing which is nearest to the solution I need. I'll ask her if this is what she wants
    – Jojo
    May 24, 2019 at 20:24

You must log in to answer this question.

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