The following code gives me an error:
\documentclass[12pt]{article}
\usepackage[margin=2cm]{geometry}
\usepackage [english]{babel}
\usepackage{amsmath, amssymb}
\usepackage{enumitem, array}
\begin{document}
{\begin{minipage}[t]{\textwidth}
\begin{enumerate}[label=(\roman*)]
{\setlength\itemindent{10pt}\item
\begin{equation*}
\begin{array}{>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}}
\hline
x & l_{[x]} & d_{[x]} & l_{x+1} & \mathring{e}_{[x]} \\
\hline
\end{array}
\end{equation*}}
\end{enumerate}
\end{minipage}}
\end{document}
Note: for various reasons, I have to keep minipage
there. For some reason, this code gives me an error when it compiles. It gives the following output:
The errors either say there is a }
missing or a $
missing. My eyes don't see such a thing!
>{\centering\arraybackslash$}m{1.5cm}<{$}
is the correct input. However,\arraybackslash
is really needed only in the last column. Why do you have braces around the minipage and also around the item? Of course the table will always start lower than the item, probably you already know it.\item
is to indent the entireenumerate
environment. As for why theminipage
is in braces, there is a\hspace
that I've used that moves the entire minipage.