# How to display fractional expression like this?

For example:

The default output is

I want to the output display like

I noticed that FractionBoxOptions, but couldn't find a appropriate options.

• The box language can be applied, but it is rather heavy and requires an additional programming. You need to have good reasons to refuse form the usual way in favor for the box language. It is not quite clear: where do you want to display the result in this form? And what for? I guess you are quite familiar with the typesetting using palettes, are you? Do you need that the output is in this form right after the evaluation? What for? – Alexei Boulbitch Sep 21 '17 at 7:52

MakeBoxes[Times[Rational[n_, d_], expr__], StandardForm] :=

Solve[x^2 - 3 x + 1 == 0]