TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to be able to replicate the following image. I am not sure how to force the enumerate to align after $M_2 =$. Could anyone provide an example replicating this?enter image description here

share|improve this question
up vote 7 down vote accepted

One option using enumitem:



$M_2={}$ ``On input string
\settowidth\Separation{$M_2={}$ }
\item First.
\item Third.
\item Second.''


enter image description here

The calculation for the horizontal distance for the labels is made with \labelwidth-\labelsep+\Separation, where \Separation is the width of the string you need as alignment point; $M_2={}$, in this case.

share|improve this answer

This can be done with a tabular:

  $M_{2} ={}$ & ``On input string $w$:
                \item Sweep left to right
                \item If in stage 1, 
                \item If in stage 1, the tape contained more than single 0 and the number of 0s was odd \emph{reject}''

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.