I am using the following code borrowed from here and modified accordingly to write down the steps of an algorithm:
\documentclass{article}
\usepackage{booktabs}
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
\begin{document}
\begin{table}
\centering
\begin{tabular}{l}
\toprule
\multicolumn{1}{l}{\textbf{Algorithm} }
\
\midrule
\tabitem This is step 1 \
\tabitem This is step 2 \
\tabitem This is step 3 \
\tabitem This is step 4 \
\hline
\end{tabular}
\end{table}
\end{document}
I want to have numbered list instead of bullet points.
How can this be done? I am not able to use the enumerate environment as the code is not compiling.
