I want to put the chapter title in the margin, like in the example. I am using Memoir. I have no MWE since I really don´t know how to position the chapter in the margin.

Thanks in advance!

enter image description here

1 Answer 1


UPDATED after comment.

With memoir you can define a custom chapter style.

Since you didn't provide an MWE, this example mimics the figure. The style called ChapinMargin will print the chapter title in the margin (left margin on odd pages, right margin on even pages) without the chapter number (although it will print in the TOC with its number).

In order for the page number to align with the bottom of the text as shown in the figure, it is necessary to define the general page style and also the plain style, used on the first page of a chapter.

You should provide adequate left margin to fit the chapter titles.

Note. To accurately detect even and odd pages, at least two runs of LaTeX are required to stabilize.


\documentclass[a5paper, openany]{memoir}

\strictpagecheck % needed for \ifoodpage <<<

\usepackage{picture}% added <<<<<<<<

\usepackage{lipsum}% dummy text

%\usepackage{showframe}% use to show the margins

%% ******* set the page layout, change at will <<<<<
\setlrmarginsandblock{1.5cm}{5cm}{*} %
\setmarginnotes{0.5cm}{3.5cm}{0pt}% wide margin space to fit the chapter title
%% ****************************************
    \renewcommand*{\printchaptertitle}[1]{% chapter title in the margin <<<<
    \ifoddpage \begin{picture}(0,0){\put(\dimexpr\textwidth+\marginparsep,0pt){\parbox[t]{\marginparwidth}{\raggedleft\chaptitlefont ##1}}}\end{picture}%
    \begin{picture}(0,0){\put(\dimexpr-\marginparwidth-\marginparsep,0pt){\parbox[t]{\marginparwidth}{\raggedright\chaptitlefont ##1}}}\end{picture}

% chapter style with title in margin
\chapterstyle{ChapinMargin} % use this style <<<<<<<<<

%% define a new page style

%% define a plain page style for first page of chapters

    \chapter{Design Is One}
    \chapter{Design Is Two and  much more}
  • 1
    +1 Trickier is how to get the page numbers on the left margin aligned with the bottom of the text. (Not specifically in the question, but in the image provided). Any ideas on how to do that too?
    – Alan Munn
    Commented May 2, 2023 at 20:15
  • 1
    @Alan Munn Thank you for your feedback! I added some code to include the page numbers at the bottom. Commented May 3, 2023 at 20:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .