7

I want to generate the cases in the picture. However, the Symbols T1, T2 on LHS and RHS are different in size.

enter image description here

\documentclass[a4paper, 12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[showframe]{geometry}
\usepackage{mathtools]

\begin{document}

\mbox{}
$$
  (\mathcal{T}_{1},  \mathcal{T}_{2})=
   \begin{cases}
\frac{\left|\mathcal{T}_{1} \cap  \mathcal{T}_{2}\right|}{Min\ 
    {\left|\mathcal{T}_{1}\right|, \left|\mathcal{T}_{2}\right|\} } &  
       negative~test, \\
    -1 & positive~test 
    \end{cases}
$$
\end{document}
10

You can either set the \fraction using \displaystyle (via \dfrac), or use dcases. The latter provides a better solution since it results in better vertical spacing.

enter image description here

\documentclass{article}

\usepackage{mathtools}

\begin{document}

\[
  (\mathcal{T}_1, \mathcal{T}_2) = \begin{dcases}
    \frac{| \mathcal{T}_1 \cap \mathcal{T}_2 |}
      {\min\{| \mathcal{T}_1 |, | \mathcal{T}_2 |\}} &  
      \text{negative test}, \\
    -1 & \text{positive test}
  \end{dcases}
\]

\end{document}
  • In this case dcases* seems appropiate. – Manuel Nov 11 '18 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.