Skip to content

Is there a way to write sqcases syntax. #3710

Answered by edemaine
SPY-LY asked this question in Q&A
Discussion options

You must be logged in to vote

Reading the code for cases, something like this works pretty well:

\def\arraystretch{1.2}
A=\left[\begin{array}{ll}
1 & \text{if } x=y\\
0 & \text{otherwise}
\end{array}\right.

(Maybe you also want a \quad between the columns...)

Assuming sqcases is in a LaTeX package (is it?), it might make sense to add support to KaTeX, and it should be pretty easy by following the linked code for cases.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SPY-LY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants