3

Background

Looking to create vulgar fractions in the current font such those in Unicode. LaTeX has the nicefrac package that provides, as the name implies, fractions where the dividing line is a "nice looking" slash, rather than a horizontal line.

Question

How do you produce a vulgar fraction in ConTeXt?

  • Why not just type the unicode character (or use \char syntax)? – Aditya Sep 24 '13 at 5:27
  • Unicode does not encode all possible vulgar fractions. – Dave Jarvis Sep 24 '13 at 5:32
  • @DaveJarvis Arbitrary vulgar fractions can be encoded using FRACTION SLASH (U+2044). For example: 217⁄712. Software that deals with text can choose to treat/render such text appropriately, but this might not be widely supported. – Guildenstern Aug 5 '16 at 10:18
5

Use \vfrac, simple as that.

\starttext
test \vfrac{1}{2} test \vfrac{123}{456} test
\stoptext

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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