Skip to content

Fix #711 issue with multiple superscripts.#718

Merged
k4b7 merged 1 commit intoKaTeX:masterfrom
kohler:fix-711
Jun 7, 2017
Merged

Fix #711 issue with multiple superscripts.#718
k4b7 merged 1 commit intoKaTeX:masterfrom
kohler:fix-711

Conversation

@kohler
Copy link
Copy Markdown
Collaborator

@kohler kohler commented Jun 6, 2017

The previous code incorrectly implemented TeXbook rules. First off,
the font metrics at issue should be those for the superscript/
subscript style, not the main style. Secondly, the metrics should be
scaled by the font size.

This changes some screenshotter tests (and they look more like TeX
now).

The previous code incorrectly implemented TeXbook rules. First off,
the font metrics at issue should be those for the superscript/
subscript style, not the main style. Secondly, the metrics should be
scaled by the font size.

This changes some screenshotter tests (and they look more like TeX
now).
@k4b7 k4b7 self-assigned this Jun 7, 2017
@k4b7
Copy link
Copy Markdown
Member

k4b7 commented Jun 7, 2017

Thanks for the PR. Big improvement in the vertical position of subscripts.

Before:
accents

After:
accents

Before:
binomtest

After:
binomtest

Before:
limitcontrols

After:
limitcontrols

Before:
oplimits

After:
oplimits

Before:
sqrt

After:
sqrt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants