mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +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}}
|
\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{%
|
\DeclareRobustCommand{\KaTeX}{\mbox{%
|
||||||
K\kern-.26em%
|
K\kern-.17em%
|
||||||
{\sbox0 T\vbox to\ht0{\kern.05em\hbox%
|
{\sbox0 T\vbox to\ht0{\hbox%
|
||||||
{\fontsize{.75em}{1em}\selectfont A}%
|
{\fontsize{.75em}{1em}\selectfont A}%
|
||||||
\vss}}%
|
\vss}}%
|
||||||
\kern-.23em%
|
\kern-.15em%
|
||||||
\TeX}}
|
\TeX}}
|
||||||
|
|
||||||
% Thanks to http://tex.stackexchange.com/a/26017/16923
|
% Thanks to http://tex.stackexchange.com/a/26017/16923
|
||||||
|
Reference in New Issue
Block a user