mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user