I want to prevent added new-line after all items in enumerate.
My code:
\documentclass{article}
\usepackage[inline]{enumitem}
\begin{document}
Start an enumeration:
\begin{enumerate*}[label=(\arabic*),itemjoin=\\]
\item[$(i)$] The first item
\item[$(ii)$] Second item
\item[$(iii)$] Third item
\item[$(iv-vi)$] Fourth,fifth, and sixt item.
\end{enumerate*}
\end{document}
generated output, by default all items have new-line at the end:
Start an enumeration: (i) The first item
(ii) Second item
(iii) Third item
(iv-vi) Fourth,fifth, and sixt item.
wanted output (no new line in between items.):
Start an enumeration: (i) The first item (ii) Second item (iii) Third item (iv-vi) Fourth,fifth, and sixt item.

$(iv-vi)$right after your answer into my question, here is it also possible to prevent extra space in between number and the dash? – alper Aug 06 '22 at 09:23\usepackage{enumitem}as well for other items (without new line) , when I try to use both I am having! LaTeX Error: Option clash for package enumitem.error :-( – alper Aug 06 '22 at 09:28\usepackage{enumitem}with\usepackage[inline]{enumitem}solved it – alper Aug 06 '22 at 09:34\quad?\enspacewould be ok? – alper Aug 06 '22 at 11:05itemjoin=\. If it's not enough, you might tryitemjoin=\enspace. – Bernard Aug 06 '22 at 11:31