![如何消除居中元素周围的垂直间距?](https://linux22.com/image/302798/%E5%A6%82%E4%BD%95%E6%B6%88%E9%99%A4%E5%B1%85%E4%B8%AD%E5%85%83%E7%B4%A0%E5%91%A8%E5%9B%B4%E7%9A%84%E5%9E%82%E7%9B%B4%E9%97%B4%E8%B7%9D%EF%BC%9F.png)
我有一篇论文使用了该包mla13
。它的开头是这样的:
\documentclass[12pt,letterpaper]{article}
\usepackage[dvips,xetex]{graphicx}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\usepackage{mla13}
\firstname{Jonathan}
\lastname{Reeve}
\professor{Writing Sample}
\class{Submitted with Graduate Application}
\title{Narrative Chiaroscuro: Light and Dark Imagery in \emph{Bleak House} and \emph{Middlemarch}}
\begin{document}
\makeheader
In an 1873 review in the \emph{Galaxy}, Henry James criticizes George Eliot's \emph{Middlemarch} as he might a painting:
看一下mla13.sty
就会发现,这就是生成页眉和标题的全部过程:
\newcommand*{\makeheader}{\begingroup
\rmfamily
\fontsize{12}{2}
\noindent \@firstname\ \@lastname\\
\@professor\\
\@class\\
\datef\@date
\begin{center}
\@title
\end{center}
\endgroup}
但我得到的是这样的:
标题周围有垂直空间。根据 MLA 规范,标题上方和下方不应有额外空间。如何删除它?
答案1
\begin{center}
逐渐更换{\centering
以\end{center}
减少\par}
垂直间距。
\fontsize{12}{2}
意思是字体尺寸为 12pt,基线为 2pt,您是这个意思吗?