Como centralizar o resumo e as linhas acima e abaixo do resumo

Como centralizar o resumo e as linhas acima e abaixo do resumo

Eu quero fazer o seguinte:

  1. Preciso de uma linha acima do resumo e outra linha abaixo do resumo. A largura das linhas deve ser igual à largura do resumo. As linhas não devem ser maiores que a largura do resumo.
  2. No arquivo pdf de saída, recebo a palavra "Resumo" no centro da primeira linha da seção de resumo. Preciso que comece como " Abstract. Each chapter should be preceded by an abstract .......", cujo Resumo e o texto do resumo estejam na mesma 1ª linha do resumo sem recuo.

MWE:

\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}

Responder1

Você pode redefinir o ambiente abstractdesta forma:

MWE

\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}

informação relacionada