编辑

编辑

我使用的文档类是:

\documentclass[a4paper,11pt,openany,leqno,footinclude=true]{memoir}

我想要获取 LaTeX 中的页面标题,就像我在这里找到的一样:

在此处输入图片描述

显然,摘要是一个部分。我该如何重新创建此页面中给出的标题?

答案1

我不知道为什么这个必须重现,但是这是一个启动器(仅),没有进一步的包装。

\documentclass[a4paper,11pt,openany,leqno]{memoir}

\usepackage{blindtext}

\begin{document}

{%
\centering
{%
\large 
\textsc{Transport Architectures for an evolving internet}%

by

\textsc{Keith Winstein}%
}
\vskip\baselineskip
Submitted to the Department of Silly Walks

}




\begin{abstract}
\blindtext
\end{abstract}

\end{document}

在此处输入图片描述

答案2

回忆录包括基于标题抽象的包,因此您应该使用这些工具来修改布局。

摘要不是一个部分,而是一个具有自己的设置和配置的专门环境。

请注意,使用 Memoir 的工具配置标题意味着相关数据可在整个文档中使用,例如,如果需要,可用于页眉或页脚。因此,即使您不使用类本身提供的自定义宏,设置使用 等也是有好处的。(事实上,对于单独的标题页,手册建议不要使用配置\title{},而是手动执行。但您仍然希望这样做,以便您的标题页使用传递给等的值。\author{}\maketitle\title{}\author{}

手册的相关章节是 4 和 5,如下面的注释所示:

\documentclass[a4paper,11pt,openany,leqno,footinclude=true]{memoir}
\usepackage{kantlipsum}
% see chapter 4 of memoir's documentation
\pretitle{\begin{center}\large\scshape}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{%
  \begin{center}
    \large\scshape \lineskip 0.5em%
    \begin{tabular}[t]{c}%
}
\postauthor{%
  \end{tabular}
  \par
  \end{center}%
}
\predate{}
\postdate{}
\renewcommand\maketitlehookb{\centering by\par}
\renewcommand\maketitlehookc{%
  \begin{center}
    Submitted to the Department of Astro-Engineering of the Intergalactic University at Alpha Centauri on May 29, 3014 \textsc{CE} in partial fulfilment of the degree of Doctor of Philosophy
  \end{center}%
}
% ref: chapter 5 of memoir's manual
\renewcommand{\abstractnamefont}{\normalfont\bfseries}
\renewcommand{\absnamepos}{flushleft}
\setlength\absleftindent{0pt}
\setlength\absrightindent{0pt}

\title{Transport Architectures for an Evolving Internet}
\author{Keith Winstein}
\date{}

\begin{document}
\maketitle
\begin{abstract}
  \noindent The purpose of \thetitle{} is to establish the feasibility of adapting ships designed for intergalatic travel for interepoch travel.
  This works turns, therefore, on crucial correspondences between the engineering problems presented by changes of spatial location and those presented by changes of temporal location.
\end{abstract}

\kant[1]
\end{document}

标题和摘要的定制格式

如果您还需要自定义章节、节等的格式,那么您应该查看手册并按照其中的说明进行操作。该课程提供了一套广泛的章节样式,以及用于配置较低节段标题的功能。

编辑

为了清楚地说明使用语义标记的优势,假设该文档确实包含了不同作者以不同标题撰写的作品。也许这是摘要的汇编,其中穿插着这些作者从康德那里借来的剽窃段落。

然后,我们可以生成一个布局,其中包含多个出现的内容\maketitle(每个作者/标题一个)以及相应的摘要,以及新页面上作者姓名下的附加段落(来自康德)。使用类提供的页面样式,我们创建一个页眉,左侧是页码,右侧是作者和标题:

许多作者/书名

所以这个标记是尤其对于包含由多位作者或非原始文档作者所撰写的标题/摘要的文档很有用。

\documentclass[a4paper,11pt,openany,leqno,footinclude=true]{memoir}
\usepackage{kantlipsum}
% see chapter 4 of memoir's documentation
\pretitle{\begin{center}\large\scshape}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{%
  \begin{center}
    \large\scshape \lineskip 0.5em%
    \begin{tabular}[t]{c}%
}
\postauthor{%
  \end{tabular}
  \par
  \end{center}%
}
\predate{}
\postdate{}
\renewcommand\maketitlehookb{\centering by\par}
\renewcommand\maketitlehookc{%
  \begin{center}
    Submitted to the Department of Astro-Engineering of the Intergalactic University at Alpha Centauri on May 29, 3014 \textsc{CE} in partial fulfilment of the degree of Doctor of Philosophy
  \end{center}%
}
% ref: chapter 5 of memoir's manual
\renewcommand{\abstractnamefont}{\normalfont\bfseries}
\renewcommand{\absnamepos}{flushleft}
\setlength\absleftindent{0pt}
\setlength\absrightindent{0pt}
\pagestyle{companion}
\makeevenhead{companion}{\thepage}{}{\theauthor: \thetitle}

\title{Transport Architectures for an Evolving Internet}
\author{Keith Winstein}
\date{}

\begin{document}
\maketitle
\begin{abstract}
  \noindent The purpose of \thetitle{} is to establish the feasibility of adapting ships designed for intergalatic travel for interepoch travel.
  This works turns, therefore, on crucial correspondences between the engineering problems presented by changes of spatial location and those presented by changes of temporal location.
\end{abstract}
\newpage
\kant[1]
\clearpage

\title{Transformative Archaeology for a Devolved Intranet}
\author{Weith Kinstein}
\maketitle
\begin{abstract}
  \noindent The purpose of \thetitle{} is to establish the feasibility of retraining archaeologists steeped in centralised concepts so that they can effectively manage discovery-based research focused on intranet devolution.
  This works turns, therefore, on crucial correspondences between the conceptual difficulties encountered by archaeologists working within centralised networks and those encountered by archaeologists working within devolved networks.
\end{abstract}
\newpage
\kant[2]

\title{Transitive Adaptions for a Revolutionary Internet}
\author{Theki Steiwin}
\maketitle
\begin{abstract}
  \noindent The purpose of \thetitle{} is to establish the feasibility of adapting networks designed for establishment usage for use by the Glorious Revolution.
  This works turns, therefore, on crucial correspondences between the problems encountered by pre-revolutionary state actions and those encountered by their post-revolutionary counterparts.
\end{abstract}
\newpage
\kant[3]
\end{document}

相关内容