# Items in a list on the same line

How to put item b on the same line as a? I tried using the command {tabular} [t] {l l c} but the b ends up disappearing.

• Can you provide some more context to this? Are there more items than just (a) and (b)? Should there be some horizontal alignment between items on different lines (if there are multiple lines to the enumerate)? – Werner Jul 31 '19 at 14:50
• You might want to have a look at the enumitem package and the inline option or alternatively at the tasks package. – leandriis Jul 31 '19 at 14:51
• Welcome to To TeX.SE! Please never add code as image, we simply can not copy and test it on our own computers to find the error. To be able to test your code it should be compilable resulting in your issue (with same error messages you got ...). – Mensch Jul 31 '19 at 14:54
• Related/duplicate How to make horizontal lists? – Alan Munn Jul 31 '19 at 16:43

Here is an example on how to use the inline option of enumerate or the tasks package:

\documentclass{article}
\usepackage[inline]{enumitem}

\begin{document}

\begin{enumerate*}[label=(\alph*)]
\item first item
\item second item
\end{enumerate*}