So zentrieren Sie eine Zusammenfassung und die Linien über und unter der Zusammenfassung

So zentrieren Sie eine Zusammenfassung und die Linien über und unter der Zusammenfassung

Ich möchte Folgendes tun:

  1. Ich brauche eine Zeile über der Zusammenfassung und eine andere Zeile unter der Zusammenfassung. Die Breite der Zeilen sollte der Breite der Zusammenfassung entsprechen. Die Zeilen sollten nicht breiter als die Breite der Zusammenfassung sein.
  2. In der PDF-Ausgabedatei erhalte ich das Wort „Abstract“ in der Mitte der ersten Zeile des Abstract-Abschnitts. Es muss wie „ Abstract. Each chapter should be preceded by an abstract .......“ beginnen, sodass Abstract und der Text des Abstracts in derselben ersten Zeile des Abstracts ohne Einzug stehen.

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}

Antwort1

Sie können die Umgebung abstractfolgendermaßen neu definieren:

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}

verwandte Informationen