次の 2 つのことを実現するにはどうすればよいのでしょうか。
メモやコメントの使用のためにページ余白を定義したいのですが
\marginpar
、問題は、メモワールを両側オプションで使用しているにもかかわらず、奇数側の外側余白と偶数側の外側余白が異なることです。奇数ページと偶数ページの両方で外側余白をまったく同じにしたいです (たとえば、外側余白を 6 cm、内側余白を 2 cm にする)。ヘッダーとフッターを拡張して外側の余白 (marginsep と marginwidth の両方) を含めたいと思います。ハンドブックの理解では、これは
companion
ページスタイルを使用して実行できますが、デフォルトの章スタイル (フォント、スタイル、形状、罫線なしなど) の方が好みです。章のページスタイルを変更して、ヘッダーとフッターを余白領域に拡張するにはどうすればよいですか? ちなみに、回想録ハンドブックのスタイル定義headwidth
をいじって変更しようとしましたcompanion
が、うまくいきませんでした。
私はこれを試しました:
\setlength{\headwidth}{\textwidth}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\copypagestyle{chapter}{plain}
\makerunningwidth{chapter}{\headwidth}
こちらは MWE です。少し短くしてみました。
\documentclass[12pt,foliopaper,twoside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{kantlipsum}
\usepackage{tikz}
%*****************Margins and MarginNotes******************
\setmarginnotes{10pt}{5cm}{6pt}
\setlength{\textwidth}{0.9\textwidth}
\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\footnotesize #1]%
{\raggedright\footnotesize #1}}
%*******************Header & Footer***********************
\nouppercaseheads
%***********************Document*******************
\author{Author}
\date{\today}
\title{\textbf{Title}}
\begin{document}
\maketitle
\chapter{Chapter 1}
\kant[12]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[8]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[7]\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\section{Section 1}
\kant[7]
\chapterstyle{default}
\newpage
\printindex
\end{document}
答え1
私は幾何学マージンサイズを適切に設定します(外側6、内側2)\headwidth
。後ジオメトリマージンの定義。ダリフ回想録コンパニオン スタイルを使用すると、はるかに簡単かつクリーンになります。最初の章のページに同じスタイルを適用したい場合は、\aliaspagestyle{chapter}{companion}
\pagestyle の後に追加するだけです。Adobe Acrobat のスクリーンショット:
\documentclass[12pt,foliopaper,twoside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{kantlipsum}
\usepackage{tikz}
%*****************Margins and MarginNotes******************
\usepackage[outer=6cm, inner=2cm, heightrounded, marginparwidth=4cm, marginparsep=1cm]{geometry}
%*******************Header & Footer***********************
\setlength{\headwidth}{\textwidth}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\nouppercaseheads
%***********************Document*******************
\author{Author}
\date{\today}
\title{\textbf{Title}}
\pagestyle{companion}
\begin{document}
\maketitle
\chapter{Chapter 1}
\kant[12]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[8]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[7]\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\section{Section 1}
\kant[7]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\chapterstyle{default}
\newpage
\printindex
\end{document}