I'm trying to create titles for pieces of text that won't appear as the last element at the bottom of the page. I haven't been able to find a method to prevent page breaks directly below the title. How to do this?
Code:
\documentclass[12pt,titlepage,twoside]{book}
\usepackage[paperwidth=30cm,paperheight=11cm]{geometry}
\usepackage{lipsum}
\newlength\meetingtopsep
\setlength\meetingtopsep{2ex plus0.8ex minus0.5ex}
\newcounter{meetingno}[section]
\renewcommand\themeetingno{\Roman{meetingno}}
\newcommand\meeting{
\vspace{\meetingtopsep}
\refstepcounter{meetingno}
\begin{center}
\large{Meeting \themeetingno}
\end{center}
}
\begin{document}
\section{ABC}
AAAaaa
\meeting
\lipsum[2-2]
\meeting
\lipsum[1-1]
\end{document}
\subsection
(if meetings are numbered within section) or perhaps a new heading based on\part
if not.tcolorbox
to solve my problem?