equations={{2 u,2,1+t,1}=={a c,a b+c,a+b,1},{u,t,0,1}=={c d,c+b d,b+d,1}};

equations was typed to do some Solve

How to get the following TraditionalForm

I typed(I hate typing directly too much) the following equations by hand to show the result expected.

Saving equations to .tex also could get beautiful appearance.

I'd like the equations become beautiful in Mathematica or Tex( Row/Column seems will not preserve the effect after converting to Tex).

So how to convert equations to (1) or (2) both in Notebook and TeXForm?

enter image description here(1)

enter image description here(2)

as @chris mentioned in the comment, this is one good look, so problem is to convert equations to Piecewise in this way.

f[x_] = Piecewise@{{Sin[x], x < 0}, {x, x >= 0 && x < 1}, {x^2, x >= 1}} 


\begin{cases} \sin (x) & x<0 \\ x & x\geq 0\land x<1 \\ x^2 & x\geq 1 \end{cases}

  • $\begingroup$ Do you want spaces between symbols? Is that all, or do you see another problems? $\endgroup$ Commented Jun 1, 2013 at 14:55
  • $\begingroup$ @belisarius spaces are times, want or not both ok. In Mathematica should have spaces for a c means a*c $\endgroup$ Commented Jun 1, 2013 at 15:02
  • $\begingroup$ f[x_] = Piecewise@{{Sin[x], x < 0}, {x, x >= 0 && x < 1}, {x^2, x >= 1}} would take f[x]//TeXForm ? $\endgroup$
    – chris
    Commented Jun 1, 2013 at 19:52
  • $\begingroup$ @chris yes, something like this, but f[x] was not created by Piecewise directly, but from equations $\endgroup$ Commented Jun 23, 2013 at 1:52

1 Answer 1


I think you may be after this good discussion on curly braces.

There is also a Piecewise command, but you seem to be more interested in typesetting.

You can then use the TeXForm command for conversion. Also consider using the Export command if you're comfortable just using an image in your other document.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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