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$ Commented Oct 8, 2013 at 14:34
  • $\begingroup$ @ybeltukov It seems to be better on Linux than on my Mac. $\endgroup$ Commented Oct 8, 2013 at 14:40

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.