我想要执行以下操作:
- 我需要在摘要上方加一行,在摘要下方加一行。行宽应等于摘要宽度。行宽不应大于摘要宽度。
- 在输出的 pdf 文件中,我在摘要部分的第一行中间看到了“摘要”一词。我需要它以“
Abstract. Each chapter should be preceded by an abstract .......
”开头,摘要和摘要文本位于摘要的同一第一行,没有缩进。
梅威瑟:
\documentclass{article}
\usepackage{abstract,lipsum}
\usepackage[paperwidth=7.25in, paperheight=9.5in,bindingoffset=.75in]{geometry}
\begin{document}
\title{Contribution Title}
\author{Name of First Author and Name of Second Author}
\maketitle
\begin{abstract}
\rule{\textwidth}{.5pt}
Each chapter should be preceded by an abstract (10--15 lines long) that summarizes the content. The abstract will appear and be available with unrestricted access. This allows unregistered users to read the abstract as a teaser for the complete chapter. As a general rule the abstracts will not appear in the printed version of your book unless it is the style of your particular book or that of the series to which your book belongs.
\rule{\textwidth}{.5pt}
\end{abstract}
\section{introduction}
\lipsum*[2]
\end{document}
答案1
abstract
您可以通过这种方式重新定义环境 :
\documentclass{article}
\usepackage{abstract,lipsum}
\usepackage[paperwidth=7.25in, paperheight=9.5in,bindingoffset=.75in]{geometry}
\begin{document}
\title{Contribution Title}
\author{Name of First Author and Name of Second Author}
\maketitle
\renewenvironment{abstract}
{\begin{quote}
\noindent \rule{\linewidth}{.5pt}\par{\bfseries \abstractname.}}
{\medskip\noindent \rule{\linewidth}{.5pt}
\end{quote}
}
\begin{abstract}
Each chapter should be preceded by an abstract (10--15 lines long) that summarizes the content. The abstract will appear and be available with unrestricted access. This allows unregistered users to read the abstract as a teaser for the complete chapter. As a general rule the abstracts will not appear in the printed version of your book unless it is the style of your particular book or that of the series to which your book belongs.
\end{abstract}
\section{introduction}
\lipsum*[2]
\end{document}