这是代码:
\documentclass[final,3p,times]{elsarticle}
\usepackage{enumitem}
\newenvironment{nmlist}[1]{% list with title
\paragraph{#1}
\begin{enumerate}[align=parleft,itemsep=-4pt,labelwidth=20mm,leftmargin=22mm]}
{\end{enumerate}}
\newenvironment{nmlistf}{% list without title
\begin{enumerate}[align=parleft,itemsep=-4pt,labelwidth=20mm,leftmargin=22mm]}
{\end{enumerate}}
\begin{document}
% With a title at the first line and with a list starting at the second line
\begin{nmlist}{Others}
\item[{$a$}]{distances to x-axis}%
\item[{$b$}]{distances to y-axis}%
\end{nmlist}
% Without a title and with a list starting at the first line
\begin{nmlistf}
\item[{$a$}]{distances to x-axis}%
\item[{$b$}]{distances to y-axis}%
\end{nmlistf}
\end{document}
\documentclass[final,3p,times]{elsarticle}
\usepackage{enumitem}
\newenvironment{nmlist}[1][]{% list with title
\ifstrempty{#1}{}{\paragraph{#1}}%
\begin{enumerate}[align=parleft,itemsep=-4pt,labelwidth=20mm,leftmargin=22mm]}
{\end{enumerate}}
\begin{document}
% With a title at the first line and with a list starting at the second line
\begin{nmlist}[Others]
\item[{$a$}] distances to x-axis
\item[{$b$}] distances to y-axis
\end{nmlist}
% Without a title and with a list starting at the first line
\begin{nmlist}
\item[{$a$}] distances to x-axis
\item[{$b$}] distances to y-axis
\end{nmlist}
\end{document}