MathTeXEngine.jl icon indicating copy to clipboard operation
MathTeXEngine.jl copied to clipboard

Height of exponents doesn't change with () vs. \left( \right)

Open 70Gage70 opened this issue 2 years ago • 1 comments

using CairoMakie

fig = Figure(
    resolution = (1920, 1080), 
    fontsize = 50,
    figure_padding = (50, 50, 50, 50));

ax1 = Axis(fig[1, 1], title = L"(\frac{A^{xy}}{B})^{1/4}")
ax2 = Axis(fig[1, 2], title = L"\left(\frac{A^{xy}}{B}\right)^{1/4}")

save("exponents.png", fig)

exponents

Compare to the same formula in Overleaf:

good

70Gage70 avatar Jul 03 '23 16:07 70Gage70

Hmm I would have to figure what the rule should be to fix that. Currently the baseline of the exponent is at a fixed percentage of the height.

Kolaru avatar Jul 03 '23 22:07 Kolaru