0

enter image description here

For this expression I have written :

\begin{enumerate}
\item $\langle \varphi _{ij},\rho _{kl} = 0$;
\item  \[
           \langle \varphi _{ij},\rho _{kl} \rangle = 
           \begin{cases}
           \frac{1}{n}& \text{if } i=k,j=l\\
           0              & \text{otherwise}
          \end{cases}
          \]
\end{enumerate}

But it shows (in pdf)...

enter image description here

How I will make it perfect? Thanks!

1 Answers1

2

I'd simply use $ ... $ as for the first item, and a medium-sized fraction from nccmath:

\documentclass{article}

\usepackage{nccmath, makebox}

\begin{document}

\begin{enumerate}
\item $\langle \varphi _{ij},\rho _{kl}\rangle = 0$\,;
\item $ \langle \varphi _{ij},\rho _{kl} \rangle =
           \begin{cases}
           \makebox*{0}{$ \mfrac{1}{n} $}& \text{if } i=k,\:j=l \\[1ex]
           0 & \text{otherwise}
          \end{cases}$
\end{enumerate}

\end{document} 

enter image description here

Bernard
  • 271,350
  • 2
    The vertical (non)alignment of the 1/n and 0 looks ugly, though. In the OP's first image "1/n" is left-aligned with the "0." Personally I would leave it like that - just because you can do fractions in LaTeX math doesn't mean you always should. – alephzero Jan 15 '19 at 16:19
  • @alephzero: You're right. How about the modified version? – Bernard Jan 15 '19 at 16:30