I am writing my Master's Thesis and have planned the number of pages I want to write for each chapter. To get an idea of how much everything will be including title page, references, appendices etc I tried to tell LaTeX to expand each section with empty pages. I tried the approach from here and changed
\AtEndDocument{\emptypages{100}}
to
\AtEndSection{\emptypages{some_value}}
Interestingly, this seems to work for some sections, but not for all.
Is this the right approach?
If yes, do you have an idea what goes wrong with some sections? If not, can you tell me the right approach?
My document's structure looks like this:
\documentclass{scrartcl}
\usepackage{my_style_package}
\newcommand\emptypages[1]{%
\loop\ifnum\value{page}<#1\relax
\clearpage
\null
\thispagestyle{empty}%
\repeat
\clearpage
}
\begin{document}
\pagestyle{empty}
\include{sections/titlepage}
\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
\clearpage
\addtocontents{toc}{\protect\contentsline{section}{\numberline{}Abstract}{}{}}
\include{sections/abstract}
\pagestyle{plain}
\setcounter{page}{1}
\include{sections/sec1}
\AtEndSection{\emptypages{x}}
\include{sections/sec2}
\AtEndSection{\emptypages{x}}
\include{sections/sec3}
\AtEndSection{\emptypages{x}}
\include{sections/sec4}
\AtEndSection{\emptypages{x}}
\include{sections/sec5}
\AtEndSection{\emptypages{x}}
\include{sections/sec6}
\AtEndSection{\emptypages{x}}
\cleardoublepage
\pagestyle{empty}
\addtocontents{toc}{\protect\contentsline{section}{\numberline{}References}{}{}}
\printbibliography
\appendix
\addtocontents{toc}{\protect\contentsline{section}{\numberline{}Appendix}{}{}}
\include{sections/appendix}
\end{document}
\lipsumfromlipsumpackage? – Sigur Jun 26 '15 at 15:17pagecounter to suit your needs... – Werner Jun 26 '15 at 16:48