[Tex/LaTex] Insert page before each chapter

chapters

I would like to insert a page before each chapter with the tile of the chapter.
How we can accomplish this in latex…?

The structure of my latex document is as below:

documentclass[a4paper,11pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,graphicx,color,algorithm,float,caption,mathtools}
\usepackage{url,rotating,multirow}
\usepackage{algpseudocode,pdfpages}
\usepackage[normalem]{ulem}
\usepackage{breqn}
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}

\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[HL]{\leftmark}
\fancyfoot[C] {\thepage}


\renewcommand{\headrulewidth}{1pt}
\begin{document}

\cleardoublepage
\pagenumbering{gobble}
\includepdf[pages={-}]{certificate/certi.pdf}
\tableofcontents
\listoffigures
\listoftables

\cleardoublepage
\pagenumbering{arabic}

\include{abstract/abstract}
\include{introduction/intro}
\include{survey/survey}
\include{chapter1/chapter1}
\include{chapter2/chapter2}
\include{chapter3/chapter3}
\include{chapter4/chapter4}
\include{chapter5/chapter5}
\include{results/results}
\include{conclusion/conclusion}
%references will go here
\renewcommand{\bibname}{References}
\bibliographystyle{plain}

\bibliography{References/references}
\end{document}

I want a page before each chapter starts consisting the title of the chapter…For example, if the chapter one named "Some Chapter Name" is starting from page number 10, then I would like to insert a page before page number 10 having the text " Chapter 1 Some Chapter Name

Best Answer

Redefine the chapter command to execute some start code before, in its easyiest form, you have to use a clearpage before, using the old pagestyle, then use plain pagestyle and add the page code, afterwards switch back to old fancy pagestyle.

Since there are \chapter[]{} and \chapter{} forms of the \chapter command, both have to be catched.

\documentclass[a4paper,11pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,graphicx,color,algorithm,float,caption,mathtools}
\usepackage{url,rotating,multirow}
\usepackage{algpseudocode,pdfpages}
\usepackage[normalem]{ulem}
\usepackage{breqn}
\usepackage{blindtext}
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}

\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[HL]{\leftmark}
\fancyfoot[C] {\thepage}

\let\LaTeXStandardChapter\chapter%

\newcommand{\chapterstartpage}[1]{%
\clearpage% Clearpage first, then use pagestyle plain
\pagestyle{plain}%
\addtocounter{chapter}{1}%
\begingroup
\centering%
\Huge \textbf{\chaptername~\thechapter}%%

\addtocounter{chapter}{-1}%
%% Add more space here, do more formatting also here
\vspace{\baselineskip}%
\textbf{#1}%
\endgroup
\clearpage
\pagestyle{fancy}%
}%

\makeatletter
\newcommand{\chapter@noopt}[1]{%
\chapterstartpage{#1}%
\LaTeXStandardChapter{#1}%
}%

\newcommand{\chapter@opt}[2][]{%
\chapterstartpage{#2}%
\LaTeXStandardChapter[#1]{#2}%
}%


\newcommand{\unstarredchapter}{%
\@ifnextchar[{\chapter@opt}{\chapter@noopt}%
}%

\newcommand{\starredchapter}[1]{%
\LaTeXStandardChapter*{#1}
}%



\renewcommand{\chapter}{%
\@ifstar{\starredchapter}{\unstarredchapter}%
}%







\makeatother


\renewcommand{\headrulewidth}{1pt}
\begin{document}

\cleardoublepage
\pagenumbering{gobble}
%\includepdf[pages={-}]{certificate/certi.pdf}
\tableofcontents
\listoffigures
\listoftables

\cleardoublepage
\pagenumbering{arabic}

\chapter{Some sophisticated chapter}%

\chapter{Another sophisticated chapter}%

\blindtext[5]

\chapter{Yet another sophisticated chapter}%

\blindtext[5]


%\include{abstract/abstract}
%\include{introduction/intro}
%\include{survey/survey}
%\include{chapter1/chapter1}
%\include{chapter2/chapter2}
%\include{chapter3/chapter3}
%\include{chapter4/chapter4}
%\include{chapter5/chapter5}
%\include{results/results}
%\include{conclusion/conclusion}
%references will go here

%\renewcommand{\bibname}{References}
%\bibliographystyle{plain}

%\bibliography{References/references}
\end{document}

enter image description here enter image description here