Skip to content

LaTeX exponent position #402

@gustaphe

Description

@gustaphe

When rendering LaTeX strings, the position of an exponent changes a lot if the symbol before it is encased in gull wings or not:

plot(rand(5); xguide=raw"$x^2 {x}^2 \mathrm{x}^2 \mathrm{x^2} \mathbf{x}^2 \mathbf{x^2}$")

grissues

the first, fourth and sixth are correct. The fourth demonstrates a workaround for the case of \mathrm (when the exponent is a number), but the sixth demonstrates why this isn't always an option.

In LaTeX, these exponents would all be the same height.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions