test.tex 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. \documentclass[10pt]{article}
  2. \usepackage{amsmath,amssymb,textcomp,gensymb}
  3. \usepackage[mathscr]{eucal}
  4. \usepackage{eufrak}
  5. \usepackage[papersize={133pt,100pt},margin=0.5pt]{geometry}
  6. \usepackage{color}
  7. \usepackage{cancel}
  8. \usepackage[normalem]{ulem}
  9. \usepackage{etoolbox}
  10. \setlength{\parindent}{0pt}
  11. \pagestyle{empty}
  12. \newcommand{\blue}[1]{\textcolor{blue}{#1}}
  13. \DeclareRobustCommand{\KaTeX}{\mbox{%
  14. K\kern-.26em%
  15. {\sbox0 T\vbox to\ht0{\kern.05em\hbox%
  16. {\fontsize{.75em}{1em}\selectfont A}%
  17. \vss}}%
  18. \kern-.23em%
  19. \TeX}}
  20. % Thanks to http://tex.stackexchange.com/a/26017/16923
  21. \newtoks\kasizetoks
  22. \def\kasizecollect#1{\afterassignment\kasizeapply\kasizetoks=\bgroup#1$}
  23. \def\kasizeapply{\mbox{\the\kasizetoks$\egroup}}
  24. \def\kasize#1{\csletcs{ka#1}{#1}%
  25. \csdef{#1}{\ifmmode\expandafter\kasizecollect\csname ka#1\endcsname%
  26. \else\csname ka#1\endcsname\fi}}
  27. \kasize{tiny}
  28. \kasize{scriptsize}
  29. \kasize{footnotesize}
  30. \kasize{small}
  31. \kasize{normalsize}
  32. \kasize{large}
  33. \kasize{Large}
  34. \kasize{LARGE}
  35. \kasize{huge}
  36. \kasize{Huge}
  37. \begin{document}
  38. $...$
  39. \end{document}