Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

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

share|improve this question
add comment

2 Answers 2

up vote 22 down vote accepted

There is the undocumented option Beveled in the FractionBox

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

enter image description here

share|improve this answer
add comment

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

share|improve this answer
2  
Thanks for the detailed example! Fractions in the "Label" style is looks ok for me (Mathematica 9.0.1, Linux): i.stack.imgur.com/nnbza.png –  ybeltukov Oct 8 '13 at 14:34
    
@ybeltukov It seems to be better on Linux than on my Mac. –  Michael E2 Oct 8 '13 at 14:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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