如何标记枚举列表?

如何标记枚举列表?

我想将问题的标记值直接标记出来,如下所示

在此处输入图片描述 这是我的 MWE

\documentclass{article} 
\usepackage{amsthm,multicol,enumerate}

\begin{document} 
\begin{enumerate}
  \item \parbox{350pt}{A palindrome is a string whose reversal is identical to the string. How many bit strings of length $n$ are palindromes?}[1 pt]
  \item \parbox{350pt}{How many elements are in $A_1\cup A_2$ if there are $12$ elements in $A_1$, $18$ elements in $A_2$, and}[1pt each]
  \begin{multicols}{2}
  \begin{enumerate}
    \item $A_1\cap A_2=\emptyset$
    \item $|A_1\cap A_2|=2$
    \item $|A_1\cap A_2|=7$
    \item $A_1\subseteq A_2$
  \end{enumerate}
  \end{multicols}
  \item \parbox{300pt}{Find the value of $r$ if $\displaystyle \frac{P(10,r-1)}{P(11,r-2)}=\frac{30}{11}$.}[2 pts]
  \item \parbox{350pt}{Prove that the number of bit strings of length $n$ is the same as the number of subsets of the set of integers $\{1,2,\ldots n\}$.}[3 pts]
\end{enumerate} 
\end{document}

答案1

有专门的课程和课程包来设计问题表和考试(参见https://ctan.org/topic/exam),但作为一种快速破解方法,您可以将点放入边缘:

\documentclass{article} 
\usepackage{amsthm,multicol,enumerate,marginnote}

\begin{document} 
\begin{enumerate}
  \item A palindrome is a string whose reversal is identical to the string. How many bit strings of length $n$ are palindromes?\marginnote{[1 pt]}
  \item How many elements are in $A_1\cup A_2$ if there are $12$ elements in $A_1$, $18$ elements in $A_2$, and\marginnote{[1pt each]}[2.7\baselineskip]%
  \begin{multicols}{2}
  \begin{enumerate}
    \item $A_1\cap A_2=\emptyset$
    \item $|A_1\cap A_2|=2$
    \item $|A_1\cap A_2|=7$
    \item $A_1\subseteq A_2$
  \end{enumerate}    
  \end{multicols}
  \item Find the value of $r$ if $\displaystyle \frac{P(10,r-1)}{P(11,r-2)}=\frac{30}{11}$.\marginnote{[2 pts]}
  \item Prove that the number of bit strings of length $n$ is the same as the number of subsets of the set of integers $\{1,2,\ldots n\}$.\marginnote{[3 pts]}
\end{enumerate} 
\end{document}

在此处输入图片描述

相关内容