초록과 초록 위와 아래에 선을 중앙에 배치하는 방법

초록과 초록 위와 아래에 선을 중앙에 배치하는 방법

나는 다음을 수행하고 싶습니다 :

  1. 초록 위에 한 줄이 필요하고 초록 아래에 다른 줄이 필요합니다. 줄의 너비는 초록의 너비와 동일해야 합니다. 선은 초록의 너비보다 커서는 안 됩니다.
  2. 출력 PDF 파일에서 초록 섹션의 첫 번째 줄 중앙에 "Abstract"라는 단어가 표시됩니다. " "처럼 시작해야 합니다 Abstract. Each chapter should be preceded by an abstract ........ Abstract와 Abstract의 텍스트는 들여쓰기 없이 Abstract의 동일한 첫 번째 줄에 있습니다.

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}

답변1

다음과 같은 방법으로 환경을 재정의할 수 있습니다 abstract.

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}

관련 정보