I have the following code for a Theater play. Sometime the page breaks just after the name of a character. I would like to avoid that. I would be good if I could do it only by modifying the command \character
since the play is 200 pages long with many different characters. I tried to use \nopagebreak
but I was not successful. What can I do in order to never have the name of a character on the bottom of a page?
\documentclass[a5paper]{book}
\usepackage{geometry}
\usepackage{lipsum}
\newcommand{\character}[1]{
\begin{center}
\textsc{#1}
\end{center}}
\begin{document}
\character{Alice} \lipsum[2]
\character{Bob} \lipsum[2]
\character{Charles} \lipsum[2]
\character{David} \lipsum[2]
\character{Edmond} \lipsum[2]
\character{Francis} \lipsum[2]
\end{document}