ss_data.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. # List of test cases for which we create screenshots and other documents.
  2. # Each value in the top level dictionary is either a string or a dict
  3. # which may contain the following keys:
  4. # - tex: the KaTeX input string
  5. # - pre: some HTML to insert before the KaTeX content
  6. # - post: some HTML to insert after the KaTeX content
  7. # - display: set this to 1 in order to use display style
  8. # - styles: an optional value for the HTML style="" attribute
  9. # of the <span> element that contains the KaTeX output
  10. #
  11. # Note that YAML will treat a value starting in { as a flow mapping.
  12. # To avoid that, either enclose the value in '…' or use a block scalar style,
  13. # writing | (or >) as the first symbol of the value and then continuing
  14. # on the next line. See http://www.yaml.org/ for syntax details.
  15. Accents: \vec{A}\vec{x}\vec x^2\vec{x}_2^2\vec{A}^2\vec{xA}^2
  16. AccentsText: |
  17. \begin{array}{l}
  18. \text{\'\i} & \text{\.\i} & \text{\`\i} & \text{\"\i} & \text{\H\i} & \text{\r\i} \\
  19. \text{\'\j} & \text{\.\j} & \text{\`\j} & \text{\"\j} & \text{\H\j} & \text{\r\j} \\
  20. \text{\'a} & \text{\.a} & \text{\`a} & \text{\"a} & \text{\H{a}} & \text{\r{a}} \\
  21. \text{\'A} & \text{\.A} & \text{\`A} & \text{\"A} & \text{\H{A}} & \text{\r{A}} \\
  22. \text{\.I İ} & \text{\H e e̋} & \text{\i ı}
  23. \end{array}
  24. Aligned: |
  25. \begin{aligned}
  26. a &= 1 & b &= 2 \\
  27. 3a &= 3 & 17b &= 34
  28. \end{aligned}
  29. Alignedat: |
  30. \begin{alignedat}{3}
  31. a &= 1 & b &= 2 &\quad c &= 3\\
  32. 3a &= 3 & 17b &= 34 &\quad 400c &= 1200
  33. \end{alignedat}
  34. Arrays: |
  35. \left(\begin{array}{|rl:c||}
  36. 1&2&3\\ \hline
  37. 1+1&2+1&3+1\cr1\over2&\scriptstyle 1/2&\frac12\\[1ex] \hline \hdashline
  38. \begin{pmatrix}x\\y\end{pmatrix}&0&\begin{vmatrix}a&b\\c&d\end{vmatrix}
  39. \end{array}\right]
  40. ArrayMode:
  41. tex: |
  42. \begin{matrix}
  43. \frac{\partial^2 f}{\partial x_1^2} & \frac{\partial^2 f}{\partial x_1\,\partial x_2} & \cdots & \frac{\partial^2 f}{\partial x_1\,\partial x_n} \\
  44. \frac{\partial^2 f}{\partial x_2\,\partial x_1} & \frac{\partial^2 f}{\partial x_2^2} & \cdots & \frac{\partial^2 f}{\partial x_2\,\partial x_n} \\
  45. \vdots & \vdots & \ddots & \vdots \\
  46. \frac{\partial^2 f}{\partial x_n\,\partial x_1} & \frac{\partial^2 f}{\partial x_n\,\partial x_2} & \cdots & \frac{\partial^2 f}{\partial x_n^2}
  47. \end{matrix}
  48. display: 1
  49. ArrayType: 1\begin{array}{c}2\\3\end{array}4
  50. ArrayRemoveEmptyLine: |
  51. \begin{pmatrix}
  52. 1 \\
  53. 2 \\
  54. \end{pmatrix}
  55. Baseline: a+b-c\cdot d/e
  56. BasicTest: a
  57. BinCancellation: |
  58. \begin{array}{cccc}
  59. +1 & 1+ & 1+1 & (,) \\
  60. 1++1 & 3\times) & 1+, & \left(,\right)
  61. \end{array}
  62. BinomTest: \dbinom{a}{b}\tbinom{a}{b}^{\binom{a}{b}+17}
  63. BoldSpacing: \mathbf{A}^2+\mathbf{B}_3*\mathscr{C}'
  64. BoldSymbol: |
  65. \sum_{\boldsymbol{\alpha}}^{\boldsymbol{\beta}} \boldsymbol{\omega}+ \int_{\boldsymbol{\alpha}}^{\boldsymbol{\beta}} \boldsymbol{\Omega}+\boldsymbol{Ax2k\omega\Omega\imath+} \\
  66. x \boldsymbol{+} y \boldsymbol{=} z
  67. Boxed: \boxed{F=ma} \quad \boxed{ac}\color{magenta}{\boxed{F}}\boxed{F=mg}
  68. Cases: |
  69. f(a,b)=\begin{cases}
  70. a+1&\text{if }b\text{ is odd} \\
  71. a&\text{if }b=0 \\
  72. a-1&\text{otherwise}
  73. \end{cases}
  74. Colors:
  75. tex: \blue{a}\textcolor{#0f0}{b}\textcolor{red}{c}
  76. nolatex: different syntax and different scope
  77. ColorImplicit: bl{ack\color{red}red\textcolor{green}{green}red\color{blue}blue}black
  78. ColorSpacing: \textcolor{red}{\displaystyle \int x} + 1
  79. Colorbox: a \colorbox{teal} B \fcolorbox{blue}{red}{C} e+\colorbox{teal}x
  80. DashesAndQuotes: |
  81. \begin{array}{l}
  82. \text{``a'' b---c -- d----`e'-{-}-f} -- \\
  83. \text{\it ``a'' b---c -- d----`e'-{-}-f} ``x'' \\
  84. \text{\tt ``a''---} \texttt{``a''---} \mathtt{--} \\
  85. \end{array}
  86. DeepFontSizing:
  87. tex: |
  88. a^{\big| x^{\big(}}_{\Big\uparrow} +
  89. i^{i^{\Huge x}_y}_{\Huge z} +
  90. \dfrac{\Huge x}{y}
  91. nolatex: \Huge inside \dfrac doesn't work, needs an extra {…}
  92. DelimiterSizing: |
  93. \bigl\uparrow\Bigl\downarrow\biggl\updownarrow
  94. \Biggl\Uparrow\Biggr\Downarrow\biggr\langle\Bigr\}\bigr\rfloor
  95. DisplayMode:
  96. tex: \sum_{i=0}^\infty \frac{1}{i}
  97. pre: pre
  98. post: post
  99. display: 1
  100. DisplayStyle: |
  101. {\displaystyle\sqrt{x}}{\sqrt{x}}
  102. {\displaystyle \frac12}{\frac12}{\displaystyle x^1_2}{x^1_2}
  103. Dots: |
  104. \begin{array}{l}
  105. \cdots;\dots+\dots\int\dots,\dots \\
  106. \cdots{};\ldots+\ldots\int\ldots,\ldots
  107. \end{array}
  108. Exponents: a^{a^a_a}_{a^a_a}
  109. ExtensibleArrows: |
  110. \begin{array}{l}
  111. \xrightarrow[ab]{ABC} + \xRightarrow{ABC} \\
  112. \xrightleftharpoons[ab]{ABC} + \xhookrightarrow[ab]{ABC} \\
  113. \xtwoheadrightarrow{ABC} + \frac{\xrightarrow[ab]{ABC}}{\xrightarrow[ab]{ABC}} + \left\lvert\xrightarrow[ab]{ABC}\right\rvert
  114. \end{array}
  115. FractionTest: |
  116. \begin{array}{l}
  117. \dfrac{a}{b}\frac{a}{b}\tfrac{a}{b}\;-\dfrac12\;1\tfrac12\;{1 \atop 2}\; \cfrac{1}{1+\cfrac{1}{x}} \\[2.5em]
  118. {a \brace b} \; {a \brack b} \; \genfrac \{ ]{0.8pt}{0}{a}{b}
  119. \; {a \above1.0pt b}
  120. \end{array}
  121. Functions: \sin\cos\tan\ln\log
  122. Gathered: |
  123. \begin{gathered}
  124. x = \frac{1}{2} \\
  125. y = \sum_{i=1}^n i
  126. \end{gathered} \approx
  127. \begin{array}{c}
  128. x = \frac{1}{2} \\
  129. y = \sum_{i=1}^n i
  130. \end{array}
  131. GreekLetters: \alpha\beta\gamma\omega
  132. GreekUnicode: \frac{αβγδεϵζηθϑικλμνξοπϖρϱςστυφϕχψω}{ΓΔΘΞΠΣΦΨΩ\mathbf{Ω}\mathbf{\Omega}}
  133. GroupMacros:
  134. macros:
  135. \startExp: e^\bgroup
  136. \endExp: \egroup
  137. tex: \startExp a+b\endExp
  138. HorizontalBraces: \overbrace{\displaystyle{\oint_S{\vec E\cdot\hat n\,\mathrm d a}}}^\text{emf} = \underbrace{\frac{q_{\text{enc}}}{\varepsilon_0}}_{\text{charge}}
  139. Includegraphics: |
  140. \def\logo{\includegraphics[height=0.8em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}}
  141. \def\logoB{\includegraphics[height=0.4em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}}
  142. \begin{array}{l}
  143. \underline{A\logo} + \sqrt{\logo} + \tfrac{A\logo}{\logo}\\[1em]
  144. \underline{A\logoB} + \sqrt{x\logoB} + \tfrac{A\logoB}{\logoB}
  145. \end{array}
  146. Integrands: |
  147. \begin{array}{l}
  148. \displaystyle \int + \oint + \iint + \oiint_i^n \\[0.6em]
  149. \displaystyle \iiint + \oiiint + \textstyle \int + \oint_i^n \\[0.6em]
  150. \iint + \oiint + \iiint + \oiiint
  151. \end{array}
  152. KaTeX:
  153. tex: \KaTeX
  154. nolatex: \KaTeX not supported by LaTeX
  155. Kern:
  156. tex: \frac{a\kern{1em}b}{c}a\kern{1em}b\kern{1ex}c\kern{-0.25em}d
  157. nolatex: LaTeX fails to typeset this, “Missing number, treated as zero.”
  158. # The following test, Lap, is commented out pending a successful screenshotter test.
  159. # Lap: |
  160. # \begin{array}{l}
  161. # ab\mathllap{f}cd\mathrlap{g}hij\mathclap{k}lm \; ab\llap{f}cd\rlap{g}hij\clap{k}lm \\
  162. # \mathrlap{\frac a b} \frac a b \\
  163. # \mathrlap{\overbrace{\phantom{a_0+a_1+a_2}}^m}a_0+a_1+a_2
  164. # \end{array}
  165. LargeRuleNumerator: \frac{\textcolor{blue}{\rule{1em}{2em}}}{x}
  166. LaTeX: \text{\LaTeX}, \text{\TeX}
  167. LeftRight: \left( x^2 \right) \left\{ x^{x^{x^{x^x}}} \right.
  168. LeftRightListStyling: a+\left(x+y\right)-x
  169. LeftRightMiddle: \left( x^2 \middle/ \right) \left\{ x^{x^{x^{x^x}}} \middle/ y \right.\left(x\middle|y\,\middle|\,z\right)
  170. LeftRightStyleSizing: |
  171. +\left\{\rule{0.1em}{1em}\right.
  172. x^{+\left\{\rule{0.1em}{1em}\right.
  173. x^{+\left\{\rule{0.1em}{1em}\right.}}
  174. LimitControls: |
  175. \displaystyle\int\limits_2^3 3x^2\,dx + \sum\nolimits^n_{i=1}i +
  176. \textstyle\int\limits_x^y z
  177. LineBreak: |
  178. \frac{x^2}{y^2} + z^2 =
  179. z^2 + \frac{x^2}{y^2} =
  180. \frac{x^2}{y^2} +\nobreak z^2 =
  181. z^2 + \frac{x^2}{y^2} =
  182. \frac{x^2}{y^2} + ~ z^2 =
  183. z^2 + \frac{x^2}{y^2} =
  184. \frac{x^2}{y^2} + \hspace{1em} z^2 =
  185. z^2 + \frac{x^2}{y^2} =
  186. \frac{x^2}{y^2} + z^2 = \hspace*{1em}
  187. z^2 + \frac{x^2}{y^2} =
  188. \frac{x^2}{y^2} + z^2 =
  189. hi \allowbreak there =
  190. hi \allowbreak there
  191. LowerAccent: |
  192. \begin{matrix}
  193. \underleftarrow{AB} \quad \underrightarrow{AB} \quad \underleftrightarrow{AB} \quad \undergroup{AB} \\
  194. \underlinesegment{AB} \quad \utilde{AB} \quad \color{green}{\underrightarrow{AB}} \\
  195. \underrightarrow{F} + \underrightarrow{AB} + \underrightarrow{AB}^2 + \underrightarrow{AB}_2 \\
  196. \frac{\underrightarrow{AB}}{\underrightarrow{AB}} + \sqrt{\underrightarrow{AB}} + \left\lvert\underrightarrow{AB}\right\rvert \\
  197. \text{\underline{text}}
  198. \end{matrix}
  199. MathAtom: a\mathrel{\mathop{=}\limits^{\blue ?}}b
  200. MathAtom2: \mathop{\overline{\mathrm{lim}}}\limits_{x\to\infty}f(x)
  201. MathChoice: |
  202. {\displaystyle\mathchoice{D}{T}{S}{SS}} {\textstyle\mathchoice{D}{T}{S}{SS}} {\scriptstyle \mathchoice{D}{T}{S}{SS}} {\scriptscriptstyle\mathchoice{D}{T}{S}{SS}} \displaystyle X_{\mathchoice{D}{T}{S}{SS}_{\mathchoice{D}{T}{S}{SS}}}
  203. MathDefaultFonts: Ax2k\breve{a}\omega\Omega\imath+\KaTeX
  204. MathBb: \mathbb{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  205. MathBf: \mathbf{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  206. MathCal: \mathcal{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  207. MathFrak: \mathfrak{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  208. MathIt: \mathit{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  209. MathNormal: \mathnormal{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  210. MathOp: a\mathop+b\mathop:c\mathop{\delta}e\mathop{\textrm{and}}f\mathrel{\mathop{:}}=g\sin h
  211. MathRm: \mathrm{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  212. MathSf: \mathsf{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  213. MathScr: \mathscr{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  214. MathTt: \mathtt{Ax2k\breve{a}\omega\Omega\imath+\KaTeX}
  215. Mod: |
  216. \begin{array}{cc}
  217. a \bmod 2 & b \pod 3 \\
  218. c \pmod{4} & d \mod{56} \\
  219. \displaystyle a\bmod 2 & \displaystyle b \pod 3 \\
  220. \displaystyle c\pmod{4} & \displaystyle d \mod{56}
  221. \end{array}
  222. ModScript: |
  223. \begin{array}{cc}
  224. \scriptstyle a\bmod 2 & \scriptstyle b \pod 3 \\
  225. \scriptstyle c\pmod{4} & \scriptstyle d \mod{56}
  226. \end{array}
  227. ModSpacing: |
  228. \begin{array}{l}
  229. (a \cdot b) \bmod 257 \\
  230. (a \cdot b) \mkern1mu\mathbin{\mathrm{mod}}\mkern1mu 257 \\
  231. (a \cdot b) \mathbin{\mathrm{mod}} 257
  232. \end{array}
  233. NegativeSpaceBetweenRel: A =\!= B
  234. NegativeSpace:
  235. tex: \boxed{\$1,\!000,\!000}\KaTeX
  236. post: .
  237. NestedFractions: |
  238. \dfrac{\frac{a}{b}}{\frac{c}{d}}\dfrac{\dfrac{a}{b}}
  239. {\dfrac{c}{d}}\frac{\frac{a}{b}}{\frac{c}{d}}
  240. NewLine: |
  241. \frac{a^2+b^2}{c^2} \newline
  242. \frac{a^2+b^2}{c^2} \\[1ex]
  243. \begin{pmatrix}
  244. a & b \\
  245. c & d \cr
  246. \end{pmatrix} \\
  247. a+b+c+{d+\\e}+f+g
  248. Not: |
  249. \begin{array}{l}
  250. \not=\not>\not\geq\not\in\not<\not\leq\not{abc} \\
  251. \not xy + ab \not xy \\
  252. a \neq b \notin c
  253. \end{array}
  254. NullDelimiterInteraction: a \bigl. + 2 \quad \left. + a \right)
  255. OldFont: |
  256. \begin{matrix}
  257. \rm rm & it & \it it & \bf bf & \sf sf & \tt tt \\
  258. \text{\rm rm} & \text{rm} & \text{\it it} & \text{\bf bf} & \text{\sf sf} & \text{\tt tt} \\
  259. i\rm r\it i & \text{r\it i\rm r}
  260. \end{matrix}
  261. OperatorName: |
  262. \begin{matrix}
  263. \operatorname g (z) + 5\operatorname{g}z + \operatorname{Gam-ma}(z) \\
  264. \operatorname{Gam ma}(z) + \operatorname{\Gamma}(z) + \operatorname{}x
  265. \end{matrix}
  266. OpLimits: |
  267. \begin{matrix}
  268. {\sin_2^2 \lim_2^2 \int_2^2 \sum_2^2}
  269. {\displaystyle \lim_2^2 \int_2^2 \intop_2^2 \sum_2^2} \\
  270. \limsup_{x \rightarrow \infty} x \stackrel{?}= \liminf_{x \rightarrow \infty} x
  271. \end{matrix}
  272. OverUnderline: x\underline{x}\underline{\underline{x}}\underline{x_{x_{x_x}}}\underline{x^{x^{x^x}}}\overline{x}\overline{x}\overline{x^{x^{x^x}}} \blue{\overline{\underline{x}}\underline{\overline{x}}}
  273. OverUnderset: |
  274. \begin{array}{l}
  275. x\overset?=1 \quad \underset{*}{x}^2 \quad \overset{a}{b}b\underset{a}{b}b \\
  276. {\displaystyle\lim_{t\underset{>0}\to0}}\\
  277. a+b+c+d\overset{b+c=0}\longrightarrow a+d\\
  278. \overset { x = y } { \sqrt { a b } }
  279. \end{array}
  280. Phantom: \begin{array}{l}
  281. \dfrac{1+\phantom{x^{\blue{2}}} = x}{1+x^{\blue{2}} = x} \left(\vphantom{\int_t} zzz \right) \left( X \hphantom{\frac{\frac X X}{X}} \right)\\
  282. \text{a \phantom{123} b \hphantom{45678} c \vphantom{101112} d}
  283. \end{array}
  284. Pmb: \mu\pmb{\mu}\pmb{=}\mu\pmb{+}\mu
  285. PrimeSpacing: f'+f_2'+f^{f'}
  286. PrimeSuper: x'^2+x'''^2+x'^2_3+x_3'^2
  287. Raisebox: \frac{a}{a\raisebox{0.5em}{b}} \cdot \frac{a\raisebox{-0.5em}{b}}{a} \cdot \sqrt{a\raisebox{0.5em}{b}} \cdot \sqrt{a\raisebox{-0.5em}{b}} \cdot \sqrt{a\raisebox{0.5em}{b}\raisebox{-0.5em}{b}}
  288. ReactionArrows: |
  289. \begin{matrix}
  290. A \xrightleftarrows{} B \xrightequilibrium{} C \xleftequilibrium{} D \\
  291. A \xrightleftarrows{over} B \xrightequilibrium{over} C \xleftequilibrium{over} D
  292. \end{matrix}
  293. RelativeUnits: |
  294. \begin{array}{ll}
  295. a\kern1emb^{a\kern1emb^{a\kern1emb}} &
  296. {\footnotesize a\kern1emb^{a\kern1emb^{a\kern1emb}}} \\
  297. a\mkern18mub^{a\mkern18mub^{a\mkern18mub}} &
  298. {\footnotesize a\mkern18mub^{a\mkern18mub^{a\mkern18mub}}} \\
  299. \rule{1em}{1em}^{\rule{1em}{1em}}\rule{18mu}{18mu}^{\rule{18mu}{18mu}} &
  300. {\footnotesize\rule{1em}{1em}^{\rule{1em}{1em}}\rule{18mu}{18mu}^{\rule{18mu}{18mu}}}
  301. \end{array}
  302. RlapBug: \frac{\mathrlap{x}}{2}
  303. Rule: \rule{1em}{0.5em}\rule{1ex}{2ex}\rule{1em}{1ex}\rule{1em}{0.431ex}
  304. SizingBaseline:
  305. tex: '{\tiny a+b}a+b{\Huge a+b}'
  306. pre: x
  307. post: M
  308. Sizing: |
  309. {\Huge x}{\LARGE y}{\normalsize z}{\scriptsize w}\sqrt[\small 3]{x+1}
  310. Smash: \left( X^{\smash 2} \right) \sqrt{\smash[b]{y}}
  311. Spacing: |
  312. \begin{matrix}
  313. ^3+[-1][1-1]1=1(=1)\lvert a\rvert~b \\
  314. \scriptstyle{^3+[-1][1-1]1=1(=1)\lvert a\rvert~b} \\
  315. \scriptscriptstyle{^3+[-1][1-1]1=1(=1)\lvert a\rvert~b} \\
  316. a : a \colon a \\
  317. \end{matrix}
  318. Sqrt: |
  319. \sqrt{\sqrt{\sqrt{x}}}_{\sqrt{\sqrt{x}}}^{\sqrt{\sqrt{\sqrt{x}}}
  320. ^{\sqrt{\sqrt{\sqrt{x}}}}}
  321. SqrtRoot: |
  322. \begin{array}{l}
  323. 1+\sqrt[3]{2}+\sqrt[1923^234]{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^2}}}}}}}}}}} \\
  324. \Huge \sqrt[3]{M} + x^{\sqrt[3] a}
  325. \end{array}
  326. StackRel: a \stackrel{?}{=} b \stackrel{\text{def}}{=} c
  327. StretchyAccent: |
  328. \begin{array}{l}
  329. \overrightarrow{AB} \quad \overleftarrow{AB} \quad \Overrightarrow{AB} \quad \overleftrightarrow{AB} \quad \overgroup{AB} \\
  330. \overlinesegment{AB} \quad \overleftharpoon{AB} \quad \overrightharpoon{AB} \quad \color{red}{\overrightarrow{AB}} \quad \widehat{\theta} \widetilde{A} \\
  331. \widecheck{AB} \quad \widehat{ABC} \quad \widetilde{AB} \quad \widetilde{ABC} \\
  332. \overrightarrow{F} + \overrightarrow{AB} + \overrightarrow{F}^2 + \overrightarrow{F}_2 + \overrightarrow{F}_1^2 \\
  333. \overrightarrow{AB}^2+\frac{\overrightarrow{AB}}{\overrightarrow{AB}} + \sqrt{\overrightarrow{AB}} + \left\lvert\overrightarrow{AB}\right\rvert
  334. \end{array}
  335. StretchyAccentColor: |
  336. \red{\overrightarrow{AB}} \quad \color{blue}{\overleftarrow{AB}} \quad \color{blue}{\green{\Overrightarrow{AB}}}
  337. StrikeThrough: |
  338. \begin{array}{l}
  339. \cancel x \quad \cancel{2B} + \bcancel 5 +\bcancel{5ay} \\
  340. \sout{5ab} + \sout{5ABC} + \xcancel{\oint_S{\vec E\cdot\hat n\,\mathrm d a}} \\[0.3em]
  341. \frac{x+\cancel B}{x+\cancel x} + \frac{x+\cancel y}{x} + \cancel{B}_1^2 + \cancel{B^2} \\[0.2em]
  342. \left\lvert\cancel{ac}\right\rvert
  343. \end{array}
  344. StrikeThroughColor: |
  345. \begin{array}{l}
  346. \red{\cancel x \quad \cancel{2B} + \bcancel 5 +\bcancel{5ay}} \\
  347. \color{green}{\sout{5ab} + \sout{5ABC} + \xcancel{\oint_S{\vec E\cdot\hat n\,\mathrm d a}}}
  348. \end{array}
  349. StyleSpacing: \scriptstyle ab\;cd
  350. StyleSwitching: a\cdot b\scriptstyle a\cdot ba\textstyle\cdot ba\scriptstyle\cdot b
  351. SupSubCharacterBox: a_2f_2{f}_2{aa}_2{af}_2\mathbf{y}_Ay_A
  352. SupSubHorizSpacing: |
  353. x^{x^{x}}\Big|x_{x_{x_{x_{x}}}}\bigg|x^{x^{x_{x_{x_{x_{x}}}}}}\bigg|
  354. SupSubLeftAlignReset: |
  355. \omega^8_{888} \quad \frac{1}{\hat{\omega}^{8}_{888}} \quad \displaystyle\sum_{\omega^{8}_{888}}
  356. SupSubOffsets: \displaystyle \int_{2+3}x f^{2+3}+3\lim_{2+3+4+5}f
  357. SurrogatePairs: |
  358. \begin{array}{l}
  359. 𝐀𝐚𝟎𝐴𝑎𝑨𝒂𝔅𝔞𝔸𝒜 \\
  360. 𝖠𝖺𝟢𝗔𝗮𝟬𝘈𝘢𝙰𝚊𝟶 \\
  361. \text{𝐀𝐚𝟎𝐴𝑎𝑨𝒂𝔅𝔞𝔸𝒜} \\
  362. \text{𝖠𝖺𝟢𝗔𝗮𝟬𝘈𝘢𝙰𝚊𝟶} \\
  363. \mathrm{𝐀𝐚𝑨𝒂𝔅𝔞𝔸𝒜} \\
  364. \end{array}
  365. SvgReset:
  366. # This math uses a lot of SVG glyphs
  367. tex: '\underbrace{\sqrt{\vec{x}} + \sqrt{\vec{\color{#f00}y}}}'
  368. # Some of these styles should affect both svg and text. We want
  369. # those to be inherited. But some of the styles only affect svg
  370. # and the point of this test is to verify that the svg-only
  371. # styles (like fill-opacity) are not inherited
  372. styles: 'display:block; width:500px;border:solid yellow 5px;padding:50px;background:#ccc;color:green;font-size:92px;transform:translate(100px,250px)rotate(-45deg);fill-opacity:0;stroke-width:40;stroke:blue;'
  373. Symbols1: |
  374. \maltese\degree\pounds\$
  375. \text{\maltese\degree\pounds\textdollar}
  376. Tag:
  377. tex: \tag{$+$hi} \frac{x^2}{y}+x^{2^y}
  378. display: 1
  379. Text: \frac{a}{b}\text{c~ {ab} \ e}+fg
  380. TextSpace:
  381. \begin{array}{l}
  382. \texttt{12345678901234} \\
  383. \texttt{A test 1~~2\ \ 3} \\
  384. \verb|A test 1 2 3|
  385. \end{array}
  386. TextStacked:
  387. \begin{matrix}
  388. \textsf{abc123 \textbf{abc123} \textit{abc123}}\\
  389. \text{abc123 \textbf{abc123} \textit{abc123}}\\
  390. \textrm{abc123 \textbf{abc123} \textit{abc123}}\\
  391. \textsf{\textrm{\textbf{abc123}} \textbf{abc123} \textit{abc123}}\\
  392. \textit{abc123 \textbf{abc123} \textsf{abc123}}\\
  393. \end{matrix}
  394. TextWithMath:
  395. \begin{matrix}
  396. \text{for $a < b$ and $ c < d $}. \\
  397. \textsf{for $a < b$ and $ c < d $}. \\
  398. \textsf{for $a < b \textbf{ and } c < d $} \\
  399. \text{\sf for $a < b$ and $c < d$.}
  400. \end{matrix}
  401. Unicode: \begin{matrix}\text{ÀàÇçÉéÏïÖöÛû} \\ \text{БГДЖЗЙЛФЦШЫЮЯ} \\ \text{여보세요} \\ \text{私はバナナです} \end{matrix}
  402. Units: |
  403. \begin{array}{ll}
  404. \mathrm H\kern 1em\mathrm H \text{\tiny (1em)}
  405. & \mathrm H\kern 1ex\mathrm H \text{\tiny (1ex)} \\
  406. \mathrm H{\scriptstyle \kern 1em}\mathrm H \text{\tiny (ss 1em)}
  407. & \mathrm H{\scriptstyle \kern 1ex}\mathrm H \text{\tiny (ss 1ex)} \\
  408. \mathrm H{\small \kern 1em}\mathrm H \text{\tiny (sm 1em)}
  409. & \mathrm H{\small \kern 1ex}\mathrm H \text{\tiny (sm 1ex)} \\
  410. \mathrm H\mkern 18mu\mathrm H \text{\tiny (18mu)}
  411. & \mathrm H\kern 1cm\mathrm H \text{\tiny (1cm)} \\
  412. \mathrm H{\scriptstyle \mkern 18mu}\mathrm H \text{\tiny (ss 18mu)}
  413. & \mathrm H{\scriptstyle \kern 1cm}\mathrm H \text{\tiny (ss 1cm)} \\
  414. \mathrm H{\small \mkern 18mu}\mathrm H \text{\tiny (sm 18mu)}
  415. & \mathrm H{\small \kern 1cm}\mathrm H \text{\tiny (sm 1cm)}
  416. \end{array}
  417. UnsupportedCmds:
  418. tex: \err\,\frac\fracerr3\,2^\superr_\suberr\,\sqrt\sqrterr
  419. noThrow: 1
  420. errorColor: "#dd4c4c"
  421. nolatex: deliberately does not compile
  422. Verb: |
  423. \begin{array}{ll}
  424. \verb \verb , & \verb|\verb |, \\
  425. \verb* \verb* , & \verb*|\verb* |, \\
  426. \verb!<x> & </y>! & \scriptstyle\verb|ss verb| \\
  427. \verb*!<x> & </y>! & \small\verb|sm verb| \\
  428. \verb|``---''~|
  429. \end{array}
  430. VerticalSpacing:
  431. pre: potato<br>blah
  432. tex: x^{\Huge y}z
  433. post: <br>moo