在 Latex 中格式化关键词和摘要

在 Latex 中格式化关键词和摘要

关键词

关键词和摘要没有正确对齐。

我正在使用 Latex 撰写期刊文章。请参阅所附的屏幕截图。我希望​​摘要和关键词具有相同的边距。我该如何调整缩进长度以使其与摘要对齐。谢谢。

\documentclass[letterpaper,11pt]{article}
\usepackage[sumlimits,]{amsmath}

\usepackage[margin=0.8in]{geometry}
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
\usepackage{setspace}
\onehalfspacing


\setlength{\parindent}{0pt}
\setlength{\parskip}{0em}
\usepackage[hidelinks,bookmarks=true]{hyperref}
\usepackage[numbered]{bookmark}
\usepackage{lipsum}

\makeatletter
\newcommand*{\sectionbookmark}[1][]{%
  \bookmark[%
    level=section,%
    dest=\@currentHref,%
    #1%
  ]%
}
\makeatother

\usepackage{abstract}
\setlength{\absleftindent}{0.5in}
\setlength{\absrightindent}{0.5in}

\providecommand{\keywords}[1]
{
  \textbf{\textit{Key words: }} #1
}

\begin{document}
\title{Notes for XYZ Series Analysis}
\author{XXYYZZ}
\date{March 31, 2020}
\maketitle

\begin{abstract}
\noindent
This is a test. That is an abstract.  T This is a test. That is an abstract. 

\end{abstract}

\hspace{0.5in}
\keywords{probability, reliability, Monte Carlo, word.}
\section{Introduction}
This is a test. That is an abstract. This is a test.  
\end{document}

相关内容