![自定义点枚举](https://linux22.com/image/478914/%E8%87%AA%E5%AE%9A%E4%B9%89%E7%82%B9%E6%9E%9A%E4%B8%BE.png)
答案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}