只有每章的起始页被删减了。一切都很好,直到我添加了 hyperref 包。以下是初始代码
\documentclass[10pt,twoside,openright]{memoir}
\usepackage{algpseudocode}
\usepackage{geometry}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{stackengine}
\usepackage{cases}
\usepackage{hyperref}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\geometry{ a4paper, top = 1in, bottom = 1in, left = 1.5in, right = 1.5in}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{observation}[theorem]{Observation}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{fact}[theorem]{Fact}
\newtheorem{assumption}[theorem]{Assumption}
%\usepackage[T1]{fontenc}
%\usepackage{mathpazo}
\usepackage[protrusion=true,expansion=true]{microtype}
%\usepackage{type1cm}
%\usepackage{lettrine}
%\checkandfixthelayout
% See the ``Memoir customise'' template for some common customisations
% Don't forget to read the Memoir manual: memman.pdf
%\title{TITLE OF BOOK}
%\author{NAME OF AUTHOR}
%\date{} % Delete this line to display the current date
%% BEGIN TITLE
\makeatletter
\def\maketitle{%
\null
\thispagestyle{empty}%
\vfill
\begin{center}\leavevmode
\normalfont
{\Huge\raggedleft \@author\par}%
\hrulefill\par
{\Huge\raggedright \@title\par}%
\vskip 1cm
% {\Large \@date\par}%
\end{center}%
\vfill
\null
}
\makeatother
\author{Vimal Raj Sharma}
\title{Notes on Algorithm}
\date{}
%%% BEGIN DOCUMENT
\begin{document}
\maketitle
\null\vfill
\mainmatter
\tableofcontents
\chapter{Analysis}
\section{Asymptotic notation}`
例如,以下是问题。
答案1
默认的纸张格式适用letterpaper
于课程memoir
(和标准课程)。由于 LaTeX 不设置介质大小,因此需要通过诸如memoir
、hyperref
、之类的包和类来完成此操作geometry
。该文档的问题是,纸张大小在序言期间发生了变化。因此,最好尽早添加正确的纸张大小:
\documentclass[a4paper, ...]{memoir}
然后memoir
和hyperref
即可选择正确的纸张尺寸。 还可以禁用 的介质尺寸设置hyperref
:
\usepackage[setpagesize=false]{hyperref}
但是,由于类的存在,全局选项仍然是需要的memoir
。
page.1
通过禁用标题页的页面锚点,可以避免由于目标名称重复而导致的错误:
\begingroup
\hypersetup{pageanchor=false}
\maketitle
\cleardoublepage
\endgroup
\mainmatter