Search code examples
mathlatexfractions

Latex: right square bracket


I have one strange trouble with latex. Needed square bracket only from right and for net example it working:

$\left[ 
  \begin{gathered} 
    \left\{ 
      \begin{gathered} 
        x^2 - 6 \geqslant x, \hfill 
        \\ 
        5x < 1 \hfill 
        \\ 
      \end{gathered} 
    \right. \hfill 
    \\ 
    \left\{ 
      \begin{gathered} 
        x^3 - 8 < 0, \hfill 
        \\ 
        x^2 - 7x < 0. \hfill 
        \\ 
      \end{gathered} 
    \right. \hfill 
    \\ 
  \end{gathered} 
\right.$

Result

But for example with \frac{x}{a} not worked!

$\left[ 
  \begin{gathered} 
    \frac{2}{3} > 1;
  \\ 
    \frac{2}{3} > 1;
  \end{gathered} 
\right.$

How get the square bracket for expression with fractions?


Solution

  • That both works for me. Maybe you forgot to \usepackage{amsmath}?