5

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}
  • 4
    Please have a look at Start new chapter on same page – Johannes_B Jun 14 '15 at 9:13
  • 1
    You might want to have a look at Multiple chapters per page, only if they “fit” as well. – GuM Jun 14 '15 at 11:09
  • thanks for your answers, i tried both solutions and nonde did work. – Hamza.w Jun 14 '15 at 16:24
  • Try \let\cleardoublepage\clearpage. This will make all subsequent clear double pages insert only one new page. If you are likely to need this later then "save" a copy of \cleardoublepage by first typing \let\originalcleardoublepage\cleardoublepage and then \let\cleardoublepage\originalcleardoublepage when you ant to restore this feature. – Andrew Jun 14 '15 at 16:38
7

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.

| improve this answer | |
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.