Мне интересно, как я могу достичь следующих двух вещей:
Я хочу определить поля страницы для использования
\marginpar
заметок и комментариев. Проблема в том, что, хотя я использую memoir с опцией twoside, внешние поля нечетной и четной сторон отличаются. Я хочу, чтобы внешние поля были абсолютно одинаковыми на четных и нечетных страницах (например, иметь внешние поля 6 см и внутренние поля 2 см).Я хотел бы расширить верхний и нижний колонтитулы, включив в них внешние поля (как marginsep, так и marginwidth). Насколько я понимаю, в руководстве это можно сделать с помощью pagestyle
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
должно бытьпослеопределение геометрических полей. Как указанодалейфгораздо проще и чище сделать это с помощью стиля memoir companion. Если вы хотите, чтобы страница первой главы имела тот же стиль, просто добавьте \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}