TransWikia.com

How to force abstract and introduction to stay in the same page in LaTeX?

TeX - LaTeX Asked by FortGrade on April 2, 2021

I need to write on LaTeX the begin{abstract} before chapter*{Introduction} in the same page. I am using the following document class documentclass[12pt,a4paper,oneside]{book} with usepackage[Conny]{fncychap}.

documentclass[12pt,a4paper,oneside]{book}
usepackage[Conny]{fncychap}
begin{document}
microtypesetup{activate=true}
allowhyphens
counterwithin*{subsection}{chapter}
frontmatter
tableofcontents
mainmatter
pagenumbering{arabic}
begingroup
begin{abstract}
addcontentsline{toc}{chapter}{Abstract}
end{abstract}
cleardoublepage
chapter*{Introduction}
addcontentsline{toc}{chapter}{Introduction}
endgroup
end{document}

One Answer

Unfortunately the code you showed in the question does not compile, so I'll assume some generic definition for the abstract environment.

You can avoid the automatic page break at the start of a new chapter by temporarily redefining cleardoublepage:

documentclass[12pt,a4paper,oneside]{book}
usepackage[Conny]{fncychap}

newenvironment{abstract}{}{par}

begin{document}
%microtypesetup{activate=true}
%allowhyphens
counterwithin*{subsection}{chapter}
frontmatter
tableofcontents
mainmatter
pagenumbering{arabic}
begingroup
renewcommand{cleardoublepage}{relax}
begin{abstract}
some text
addcontentsline{toc}{chapter}{Abstract}
end{abstract}
%cleardoublepage
chapter*{Introduction}
addcontentsline{toc}{chapter}{Introduction}
endgroup
end{document}

Answered by samcarter_is_at_topanswers.xyz on April 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP