Skip to content

Fix \KaTeX macro definition in tests#1843

Merged
ylemkimon merged 2 commits intoKaTeX:masterfrom
edemaine:katexmacro
Feb 21, 2019
Merged

Fix \KaTeX macro definition in tests#1843
ylemkimon merged 2 commits intoKaTeX:masterfrom
edemaine:katexmacro

Conversation

@edemaine
Copy link
Member

@edemaine edemaine commented Feb 4, 2019

Update test/screenshotter/test.tex's definition of \KaTeX macro to match the metrics of src/macros.js's definition of \KaTeX, and thereby fix #1703. (Thanks @ylemkimon for spotting this! Sorry for the delay in fixing.)

I just changed the \kern metrics to match the update from #974, and left the font selection code to match LaTeX's definition of \LaTeX.

New texcmp:

image

Here's what it used to look like (from #1703):

image

Update `test/screenshotter/test.tex`'s definition of `\KaTeX` macro to match
the metrics of `src/macros.js`'s definition of `\KaTeX`, and thereby fix KaTeX#1703.
I just changed the `\kern` metrics to match the update from KaTeX#974, and left
the font selection code to match LaTeX's definition of `\LaTeX`.
@codecov-io
Copy link

codecov-io commented Feb 4, 2019

Codecov Report

Merging #1843 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1843   +/-   ##
=======================================
  Coverage   94.74%   94.74%           
=======================================
  Files          79       79           
  Lines        4659     4659           
  Branches      810      810           
=======================================
  Hits         4414     4414           
  Misses        221      221           
  Partials       24       24
Flag Coverage Δ
#screenshotter 88.86% <ø> (ø) ⬆️
#test 86.79% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c2d9d4...e1dfca0. Read the comment docs.

@ylemkimon ylemkimon merged commit 515411d into KaTeX:master Feb 21, 2019
@k4b7
Copy link
Member

k4b7 commented Mar 17, 2019

Looks great!

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.

\KaTeX of KaTeX and test.tex (texcmp) does not match

4 participants