summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/unicode-math-testsuite.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/unicode-math-testsuite.ltx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/unicode-math-testsuite.ltx38
1 files changed, 38 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/unicode-math-testsuite.ltx b/Master/texmf-dist/source/latex/unicode-math/unicode-math-testsuite.ltx
new file mode 100644
index 00000000000..9082f0c045b
--- /dev/null
+++ b/Master/texmf-dist/source/latex/unicode-math/unicode-math-testsuite.ltx
@@ -0,0 +1,38 @@
+\documentclass{article}
+\usepackage{xltxtra,fancyvrb,geometry,calc}
+\geometry{margin=2cm,a4paper}
+\setmainfont{TeX Gyre Pagella}
+\setmonofont{Consolas}
+
+\newcommand\inserttest[1]{%
+ \section{Test #1}
+ \begin{minipage}{0.5\textwidth}
+ \VerbatimInput{testfiles/umtest#1.ltx}
+ \end{minipage}
+ \hfill
+ \begin{minipage}{8cm+4pt}
+ \fboxsep=1pt
+ \fboxrule=1pt
+ \fbox{\includegraphics[width=8cm]{testfiles/umtest#1.safe.png}}
+ \end{minipage}
+}
+
+\pagestyle{empty}
+\begin{document}
+\title{The \textsf{unicode-math} test suite}
+\author{Will Robertson}
+\date{Compiled: \today}
+\maketitle
+\thispagestyle{empty}
+
+\section*{Preamble}
+
+\begin{minipage}{0.5\textwidth}
+The following pieces of output are generated from the code shown.
+As well as being good minimal examples, these tests are useful to ensure that new bugs don't affect old behaviour.
+When the test suite is run, the new output is compared pixel by pixel with that shown here and warnings produced if the outputs are not identical.
+\end{minipage}
+
+\input{testfiles/umtest-suite.tex}
+
+\end{document} \ No newline at end of file