I am preparing a book in which each chapter is contributed by different people.I want to include their name after the chapter title.How to I do it.If I use \maketitle
it is useing the title and author name for the book. Here is the MWE:
\documentclass[12pt]{book}
\usepackage{lipsum}
\author{S.Subham Soni}
%\title{A Sample Test} --> I don't want to use this
\begin{document}
%\maketitle
\chapter{This is a test}
\lipsum[4]
\end{document}
Best Answer
Why don't define a new command
\chapterauthor
and use it in this way?
EDIT
Just in case you want to add authors' info in the ToC, here is a different version.
Use the starred version of
\chapterauthor
(\chapterauthor*
) in correspondence of starred chapters (\chapter*
).MWE
Output (ToC):