8

Hello i would like to prevent the new chapter begins in a new page, i am using memoir class and here is the MWE:

\documentclass[french,12pt,openany,oneside,openright]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper]{geometry}
\usepackage[french]{babel} %langue francaise
\usepackage{graphicx,xcolor}%insertion d'images
\usepackage{titlesec}
\graphicspath{{Annexes/images/}} %directory of the images
\usepackage{lipsum} %paragraphes prédéfinis
\usepackage{verbatim}
\usepackage{titlesec, blindtext, color}

\usepackage{vmargin}
\setmarginsrb           { 1.5in}  % left margin
                        { 0.6in}  % top margin
                        { 1.0in}  % right margin
                        { 0.8in}  % bottom margin
                           {  20pt}  % head height
                        {0.25in}  % head sep
                               {   9pt}  % foot height
                        { 0.3in}  % foot sep
\raggedbottom
\aliaspagestyle{part}{empty}
\renewcommand{\printpartname}{}
\renewcommand{\partnamenum}{}
\renewcommand{\printpartnum}{}
\usepackage{booktabs}
\usepackage{hyperref}
\begin{document}

\lipsum
\chapter{yes no}
\lipsum
\end{document}
Gonzalo Medina
  • 505,128
Hamza.w
  • 603

1 Answers1

8

Since you are using memoir, you simply have to redefine \clearforchapter using, for example

\gdef\clearforchapter{}

A complete example:

\documentclass[french,12pt,openany,oneside,openright]{memoir}
\usepackage{lipsum}% just for the example

\gdef\clearforchapter{}

\begin{document}

\chapter{One}
\lipsum[4]
\chapter{Two}
\lipsum[4]

\end{document}

The result:

enter image description here

Additionally, you might also want to change the page style; in this case, use

\aliaspagestyle{chapter}{<style>}

where <style> is the page style you want for the pages containing the beginning of a chapter.

Alan Munn
  • 218,180
Gonzalo Medina
  • 505,128
  • Thank you ,just one last question, how can i keep the page style the same, like the headings and page numbers wont shift to the bottom? – Hamza.w Jun 14 '15 at 18:28
  • 1
    @Hamza.w You're welcome. Use \aliaspagestyle{chapter}{<style>}, where <style> is the desired style. For example, \aliaspagestyle{chapter}{headings} will use the headings style in those pages. – Gonzalo Medina Jun 14 '15 at 18:44