如何使以下模板中的“关键词”一词非斜体?
\documentclass[preprint,12pt]{elsarticle}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{lineno}
\usepackage[colorlinks=true]{hyperref}
\usepackage{natbib}
\usepackage{footnotebackref}
\usepackage{changepage}
\frenchspacing
\makeatletter % <-Added code from here
\def\ps@pprintTitle{%
\let\@oddhead\@empty
\let\@evenhead\@empty
\def\@oddfoot{}%
\let\@evenfoot\@oddfoot}
\makeatother
\usepackage{csquotes}
\MakeOuterQuote{"}
\begin{document}
\begin{frontmatter}
\title{\textbf{Title of the Article?}}
\begin{abstract}
this is the abstract
\end{abstract}
\begin{keyword}
\hspace{-0.2cm} life, book, social knowledge
\end{keyword}
\end{frontmatter}
\end{document}
答案1
斜体格式在elsarticle
文档类,因此为了删除它,您必须通过在和keyword
之间插入以下代码来修补环境:\documentclass{elsarticle}
\begin{document}
\usepackage{etoolbox}
\patchcmd{\keyword}{\textit}{}{}{}