Files
KaTeX/test/screenshotter/test.tex
Martin von Gagern 71881e3d36 Make texcmp work again, including KaTeX logo
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.
2015-09-10 16:05:23 +02:00

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}