摘要內逐項列表的邊距

摘要內逐項列表的邊距

我正在使用Interact泰勒和弗朗西斯期刊的乳膠風格模板 -可以在這裡找到。我正在準備文件的期刊有一個由兩部分組成的摘要,其中第二部分可以是項目符號清單。

\itemize但是當我嘗試在環境內部使用時abstract,清單的右邊距與摘要的其餘部分不一致。我怎樣才能解決這個問題?

這是一個最小的例子:

\documentclass[british]{interact}
\usepackage{lipsum}

\begin{document}
\articletype{RESEARCH ARTICLE}
\title{Article with bullet list inside abstract}
\author{\name{A.N. Other\textsuperscript{a}\thanks{Contact: A.N. Other. Email: [email protected]}} 
\affil{\textsuperscript{a} Some University, Somewhere, XX 12345, USA}}
\maketitle 

\begin{abstract}
\lipsum[1].\\ 
\noindent\textbf{Policy Insights}
\begin{itemize}
   \item This line is way too long. It should align with the rest of the abstract. But it goes much too far too the right.
   \item It would be nice too if the bullets were left-aligned with the abstract. 
\end{itemize}
\end{abstract}

\begin{keywords}
Keywords: Latex; Itemize; Lipsum
\end{keywords}
\section{Introduction}
\end{document}

在此輸入影像描述

答案1

您可以使用enumitem、 設定leftmargin和分別rightmargin將清單設為1pc5pc,如 .cls 檔案代碼的 l.36 所示:

\documentclass[british]{interact}
\usepackage{lipsum}
\usepackage{enumitem}
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.3pt}
\begin{document}
\articletype{RESEARCH ARTICLE}
\title{Article with bullet list inside abstract}
\author{\name{A.N. Other\textsuperscript{a}\thanks{Contact: A.N. Other. Email: [email protected]}}
\affil{\textsuperscript{a} Some University, Somewhere, XX 12345, USA}}

\maketitle

\begin{abstract}
\lipsum[1].\\

\noindent\textbf{Policy Insights}
\begin{itemize}[wide, leftmargin = 1pc, rightmargin = 5pc]
  \item \lipsum[1].
  \item \lipsum[1].
\end{itemize}
 \lipsum[2-10]
\end{abstract}

\end {document} 

在此輸入影像描述

相關內容