答案1
xparse
我可以在和的帮助下提出这个建议enumitem
:
\documentclass{article}
\usepackage{fourier}
\usepackage[svgnames]{xcolor}
\usepackage{enumitem}
\usepackage{xparse}
\newcounter{descriptcount}
\NewDocumentEnvironment{enumdescript}{O{}}{\setcounter{descriptcount}{0}\renewcommand*\descriptionlabel[1]{\stepcounter{descriptcount}%
\normalfont\colorbox{LimeGreen}{\makebox[4em]{##1\ points}}\quad \alph{descriptcount})}\description[leftmargin =7.15em]}{\enddescription}
\begin{document}
\begin{enumdescript}
\item[5] Some hard questions. Some hard questions. Some hard questions. Some hard questions. Some hard questions. Some hard questions. Some hard questions. Some hard questions.
\item[10] item two
\end{enumdescript}
\end{document}