Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scriptstyle font size is too small #3972

Open
amblafont opened this issue Aug 20, 2024 · 1 comment
Open

Scriptstyle font size is too small #3972

amblafont opened this issue Aug 20, 2024 · 1 comment
Labels

Comments

@amblafont
Copy link

The ratio between the normal font size and the scriptstyle font size differs from standard LaTeX

  1. In Latex (the second line is script style)
    image

  2. Same code in KaTeX
    image

@amblafont amblafont added the bug label Aug 20, 2024
@edemaine edemaine changed the title Scriptstyle font size is too big Scriptstyle font size is too small Aug 20, 2024
@edemaine
Copy link
Member

You seem to be right, though the results differ substantially depending on LaTeX's size mode (10pt, 11pt, or 12pt).

Reproduction:

\begin{array}{c}
\displaystyle
abcdefghijklmnopqrstuvwxyz\\
\scriptstyle
abcdefghijklmnopqrstuvwxyz
\end{array}

LaTeX 10pt:

image

LaTeX 11pt:

image

LaTeX 12pt:

image

KaTeX:

image

I'm surprised, because I thought the size constants were taken directly from LaTeX measured at 10pt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants