I have a collection of multiple choice questions that use the enumerate environment. In some cases, I'd like the align the answers (items) in specific ways. For example, I might want to align numbers at their decimal points like this:

enter image description here enter image description here

I aligned the decimal points in this example using phantoms and llaps, but I'm curious if there's a better/slicker way that doesn't require as much manual tweaking -- something analogous to an align* environment that I could wrap around the enumerate items and just stick ampersands where needed?

Since I have a lot of multiple choice questions I'd like to change, I'm hoping to make this as easy as possible, and it would be great if it didn't break my enumerate environments.




    \item What is the meaning of life?
      \item $1.618$    
      \item $2.71828$
      \item $3.14159$
      \item $42.00$
      \item $1000.00$

    \item What is the meaning of life?
      \item $\phantom{1000.000}\llap{1.618}$
      \item $\phantom{1000.00000}\llap{2.71828}$
      \item $\phantom{1000.00000}\llap{3.14159}$
      \item $\phantom{1000.00}\llap{42.00}$
      \item $\phantom{1000.00}\llap{1000.00}$


1 Answer 1


You can emulate the labels of an enumerate environment in the first column of a table, with package listliketab and use siunitxto align the numbers in the second column on the decimal dots, with the S column type. You even can cross-reference the items:

\usepackage{siunitx, listliketab}


\begin{tabular}{@{}L S[table-format=4.5, table-number-alignment=center]@{}}
  \tabitem & 1.618 \\
   \tabitem\label{row-2} & 2.71828 \\
   \tabitem & 3.14159 \\
   \tabitem & 42.00 \\
   \tabitem & 1000.00

We read in row \ref{row-2} an approximate value of Euler’s number $e$. 


enter image description here

  • thanks! that's helpful and formats this case how i want. i'm ideally hoping to change my existing database less drastically though. and also, there are a lot of other cases when i want to align differently. e.g. i have answers with equations and pos/neg integers that i'd like to align at the first digit. would be great if there's a general way of doing it.
    – lwad
    Oct 21, 2018 at 15:54
  • Solutions might be very specific, depending on the case at hand. I suggest you edit your question with samples of the cases you meet in practice.
    – Bernard
    Oct 21, 2018 at 16:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .