# How to write conditional equations with one-sided curly bracket in TeXmacs [closed]

Here is the photo. How to write conditional equations with one-sided curly bracket in TeXmacs?

I tried inserting Equation and Equations. I didn't manage to insert the curly bracket.
In LaTeX, it's like:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
$f(x)= \begin{cases} \frac{x^2-x}{x},& \text{if } x\geq 1\\ 0, & \text{otherwise} \end{cases}$
\end{document}


## closed as off-topic by egreg, user31729, Andrew Swann, Jesse, Claudio FiandrinoMay 20 '14 at 12:25

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• What is the question? Your code produces exactly what you have in picture. What else is needed? – user11232 May 20 '14 at 3:28
• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – user11232 May 20 '14 at 3:29
• The code is for LaTeX, I would like to implement it in TeXmacs. – Dustland May 20 '14 at 3:30
• – cmhughes May 20 '14 at 3:35
• This question appears to be off-topic because it is about TeXmacs which is a different program not connected to TeX and friends, although it shares some parts of the syntax. – egreg May 20 '14 at 10:51

In equation mode you can click on Insert a table in the tool bar, then choose Choice, grid with with one-sided curly bracket will be automatically generated.