Me pregunto cómo puedo lograr las dos cosas siguientes:
Quiero tener márgenes de página definidos para el uso de
\marginpar
notas y comentarios. El problema es que, aunque uso memorias con la opción de dos lados, el margen exterior impar y el margen exterior par difieren. Quiero que los márgenes exteriores sean exactamente iguales en las páginas pares e impares (por ejemplo, tener márgenes exteriores de 6 cm y márgenes interiores de 2 cm).Me gustaría ampliar el encabezado y el pie de página para incluir el margen exterior (tanto marginsep como marginwidth). Según tengo entendido, esto se podría hacer usando el
companion
estilo de página, pero prefiero el estilo de capítulo predeterminado (es decir, su fuente, estilo, forma, sin regla, etc.). ¿Cómo puedo modificar el estilo de página del capítulo para que el encabezado y el pie de página se extiendan al área del margen? Por cierto: intenté modificarheadwidth
jugando con lacompanion
definición de estilo del manual de memorias. Pero no tuve éxito:
Probé esto:
\setlength{\headwidth}{\textwidth}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\copypagestyle{chapter}{plain}
\makerunningwidth{chapter}{\headwidth}
Aquí hay un MWE. Intenté acortarlo un poco.
\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}
Respuesta1
utilicé elgeometríapara configurar correctamente los tamaños de los márgenes (6 exteriores, 2 interiores). Recuerda que \headwidth
debe venir.despuésla definición de los márgenes de la geometría. Como lo señalódaleifEs mucho más fácil y limpio hacerlo con el estilo de un compañero de memorias. Si desea que la página del primer capítulo tenga el mismo estilo, simplemente agréguela \aliaspagestyle{chapter}{companion}
después de \pagestyle. Captura de pantalla en 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}