本のタイトル(左側)

本のタイトル(左側)

ページレイアウトを使用しています見出し回想録ではページ番号のみが表示され、章名やタイトルは表示されません。

ページの外側にページ番号を配置し、裏ページには章名、番号、タイトルを斜めの大文字で背の余白に配置し、表ページにはセクション番号と大文字のタイトルを背の余白に配置します。

上記から私が理解しているのは、ページ番号、章名、本のタイトルはすべて自動的に入力されるということです。見出し、しかし、定義する必要がある私の見出しもしそうなら、ページの見出しから章名とタイトルが表示されないのはなぜでしょうか?

追加編集:

私が実現しようとしているのは、外側の角にページ番号、内側の角に本のタイトルと章のタイトルがあるヘッダー レイアウトです。

本のタイトル(左側)

章タイトル番号(右側)

しかし、私が得たものは次のとおりです。

!ここに画像の説明を入力してください]1]]1]

ドキュメント > 設定 > ページ レイアウトでページ スタイル「myheadings」を使用しており、章を \chapter* ではなく \chapter に変更しました。

ページのスタイルについては、この質問の回答から引用した次の文を序文に記述しました]]2]。

\makepagestyle{myheading}
\makeevenhead{myheading}{\thepage}{}{\mytitle}
\makeoddhead{myheading}{\leftmark}{}{\thepage}
\def\mytitle {Title Of Book}
\pagestyle{myheading}

ヘッダーにタイトル (時々) とページ番号が、必要な場所に正しく表示されるようになりました。ただし、表示されるべき場所に空白スペースがあります。a)章のタイトルが必要であることを認識するように\leftmark定義するか、b) デフォルト値を取得するようにリセットする必要がありますか? または、まったく別の方法がありますか?\leftmark\leftmark

最もシンプルな例 (見出しを除く以前のカスタム スタイルをすべて削除) を使用しても、ページ番号と割り当てられたタイトルのみが表示され、章のタイトルは表示されません。

% 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]:回想録クラスのヘッダーにドキュメントのタイトルを含める

答え1

Don't use the name `myheadings`, use your own. `myheadings` is predefined to do stuff you don't want.


%% 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.
\documentclass[english,oldfontcommands]{memoir}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\usepackage[paperwidth=5in,paperheight=8in]{geometry}
\geometry{verbose}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\makeatletter
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage {lipsum}

\makepagestyle{kitty}
\makeevenhead{kitty}{\thepage}{}{\mytitle}
\makeoddhead{kitty}{\leftmark}{}{\thepage}
\def\mytitle {Title Of Book}
\pagestyle{kitty}

\makeatother

\begin{document}

\title{Title of Book}


\author{Author}
\maketitle

\chapter{Wombat}

\lipsum[1-5]

\end{document}

答え2

memoirクラスのデフォルトのページスタイルでは、ヘッダーは生成されますが、\pagestyle{headings}生成されません。クラス オプションでは、ヘッダーに何も追加されません。\chapter*{...}\chapter{...}oneside\section{...}

これを試してみてください:

\documentclass%
%[oneside]%
{memoir}
\usepackage{lipsum}
\pagestyle{headings}
\begin{document}
\chapter{Lorem Ipsum}
 %% \chapter*{Lorem Ipsum}
\lipsum[1-5]
\section{Section}
\lipsum[6-15]
\end{document}

オプションを使用しtwosideて星を外す\chapterと、必要な結果が得られると思います。それ以外の場合は、独自のを定義する必要があります\pagestyle

あなたの本のタイトルについては誰もmemoir \pagestyle何も知りませんので、それはあなた次第です。

関連情報