I am trying to have three matrices on one line as
i) A=(..), ii) B=(..) and ii) C=(..).
I tried \nopagebreak
, \noindent
just after item. Instead I always get the Roman numeral on one line, a comma on the next line, etc.
Below is my code
\begin{document}
\begin{questions}
Determine which of the following matrices are Hermitian
\begin{enumerate}[i)]
\item \begin{displaymath} \noindent A= \begin{pmatrix*} 2 & 2+3i & 4-5i \\
2-3i & 5 & 6+2i \\
4+5i & 6-2i & -7 \\ \end{pmatrix*}
end{displaymath},
\item \begin{displaymath}B= \left [ \begin{array}{rrr}3 & 2-i & 4+i \\[2ex]
2-i & 6 & i \\ [2ex] 4+i & i & 3 \\
\end{array} \right] \end{displaymath},
\item \begin{displaymath}C= \left [ \begin{array}{rrr}4 & -3 & 5 \\[2ex]
-3 & 2 & 1 \\ [2ex] 5 & 1 & -6 \\
\end{array} \right] \end{displaymath}
\end{enumerate}
\end{questions}
\end{document}
Best Answer
You can use the
enumitem
package that also frees you from manually adding the separators. Note that this package is much more powerful thanparalist
and offers several more bells and whistles.As you see, the separation between the items is set with the
itemjoin
key.I added the version with matrices having the default center alignment, which seems much better (except, perhaps, for the third one).