Fix \KaTeX macro definition in tests (#1843)

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.
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`.
This commit is contained in:
Erik Demaine
2019-02-21 02:10:46 -05:00
committed by ylemkimon
parent 1c2d9d4a48
commit 515411d34f

View File

@@ -13,12 +13,14 @@
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
% Based on LaTeX's definition of \LaTeX, with L changed to K and kerns
% changed as in src/macros.js
\DeclareRobustCommand{\KaTeX}{\mbox{%
K\kern-.26em%
{\sbox0 T\vbox to\ht0{\kern.05em\hbox%
K\kern-.17em%
{\sbox0 T\vbox to\ht0{\hbox%
{\fontsize{.75em}{1em}\selectfont A}%
\vss}}%
\kern-.23em%
\kern-.15em%
\TeX}}
% Thanks to http://tex.stackexchange.com/a/26017/16923