Skip to content

Text in math mode should use text font #366

@Enivex

Description

@Enivex

I became aware of this while trying to understand #355

If I change the text font to "Comic Neue" (Only to get a distinctly different font)

Hello world, $"Hello world"$, $#text(font: "Comic Neue")[Hello world]$

will render as

image

This is not what I expect. In LaTeX, the input

Hello world, $\text{Hello world}$

will indeed render as

image,

correctly using the text font when displaying text in math mode.


Why is this the correct behavior? Because it is common to write something like

And therefore, if $ f(a) > 0 quad "and" quad f'(a) > 0, $ we have

where the text is part of the, well, text. When this is typeset using the math font it looks very awkward.

image

Obviously this is an extreme example where the text and math fonts are wildly different, but it's still a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requestmathRelated to math category, with its syntax, layout, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions