mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Since all the math font test cases use the KaTeX logo, we need that. I started with the definition of the logo from katex.less, but tweaked that until it gave a good visual match, in particular a very similar logo width, no matter the actual numbers. With that logo, most tests can be compiled again, with the exception of the one containing illegal functions to test visual error reporting. That one needs to be explicitely disabled.
43 lines
997 B
TeX
43 lines
997 B
TeX
\documentclass[10pt]{article}
|
|
|
|
\usepackage{amsmath,amssymb}
|
|
\usepackage[mathscr]{eucal}
|
|
\usepackage{eufrak}
|
|
\usepackage[papersize={133pt,100pt},margin=0.5pt]{geometry}
|
|
\usepackage{color}
|
|
\usepackage{etoolbox}
|
|
\setlength{\parindent}{0pt}
|
|
\pagestyle{empty}
|
|
|
|
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
|
|
|
|
\DeclareRobustCommand{\KaTeX}{\mbox{%
|
|
K\kern-.26em%
|
|
{\sbox0 T\vbox to\ht0{\kern.05em\hbox%
|
|
{\fontsize{.75em}{1em}\selectfont A}%
|
|
\vss}}%
|
|
\kern-.23em%
|
|
\TeX}}
|
|
|
|
% Thanks to http://tex.stackexchange.com/a/26017/16923
|
|
\newtoks\kasizetoks
|
|
\def\kasizecollect#1{\afterassignment\kasizeapply\kasizetoks=\bgroup#1$}
|
|
\def\kasizeapply{\mbox{\the\kasizetoks$\egroup}}
|
|
\def\kasize#1{\csletcs{ka#1}{#1}%
|
|
\csdef{#1}{\ifmmode\expandafter\kasizecollect\csname ka#1\endcsname%
|
|
\else\csname ka#1\endcsname\fi}}
|
|
\kasize{tiny}
|
|
\kasize{scriptsize}
|
|
\kasize{footnotesize}
|
|
\kasize{small}
|
|
\kasize{normalsize}
|
|
\kasize{large}
|
|
\kasize{Large}
|
|
\kasize{LARGE}
|
|
\kasize{huge}
|
|
\kasize{Huge}
|
|
|
|
\begin{document}
|
|
$...$
|
|
\end{document}
|