I am using the page layout headings in Memoir. It is only displaying the page number, but not the chapter name or title
the folio at the outer side of the page; on verso pages the chapter name, number and title, in slanted uppercase is set at the spine margin and on recto pages the section number and uppercase title is set by the spine margin.
My understanding, from the above, is that page number, chapter name, and book title all autopopulate in headings, but need to be defined in myheadings. If this is so, what could be suppressing the chapter name and title from the page heading?
Edited to add:
What I am trying to accomplish is a header layout with page numbers in outside corners and the title of the book & chapter in the inside corners:
Title Of Book (on left)
and Chapter Title # (on right)
But what I get is:
!enter image description here]1]]1]
I am using the page style "myheadings" in the Document>Settings>Page Layout, and I have changed my chapters to \chapter instead of \chapter*.
For page styling I have the following in the preamble, adapted from the answer of this question]]2]:
\makepagestyle{myheading}
\makeevenhead{myheading}{\thepage}{}{\mytitle}
\makeoddhead{myheading}{\leftmark}{}{\thepage}
\def\mytitle {Title Of Book}
\pagestyle{myheading}
The header is now correctly displaying the title (sometimes), and the page numbers where I want them. However, I am getting a blank space where \leftmark
should go. Do I need to either a) define \leftmark
so it knows I want the chapter title, or b) reset \leftmark
to so that it pulls it's default value? Or something else entirely?
Using the most minimal example (stripping all of my previous custom styling, except the heading) still gets me only the page numbers, assigned title, and no chapter title.
% Preview source code
%% LyX 2.2.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclassenglish,oldfontcommands]{memoir}
\usepackageT1]{fontenc}
\usepackagelatin9]{inputenc}
\usepackagepaperwidth=5in,paperheight=8in]{geometry}
\geometry{verbose}
\pagestyle{myheadings}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage {lipsum}
\makepagestyle{myheadings}
\makeevenhead{myheadings}{\thepage}{}{\mytitle}
\makeoddhead{myheadings}{\leftmark}{}{\thepage}
\def\mytitle {Title Of Book}
\pagestyle{myheadings}
\makeatother
\usepackage{babel}
\begin{document}
\title{Title of Book}
\author{Author}
\maketitle
\chapter{Lorem Ipsum}
\lipsum[1-5]
\chapter*{Ipsum Lorem}
\lipsum[1-6]
\end{document}
1]: https://i.stack.imgur.com/gQErb.png 2]: include document title in memoir class header