35
$\begingroup$

How to write beveled fractions like ${}^a/_b$?

In contrast to $\frac{a}{b}$ and $a/b$ (see this question).

$\endgroup$

2 Answers 2

34
$\begingroup$

There is the undocumented option Beveled in the FractionBox

FractionBox[a, b, Beveled -> True] // DisplayForm

enter image description here

$\endgroup$
22
$\begingroup$

One can use Style and FractionBoxOptions to set Beveled:

Plot[Sin[x], {x, -2 Pi, 2 Pi},
  Ticks -> {Pi Range[-2, 2, 1/2], Automatic},
  BaseStyle -> {FractionBoxOptions -> {Beveled -> True}}]

It doesn't look too good here, though:

Mathematica graphics

This looks ok,

Style[3 Pi/2, FractionBoxOptions -> {Beveled -> True}]

Mathematica graphics

but not in the "Label" style,

Style[3 Pi/2, FractionBoxOptions -> {Beveled -> True}, "Label"]

Mathematica graphics

$\endgroup$
2
  • 2
    $\begingroup$ Thanks for the detailed example! Fractions in the "Label" style is looks ok for me (Mathematica 9.0.1, Linux): i.sstatic.net/nnbza.png $\endgroup$
    – ybeltukov
    Commented Oct 8, 2013 at 14:34
  • $\begingroup$ @ybeltukov It seems to be better on Linux than on my Mac. $\endgroup$
    – Michael E2
    Commented Oct 8, 2013 at 14:40

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.