I am experiencing an odd issue with \textit and \emph. I have a list from plaintext and want to format it. Here is a minimum example demonstrating my issue:
\documentclass{article}
\begin{document}
\textit{
(a)
(b)
}
\end{document}
Results in:
Why? What is going on here?

\textitmust not contain an empty line or paragraph break. If you want to format more text, use{\itshape (a) \par (b)}. But LaTeX has better ways to produce lists (enumerate). – moewe Mar 16 '21 at 07:30\itshapedes not wok in mathmode, which would cause him further problems. – Roland Mar 16 '21 at 07:57\textitallows line breaks with commands such as double backslash or\newline. So I think you could do it with\textitas well. – Roland Mar 16 '21 at 08:09\\and\newlineare not the same as an empty line or\par. It is a good rule of thumb that one should not use\\or\newlinein the normal text body of a document: Paragraphs should be ended with an empty line (or\parif that is more convenient or appropriate) and within paragraphs there should be no forced line breaks with\\. (Of course\\has its use inalignor table environments and might be useful occasionally to avoid a bad line break. @Roland) – moewe Mar 16 '21 at 16:47