Skip to content

Option to disable automatically interpreting / as a fraction #3203

@franktzheng

Description

@franktzheng

Description

Would it be possible to add an option to control how / is interpreted in a math equation? For instance, it would be nice if something like this could disable automatically interpreting / as a fraction:

#set math.equation(auto-frac: false)

Note that with this setting, you should still be able to typeset fractions using the frac function.

Use Case

There are many cases where it is preferable to display fractions horizontally (i.e., $x / y$) rather than vertically (i.e., $\frac{x}{y}$). In math papers, it is common to typeset inline fractions horizontally, since this keeps the text at a readable size. Moreover, a very important concept in math is that of a quotient, which is almost always denoted as a horizontal fraction rather than a vertical fraction. Here is a 40-page paper in number theory published today where the symbol / appears 202 times, whereas vertical fractions are not used (as far as I know).

While currently it is not difficult to typeset a horizontal fraction by typing \/, I believe it would be greatly preferable in many cases if / defaulted to displaying a horizontal fraction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requestmathRelated to math category, with its syntax, layout, etc.stylingAbout set and show rules or style properties

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions