1

How could I use cases with [] (both sides) instead of curly bracket as the attached picture shows?

Thank you.

enter image description here

2
  • Please provide a bit more context, e.g. a minimal working example. Without anything, I can only guess that Bmatrix could help. cases is intentionally one-sided.
    – Chris
    Oct 7 '15 at 15:15
  • @Chris Sorry for the lack of context. I wrote "cases" because I know it's one-sided. Thanks anyway. Oct 7 '15 at 21:48
3

May be like this.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
  \[
  a=
  \left[\begin{aligned}
    &2 \rightarrow \text{John}\\
    &5 \rightarrow \text{Mary}\\
    &7 \rightarrow \text{Ann}
  \end{aligned}\right]\]
  \[
  a=
  \begin{bmatrix}
    2 &\rightarrow &\text{John}\\
    5 &\rightarrow &\text{Mary}\\
    7 &\rightarrow &\text{Ann}
  \end{bmatrix}\]
  \[
  a=
  \left[\begin{array}{@{}l@{\,}l@{\,}c@{}}
    2 &\rightarrow &\text{John}\\
    5 &\rightarrow &\text{Mary}\\
    7 &\rightarrow &\text{Ann}
  \end{array}\right]
  \]
\end{document}

enter image description here

0

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.