secuencia de control indefinida usando enumerar

secuencia de control indefinida usando enumerar
 \begin{enumerate}
     \item[1.] Choose $N\sim \text{Poisson}(\xi)$.

 \item[2.] Choose $\theta \sim \text{Dir}(\alpha)$.
 \item[3.] For each of the $N$ words $w_n$:
   \begin{enumerate}
   \item[(a)] Choose a topic $z_n \sim \text{Multinomial}(\theta)$.
   \item[(b)] Choose a word $w_n$ from $p(w_n | z_n, \beta)$, a multinomial probability conditioned on the topic $z_n$. 
   \end{enumerate}
 \end{enumerate}

Cuando uso el código anterior para generar algunas ecuaciones, me da los siguientes errores:

Undefined control sequence. \item[1.] Choose $N\sim \text
Undefined control sequence. \item[2.] Choose $\theta \sim \text
Undefined control sequence. \item[(a)] Choose a topic $z_n \sim \text

No entiendo qué está causando estos errores. ¿Alguien puede ayudar? gracias.

Respuesta1

Simplemente agregaría una forma más sencilla de usar enumerate, con enumitem, que usa lo que escribes manualmente de forma predeterminada:

\documentclass{article}
\usepackage{showframe}
\renewcommand{\ShowFrameLinethickness}{0.3pt}
\usepackage{enumitem}
\usepackage{amsmath}

\begin{document}

\begin{enumerate}[ wide = 0pt, leftmargin = *]
     \item Choose $N\sim \text{Poisson}(\xi)$.

 \item Choose $\theta \sim \mathrm{Dir}(\alpha)$.
 \item For each of the $N$ words $w_n$:
   \begin{enumerate}[wide = 0pt]
   \item Choose a topic $z_n \sim \mathrm{Multinomial}(\theta)$.
   \item Choose a word $w_n$ from $p(w_n \,|\, z_n, \beta)$, a multinomial probability conditioned on the topic $z_n$.
   \end{enumerate}
 \end{enumerate}

\end{document} 

ingrese la descripción de la imagen aquí

información relacionada