论文摘要章节的格式

论文摘要章节的格式

我正在尝试格式化我的论文摘要标题,但结果不太吸引人。以下是代码:

\chapter*{\parbox{\linewidth}{\centering A very long thesis title about some very important stuff and a bit longer and a little more longer}}
\addcontentsline{toc}{chapter}{Summary}
\begin{center}
    John Smith

    \large Summary
\end{center}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

我正在使用reportdocumentclass。结果是:

一只忙碌的猫

看起来还不错,但名字和标题之间的间距有点太大。我能以某种方式减少间距吗?仅有的这一章?

或者说,有没有更好的方法来制作总结章节?

答案1

您可以将名称和副标题添加到\chapter*命令中;调整定义中的尺寸,\summary直到您满意为止。

\documentclass{report}
\usepackage{geometry}
\geometry{letterpaper,margin=1in}
\usepackage{newtxtext}

\newcommand{\summary}[2]{%
  \chapter*{%
    \parbox{\textwidth}{%
      \centering
      #1\\[1.5ex]% the title and the separation
      \normalfont\normalsize
      #2\\[2ex]% the author and the separation
      \large Summary
    }%
  }%
  \addcontentsline{toc}{chapter}{Summary}%
}

\begin{document}

\summary{A very long thesis title about some very important stuff
         and a bit longer and a little more longer}
        {John Smith}

Some text follows

\end{document}

在此处输入图片描述

答案2

是的,有更好的方法来包含摘要。您可以使用环境abstract\renewcommand\abstractname

\documentclass[11pt]{article}
\usepackage{lipsum}
\usepackage{newtxtext}
\usepackage[letterpaper,margin=3.1415cm]{geometry}
\usepackage{etoolbox}

\makeatletter
\AtBeginDocument{\preto\@title{\bfseries}}% bold thesis title
\makeatother

\renewcommand{\abstractname}{Summary}

\title{A very long thesis title about some very important stuff and a bit longer and a little more longer}
\author{John Smith}
\date{}

\begin{document}
\maketitle

\addcontentsline{toc}{section}{Summary}
\begin{abstract}
  \lipsum
\end{abstract}
\end{document}

这里的间距应该和您默认寻找的一样。

输出

相关内容