线条抽象关键词

线条抽象关键词

我对 Latex 非常陌生。我只读了一些基本的东西。我有这个:

\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc}
\pagestyle{empty}

\begin{document}
\title{Hunky panpsychism}
\author{}
\date{\today}
\maketitle
\thispagestyle{empty}
\renewenvironment{abstract}{%
\noindent\bfseries\abstractname:\normalfont}{}
\begin{abstract}
hgfhfhgfhfhgf gfghfhfh hhgfhgfhgfh.\\
{\bf Keywords:} Panpsychism, Micropsychism, Cosmopsychism, Gunky worlds, Junky worlds, Hunky worlds, Metaphysical infinitism, Metaphysical foundationalism Non-well-founded.
\end{abstract}
\section{Introduction}
Now that we have written our abstract, we can begin writing our first paragraph.\footnote{STRAWSON}
\end{document}

我需要在摘要上方写一行,在摘要和关键字下方写另一行。行宽应等于摘要的宽度。行宽不应大于摘要和关键字的宽度。

答案1

根据我对您帖子的理解,您需要在头部上方添加线条AbstractKeywords并且线条不应超过两个头部,如果我的理解正确,那么以下标签可能会对您有所帮助:

\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc}
\pagestyle{empty}

\begin{document}
\newbox\absbox
\setbox\absbox=\hbox{\bfseries\abstractname:}%

\renewcommand\abstractname{\noindent\rule{\wd\absbox}{0.25pt}\\Abstract}

\newbox\keywbox
\setbox\keywbox=\hbox{\bfseries Keywords:}%

\newcommand\keywords{%
\noindent\rule{\wd\keywbox}{0.25pt}\\\textbf{Keywords:}\ }

\title{Hunky panpsychism}
\author{}
\date{\today}
\maketitle
\thispagestyle{empty}
\renewenvironment{abstract}{%
\noindent\bfseries\abstractname:\normalfont}{}
\begin{abstract}
hgfhfhgfhfhgf gfghfhfh hhgfhgfhgfh.\\
\keywords Panpsychism, Micropsychism, Cosmopsychism, Gunky worlds, Junky worlds, Hunky worlds, Metaphysical infinitism, Metaphysical foundationalism Non-well-founded.
\end{abstract}
\section{Introduction}
Now that we have written our abstract, we can begin writing our first paragraph.\footnote{STRAWSON}
\end{document}

输出:

在此处输入图片描述

相关内容