diff options
Diffstat (limited to 'support/easylatex/testFiles')
91 files changed, 1246 insertions, 0 deletions
diff --git a/support/easylatex/testFiles/alignAndLinefeed.tex.correct b/support/easylatex/testFiles/alignAndLinefeed.tex.correct new file mode 100644 index 0000000000..08a3e2f583 --- /dev/null +++ b/support/easylatex/testFiles/alignAndLinefeed.tex.correct @@ -0,0 +1,17 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\begin{align} +1 + 1 &= 2 +\\1 &= 2 - 1 +\\0 &= 2 - 1 - 1 +\\0 &= 2 - 2 +\end{align} + +\end{document} diff --git a/support/easylatex/testFiles/alignAndLinefeed.txt b/support/easylatex/testFiles/alignAndLinefeed.txt new file mode 100644 index 0000000000..0edb4682f6 --- /dev/null +++ b/support/easylatex/testFiles/alignAndLinefeed.txt @@ -0,0 +1,6 @@ +\begin{align} +1 + 1 = 2 +1 = 2 - 1 +0 = 2 - 1 - 1 +0 = 2 - 2 +\end{align} diff --git a/support/easylatex/testFiles/alreadyHasHeaderAndFooter.tex.correct b/support/easylatex/testFiles/alreadyHasHeaderAndFooter.tex.correct new file mode 100644 index 0000000000..c4ca8745db --- /dev/null +++ b/support/easylatex/testFiles/alreadyHasHeaderAndFooter.tex.correct @@ -0,0 +1,18 @@ +\documentclass{article} +\title{CS202 Homework 1} +\author{Bayle Shanks} +\usepackage{amsmath} +\usepackage{amsfonts} +\usepackage{amssymb} +\oddsidemargin=.25in \textwidth=6in + +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex +\begin{document} +I'm a Latex document. + +\end{document} + + + + diff --git a/support/easylatex/testFiles/alreadyHasHeaderAndFooter.txt b/support/easylatex/testFiles/alreadyHasHeaderAndFooter.txt new file mode 100644 index 0000000000..93f09b0412 --- /dev/null +++ b/support/easylatex/testFiles/alreadyHasHeaderAndFooter.txt @@ -0,0 +1,16 @@ +\documentclass{article} +\title{CS202 Homework 1} +\author{Bayle Shanks} +\usepackage{amsmath} +\usepackage{amsfonts} +\usepackage{amssymb} +\oddsidemargin=.25in \textwidth=6in + +\begin{document} +I'm a Latex document. + +\end{document} + + + + diff --git a/support/easylatex/testFiles/alreadyInMathMode_align.tex.correct b/support/easylatex/testFiles/alreadyInMathMode_align.tex.correct new file mode 100644 index 0000000000..1a3d6cf922 --- /dev/null +++ b/support/easylatex/testFiles/alreadyInMathMode_align.tex.correct @@ -0,0 +1,19 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\begin{align} +(A - \lambda I), \textrm{where I = } +\\ \left[ \begin{array}{lll} + 1 & 0 & 0 +\\ 0 & 1 & 0 +\\ 0 & 0 & 1 +\end{array} \right] +\end{align} + +\end{document} diff --git a/support/easylatex/testFiles/alreadyInMathMode_align.txt b/support/easylatex/testFiles/alreadyInMathMode_align.txt new file mode 100644 index 0000000000..6ad6ddac60 --- /dev/null +++ b/support/easylatex/testFiles/alreadyInMathMode_align.txt @@ -0,0 +1,4 @@ +\begin{align} +(A - \lambda I), \textrm{where I = } +\\ [[1 0 0 ; 0 1 0 ; 0 0 1]] +\end{align} diff --git a/support/easylatex/testFiles/alreadyInMathMode_dollar.tex.correct b/support/easylatex/testFiles/alreadyInMathMode_dollar.tex.correct new file mode 100644 index 0000000000..1a2762c62d --- /dev/null +++ b/support/easylatex/testFiles/alreadyInMathMode_dollar.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +$\frac{3}{4}$ + +\end{document} diff --git a/support/easylatex/testFiles/alreadyInMathMode_dollar.txt b/support/easylatex/testFiles/alreadyInMathMode_dollar.txt new file mode 100644 index 0000000000..7a3b3b4966 --- /dev/null +++ b/support/easylatex/testFiles/alreadyInMathMode_dollar.txt @@ -0,0 +1 @@ +$\frac{3}{4}$ diff --git a/support/easylatex/testFiles/alreadyInMathMode_eqnarrayStar.tex.correct b/support/easylatex/testFiles/alreadyInMathMode_eqnarrayStar.tex.correct new file mode 100644 index 0000000000..a2bc955870 --- /dev/null +++ b/support/easylatex/testFiles/alreadyInMathMode_eqnarrayStar.tex.correct @@ -0,0 +1,15 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\begin{eqnarray*} +Ax &=& b +\\x &=& A^{-1} b +\end{eqnarray*} + +\end{document} diff --git a/support/easylatex/testFiles/alreadyInMathMode_eqnarrayStar.txt b/support/easylatex/testFiles/alreadyInMathMode_eqnarrayStar.txt new file mode 100644 index 0000000000..9cd6318b47 --- /dev/null +++ b/support/easylatex/testFiles/alreadyInMathMode_eqnarrayStar.txt @@ -0,0 +1,4 @@ +\begin{eqnarray*} +Ax &=& b +\\x &=& A^{-1} b +\end{eqnarray*} diff --git a/support/easylatex/testFiles/autoAlignEquations.tex.correct b/support/easylatex/testFiles/autoAlignEquations.tex.correct new file mode 100644 index 0000000000..86cfd8a17a --- /dev/null +++ b/support/easylatex/testFiles/autoAlignEquations.tex.correct @@ -0,0 +1,17 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\begin{align*} +1 + 1 &= 2 +\\1 &= 2 - 1 +\\0 &= 2 - 1 - 1 +\\0 &= 2 - 2 +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/autoAlignEquations.txt b/support/easylatex/testFiles/autoAlignEquations.txt new file mode 100644 index 0000000000..aa1a0127af --- /dev/null +++ b/support/easylatex/testFiles/autoAlignEquations.txt @@ -0,0 +1,6 @@ +\begin{align*} +1 + 1 = 2 +\\1 = 2 - 1 +\\0 = 2 - 1 - 1 +\\0 = 2 - 2 +\end{align*} diff --git a/support/easylatex/testFiles/autoAlignEquationsOutsideMathMode.tex.correct b/support/easylatex/testFiles/autoAlignEquationsOutsideMathMode.tex.correct new file mode 100644 index 0000000000..436f7c8020 --- /dev/null +++ b/support/easylatex/testFiles/autoAlignEquationsOutsideMathMode.tex.correct @@ -0,0 +1,19 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + + +\begin{align*} +1 + 1 &= 2 +\\1 &= 2 - 1 +\\0 &= 2 - 1 - 1 +\\0 &= 2 - 2 +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/autoAlignEquationsOutsideMathMode.txt b/support/easylatex/testFiles/autoAlignEquationsOutsideMathMode.txt new file mode 100644 index 0000000000..384e423070 --- /dev/null +++ b/support/easylatex/testFiles/autoAlignEquationsOutsideMathMode.txt @@ -0,0 +1,4 @@ +1 + 1 = 2 +1 = 2 - 1 +0 = 2 - 1 - 1 +0 = 2 - 2
\ No newline at end of file diff --git a/support/easylatex/testFiles/autoItemize.tex.correct b/support/easylatex/testFiles/autoItemize.tex.correct new file mode 100644 index 0000000000..9a8e2bd81f --- /dev/null +++ b/support/easylatex/testFiles/autoItemize.tex.correct @@ -0,0 +1,41 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +hi + +\begin{itemize} +\item hello +\item there +\end{itemize} + + +\begin{itemize} +\item[(1)] one +\item[(2)] two +\item[(3)] three +\end{itemize} + + +\begin{itemize} +\item[1)] one +\item[2)] two +\end{itemize} + +\begin{itemize} +\item[John)] is a boy +\item[Amy)] is a girl +\end{itemize} + + +\begin{itemize} +\item[1.1)] decimal +\item[1.2)] test +\end{itemize} + +\end{document} diff --git a/support/easylatex/testFiles/autoItemize.txt b/support/easylatex/testFiles/autoItemize.txt new file mode 100644 index 0000000000..6d53bf5687 --- /dev/null +++ b/support/easylatex/testFiles/autoItemize.txt @@ -0,0 +1,20 @@ +hi + +* hello +* there + + +(1) one +(2) two +(3) three + + +1) one +2) two + +John) is a boy +Amy) is a girl + + +1.1) decimal +1.2) test diff --git a/support/easylatex/testFiles/autoLinefeedInMathMode.tex.correct b/support/easylatex/testFiles/autoLinefeedInMathMode.tex.correct new file mode 100644 index 0000000000..a1e48f6dfb --- /dev/null +++ b/support/easylatex/testFiles/autoLinefeedInMathMode.tex.correct @@ -0,0 +1,17 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\begin{align*} +a +\\b +\\c +\\d +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/autoLinefeedInMathMode.txt b/support/easylatex/testFiles/autoLinefeedInMathMode.txt new file mode 100644 index 0000000000..c8d4894ed6 --- /dev/null +++ b/support/easylatex/testFiles/autoLinefeedInMathMode.txt @@ -0,0 +1,6 @@ +\begin{align*} +a +b +c +d +\end{align*} diff --git a/support/easylatex/testFiles/autoLinefeedInMathMode.txt.correct b/support/easylatex/testFiles/autoLinefeedInMathMode.txt.correct new file mode 100644 index 0000000000..d55a7d6b82 --- /dev/null +++ b/support/easylatex/testFiles/autoLinefeedInMathMode.txt.correct @@ -0,0 +1,15 @@ +\documentclass{article} +\usepackage{amsmath} +\usepackage{amsfonts} +\usepackage{amssymb} + +\begin{document} + +\begin{align*} +1 + 1 &=& 2 +\\1 &=& 2 - 1 +\\0 &=& 2 - 1 - 1 +\\0 &=& 2 - 2 +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/autoMathOnSuperShouldIncludeEscapingBackslash.tex.correct b/support/easylatex/testFiles/autoMathOnSuperShouldIncludeEscapingBackslash.tex.correct new file mode 100644 index 0000000000..18438c7368 --- /dev/null +++ b/support/easylatex/testFiles/autoMathOnSuperShouldIncludeEscapingBackslash.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\{1,2,3$\}^4$ + +\end{document} diff --git a/support/easylatex/testFiles/autoMathOnSuperShouldIncludeEscapingBackslash.txt b/support/easylatex/testFiles/autoMathOnSuperShouldIncludeEscapingBackslash.txt new file mode 100644 index 0000000000..6529f51c8e --- /dev/null +++ b/support/easylatex/testFiles/autoMathOnSuperShouldIncludeEscapingBackslash.txt @@ -0,0 +1 @@ +\{1,2,3\}^4 diff --git a/support/easylatex/testFiles/automathFracSqrt.tex.correct b/support/easylatex/testFiles/automathFracSqrt.tex.correct new file mode 100644 index 0000000000..8b3aca8b84 --- /dev/null +++ b/support/easylatex/testFiles/automathFracSqrt.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + $\sqrt{2}$ + $\frac{1}{(x+5)}$ + +\end{document} diff --git a/support/easylatex/testFiles/automathFracSqrt.txt b/support/easylatex/testFiles/automathFracSqrt.txt new file mode 100644 index 0000000000..47871d82b1 --- /dev/null +++ b/support/easylatex/testFiles/automathFracSqrt.txt @@ -0,0 +1 @@ + \sqrt{2} + \frac{1}{(x+5)} diff --git a/support/easylatex/testFiles/bareParensShouldntBeItemized.tex.correct b/support/easylatex/testFiles/bareParensShouldntBeItemized.tex.correct new file mode 100644 index 0000000000..780b8b5a3b --- /dev/null +++ b/support/easylatex/testFiles/bareParensShouldntBeItemized.tex.correct @@ -0,0 +1,22 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +(picture; same images taken to their nearest neighbor) + +Overall, + + +\ \ \ \ \ error rate $=$ 6\%\ (on \textbf{test} set) +\\ + + +(compare to the baseline error rate for random guessing: 90\%) +(6\%\ error rate happens to be pretty competitive for this task) + +\end{document} diff --git a/support/easylatex/testFiles/bareParensShouldntBeItemized.txt b/support/easylatex/testFiles/bareParensShouldntBeItemized.txt new file mode 100644 index 0000000000..00466442a7 --- /dev/null +++ b/support/easylatex/testFiles/bareParensShouldntBeItemized.txt @@ -0,0 +1,11 @@ +(picture; same images taken to their nearest neighbor) + +Overall, + + +\ \ \ \ \ error rate $=$ 6%\ (on \textbf{test} set) +\\ + + +(compare to the baseline error rate for random guessing: 90%) +(6%\ error rate happens to be pretty competitive for this task) diff --git a/support/easylatex/testFiles/binarySymbol.tex.correct b/support/easylatex/testFiles/binarySymbol.tex.correct new file mode 100644 index 0000000000..b988dcc658 --- /dev/null +++ b/support/easylatex/testFiles/binarySymbol.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +$a \to b$, $x \mapsto y$ + +\end{document} diff --git a/support/easylatex/testFiles/binarySymbol.txt b/support/easylatex/testFiles/binarySymbol.txt new file mode 100644 index 0000000000..a25ede23f2 --- /dev/null +++ b/support/easylatex/testFiles/binarySymbol.txt @@ -0,0 +1 @@ +a \to b, x \mapsto y diff --git a/support/easylatex/testFiles/captureWordsOppositeToStoredExpressionAutoMath.tex.correct b/support/easylatex/testFiles/captureWordsOppositeToStoredExpressionAutoMath.tex.correct new file mode 100644 index 0000000000..43e4513160 --- /dev/null +++ b/support/easylatex/testFiles/captureWordsOppositeToStoredExpressionAutoMath.tex.correct @@ -0,0 +1,15 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +$x \mapsto y_1\ldots y_n +\\ \\ y_1\ldots y_n \mapsto x$ + + + +\end{document} diff --git a/support/easylatex/testFiles/captureWordsOppositeToStoredExpressionAutoMath.txt b/support/easylatex/testFiles/captureWordsOppositeToStoredExpressionAutoMath.txt new file mode 100644 index 0000000000..81519e3aa7 --- /dev/null +++ b/support/easylatex/testFiles/captureWordsOppositeToStoredExpressionAutoMath.txt @@ -0,0 +1,6 @@ +x \mapsto y_1...y_n + + +y_1...y_n \mapsto x + + diff --git a/support/easylatex/testFiles/columnVector.tex.correct b/support/easylatex/testFiles/columnVector.tex.correct new file mode 100644 index 0000000000..455c1334d5 --- /dev/null +++ b/support/easylatex/testFiles/columnVector.tex.correct @@ -0,0 +1,20 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + +\begin{align*} +\left[ \begin{array}{l} + 0 +\\ 1 +\\ 0 +\end{array} \right] +\end{align*} + + +\end{document} diff --git a/support/easylatex/testFiles/columnVector.txt b/support/easylatex/testFiles/columnVector.txt new file mode 100644 index 0000000000..8e09110cba --- /dev/null +++ b/support/easylatex/testFiles/columnVector.txt @@ -0,0 +1 @@ +[[0 1 0 ]]' diff --git a/support/easylatex/testFiles/demo.tex.correct b/support/easylatex/testFiles/demo.tex.correct new file mode 100644 index 0000000000..5a96f99ba6 --- /dev/null +++ b/support/easylatex/testFiles/demo.tex.correct @@ -0,0 +1,55 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +The identity matrix is the matrix for which $a_{ij} = 1$ when $i = j$, and 0 everywhere else. For example, in three dimensions, \begin{align*}I = + \left[ \begin{array}{lll} + 1 & 0 & 0 +\\ 0 & 1 & 0 +\\ 0 & 0 & 1 +\end{array} \right] +\end{align*} +. + +Here is a column vector: +\begin{align*} +\left[ \begin{array}{l} + 0 +\\ 1 +\\ 0 +\end{array} \right] +\end{align*} +. + +$x \mapsto y +\\ \frac{1}{3}$ + + +% note: you can still use normal LaTeX in an easylatex file! for example: +\begin{eqnarray*} +a + b &=& c +\\ a &=& c - b +\\ \begin{array}{ll} +\\1 & 2 +\\ 3 & 4 +\\\end{array} +\end{eqnarray*} + +Here are some equations which easylatex will automatically align: + +\begin{align*} +1 + 1 &= 2 +\\1 &= 2 - 1 +\\0 &= 2 - 2 +\end{align*} +For easylatex to deal with a series of naked equations, like in the last three lines, there must be either an empty line, or the end of the file, both before and after the equations. So, the following lines WON'T be automatically aligned: +$1 + 1 = 2 +1 = 2 - 1 +0 = 2 - 2$ + +\end{document} diff --git a/support/easylatex/testFiles/demo.txt b/support/easylatex/testFiles/demo.txt new file mode 100644 index 0000000000..32ef744288 --- /dev/null +++ b/support/easylatex/testFiles/demo.txt @@ -0,0 +1,29 @@ +The identity matrix is the matrix for which a_ij = 1 when i = j, and 0 everywhere else. For example, in three dimensions, I = [[1 0 0 ; 0 1 0 ; 0 0 1]]. + +Here is a column vector: [[0 1 0]]'. + +x \mapsto y + +1/3 + + +%% note: you can still use normal LaTeX in an easylatex file! for example: +\begin{eqnarray*} +a + b &=& c +\\ a &=& c - b +\\ \begin{array}{ll} +1 & 2 +\\ 3 & 4 +\end{array} +\end{eqnarray*} + +Here are some equations which easylatex will automatically align: + +1 + 1 = 2 +1 = 2 - 1 +0 = 2 - 2 + +For easylatex to deal with a series of naked equations, like in the last three lines, there must be either an empty line, or the end of the file, both before and after the equations. So, the following lines WON'T be automatically aligned: +1 + 1 = 2 +1 = 2 - 1 +0 = 2 - 2
\ No newline at end of file diff --git a/support/easylatex/testFiles/dontSweepApartDollarSigns.tex.correct b/support/easylatex/testFiles/dontSweepApartDollarSigns.tex.correct new file mode 100644 index 0000000000..6ce54e36f7 --- /dev/null +++ b/support/easylatex/testFiles/dontSweepApartDollarSigns.tex.correct @@ -0,0 +1,18 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + +\begin{align*}x \mapsto y_1\ldots y_n +\\ \\ \\ \frac{1}{3} +\\ \\ \\ 1 + 1 &= 2 +\\1 &\leq 3 - 1 +\\&\leq 5 +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/dontSweepApartDollarSigns.txt b/support/easylatex/testFiles/dontSweepApartDollarSigns.txt new file mode 100644 index 0000000000..f512032521 --- /dev/null +++ b/support/easylatex/testFiles/dontSweepApartDollarSigns.txt @@ -0,0 +1,12 @@ + +x \mapsto y_1...y_n + + + +1/3 + + + +1 + 1 = 2 +1 \leq 3 - 1 +\leq 5 diff --git a/support/easylatex/testFiles/dotsToLdots.tex.correct b/support/easylatex/testFiles/dotsToLdots.tex.correct new file mode 100644 index 0000000000..adfc81492c --- /dev/null +++ b/support/easylatex/testFiles/dotsToLdots.tex.correct @@ -0,0 +1,18 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +Dots to ldots changes $\ldots$ to ldots + + +$1 + 2$ + $\ldots$ + 10 + +$v_1 v_2\ldots v_n$ + + +\end{document} diff --git a/support/easylatex/testFiles/dotsToLdots.txt b/support/easylatex/testFiles/dotsToLdots.txt new file mode 100644 index 0000000000..0981dca526 --- /dev/null +++ b/support/easylatex/testFiles/dotsToLdots.txt @@ -0,0 +1,7 @@ +Dots to ldots changes ... to ldots + + +1 + 2 + ... + 10 + +v_1 v_2...v_n + diff --git a/support/easylatex/testFiles/easySections.tex.correct b/support/easylatex/testFiles/easySections.tex.correct new file mode 100644 index 0000000000..b0f47a95e2 --- /dev/null +++ b/support/easylatex/testFiles/easySections.tex.correct @@ -0,0 +1,34 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\section*{ main section 1 } +hello + +\begin{align*} +3 + 2 = 5 +\end{align*} +\subsection*{ subsection 1 } +hi + +\begin{align*} +2 + 9 = 7 +\end{align*} +\subsubsection*{ subsubsection 1 } +bye + +\begin{align*} +1 + 3 = 44 +\end{align*} +\subsection*{ subsection 2 } +number 2 is my name + +\section*{ mainSec 2 } +goodbye: $22 + 4 = 9$ + +\end{document} diff --git a/support/easylatex/testFiles/easySections.txt b/support/easylatex/testFiles/easySections.txt new file mode 100644 index 0000000000..79d99d4041 --- /dev/null +++ b/support/easylatex/testFiles/easySections.txt @@ -0,0 +1,20 @@ +== main section 1 == +hello + +3 + 2 = 5 + +=== subsection 1 === +hi + +2 + 9 = 7 + +==== subsubsection 1 ==== +bye + +1 + 3 = 44 + +=== subsection 2 === +number 2 is my name + +== mainSec 2 == +goodbye: 22 + 4 = 9 diff --git a/support/easylatex/testFiles/escapedMatrix.tex.correct b/support/easylatex/testFiles/escapedMatrix.tex.correct new file mode 100644 index 0000000000..ef02471ebb --- /dev/null +++ b/support/easylatex/testFiles/escapedMatrix.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +[1 0 0 ; 0 1 0 ; 0 0 1] + +\end{document} diff --git a/support/easylatex/testFiles/escapedMatrix.txt b/support/easylatex/testFiles/escapedMatrix.txt new file mode 100644 index 0000000000..02e97ea870 --- /dev/null +++ b/support/easylatex/testFiles/escapedMatrix.txt @@ -0,0 +1 @@ +[1 0 0 ; 0 1 0 ; 0 0 1] diff --git a/support/easylatex/testFiles/graphInteractions.tex.correct b/support/easylatex/testFiles/graphInteractions.tex.correct new file mode 100644 index 0000000000..0872cc0ce6 --- /dev/null +++ b/support/easylatex/testFiles/graphInteractions.tex.correct @@ -0,0 +1,18 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\input{easyLatexGraph.tex} +\includegraphics{easyLatexGraph.eps} + +\begin{align*} +% note: the fields inside [] are comma-deliminted, so if there are commas inside a label= math expression, easylatex will break up the math expression at the comma; in this case you must put in the dollar signs manually +\end{align*} + + +\end{document} diff --git a/support/easylatex/testFiles/graphInteractions.txt b/support/easylatex/testFiles/graphInteractions.txt new file mode 100644 index 0000000000..c0ad949144 --- /dev/null +++ b/support/easylatex/testFiles/graphInteractions.txt @@ -0,0 +1,12 @@ +\begin{graph} + rankdir=LR + node [shape=plaintext] + v_1 + v_1 -> v_2 [label=\sqrt{2}+\frac{1}{(x+5)}, color=forestgreen] + v_2 -> v_3 [label=$S \subseteq \{1,2,3\}^4$] + v_3 -> v_1 [label=(f \circ g)^{-1}] +\end{graph} + +%% note: the fields inside [] are comma-deliminted, so if there are commas inside a label= math expression, easylatex will break up the math expression at the comma; in this case you must put in the dollar signs manually + + diff --git a/support/easylatex/testFiles/graphInteractions2.tex.correct b/support/easylatex/testFiles/graphInteractions2.tex.correct new file mode 100644 index 0000000000..d664d4ea2c --- /dev/null +++ b/support/easylatex/testFiles/graphInteractions2.tex.correct @@ -0,0 +1,21 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\input{easyLatexGraph.tex} +\includegraphics{easyLatexGraph.eps} + + + + +\input{easyLatexGraph.tex} +\includegraphics{easyLatexGraph.eps} + + + +\end{document} diff --git a/support/easylatex/testFiles/graphInteractions2.txt b/support/easylatex/testFiles/graphInteractions2.txt new file mode 100644 index 0000000000..e13731a362 --- /dev/null +++ b/support/easylatex/testFiles/graphInteractions2.txt @@ -0,0 +1,22 @@ +\begin{graph} + rankdir=LR + node [shape=plaintext] + [[1 0 0 ; 0 1 0 ; 0 0 1]] + [[1 0 0 ; 0 1 0 ; 0 0 1]] -> v_2 [label= [1 0 ; 0 1] , color=forestgreen] + v_2 -> v_3 [label=$S \subseteq \{1,2,3\}^4$(2)] + v_3 -> [[1 0 0 ; 0 1 0 ; 0 0 1]] [label=$(f \circ g)^{-1}$(2)] +\end{graph} + + + + +\begin{graph} + rankdir=LR + node [shape=plaintext] + $ [[1 0 0 ; 0 1 0 ; 0 0 1]] $(5) + $ [[1 0 0 ; 0 1 0 ; 0 0 1]] $(5) -> v_2 [label=$ [[1 0 ; 0 1]] $(6), color=forestgreen] + $v_2$(1) -> v_3 [label=$S \subseteq \{1,2,3\}^4$(2)] + $v_3$(1) -> $ [[1 0 0 ; 0 1 0 ; 0 0 1]] $(5) [label=$(f \circ g)^{-1}$(2)] +\end{graph} + + diff --git a/support/easylatex/testFiles/graphViz.tex.correct b/support/easylatex/testFiles/graphViz.tex.correct new file mode 100644 index 0000000000..b303d47007 --- /dev/null +++ b/support/easylatex/testFiles/graphViz.tex.correct @@ -0,0 +1,15 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\input{easyLatexGraph.tex} +\includegraphics{easyLatexGraph.eps} + + + +\end{document} diff --git a/support/easylatex/testFiles/graphViz.txt b/support/easylatex/testFiles/graphViz.txt new file mode 100644 index 0000000000..d2f240a43d --- /dev/null +++ b/support/easylatex/testFiles/graphViz.txt @@ -0,0 +1,11 @@ +\begin{graph} + rankdir=LR + node [shape=plaintext] + $v_1$(2) + $v_1$ -> $v_2$ [label=$\sqrt{2}+\frac{1}{x+5}$(5)] + $v_2$ -> $v_3$ [label=$S \subseteq \{1,2,3\}^4$(4)] + $v_3$ -> $v_1$ [label=$(f \circ g)^{-1}$(7)] + A -> B [dir=none] +\end{graph} + + diff --git a/support/easylatex/testFiles/identityMatrix.tex.correct b/support/easylatex/testFiles/identityMatrix.tex.correct new file mode 100644 index 0000000000..b2351591f5 --- /dev/null +++ b/support/easylatex/testFiles/identityMatrix.tex.correct @@ -0,0 +1,20 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + +\begin{align*} +\left[ \begin{array}{lll} + 1 & 0 & 0 +\\ 0 & 1 & 0 +\\ 0 & 0 & 1 +\end{array} \right] +\end{align*} + + +\end{document} diff --git a/support/easylatex/testFiles/identityMatrix.txt b/support/easylatex/testFiles/identityMatrix.txt new file mode 100644 index 0000000000..edeae5d6c8 --- /dev/null +++ b/support/easylatex/testFiles/identityMatrix.txt @@ -0,0 +1 @@ +[[1 0 0 ; 0 1 0 ; 0 0 1]] diff --git a/support/easylatex/testFiles/identityMatrix4D.tex.correct b/support/easylatex/testFiles/identityMatrix4D.tex.correct new file mode 100644 index 0000000000..906a8ac6df --- /dev/null +++ b/support/easylatex/testFiles/identityMatrix4D.tex.correct @@ -0,0 +1,21 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + +\begin{align*} +\left[ \begin{array}{llll} + 1 & 0 & 0 & 0 +\\ 0 & 1 & 0 & 0 +\\ 0 & 0 & 1 & 0 +\\ 0 & 0 & 0 & 1 +\end{array} \right] +\end{align*} + + +\end{document} diff --git a/support/easylatex/testFiles/identityMatrix4D.txt b/support/easylatex/testFiles/identityMatrix4D.txt new file mode 100644 index 0000000000..5d94dde3df --- /dev/null +++ b/support/easylatex/testFiles/identityMatrix4D.txt @@ -0,0 +1 @@ +[[1 0 0 0 ; 0 1 0 0 ; 0 0 1 0 ; 0 0 0 1]] diff --git a/support/easylatex/testFiles/inequalityAfterFirstEqn.tex.correct b/support/easylatex/testFiles/inequalityAfterFirstEqn.tex.correct new file mode 100644 index 0000000000..a57c285474 --- /dev/null +++ b/support/easylatex/testFiles/inequalityAfterFirstEqn.tex.correct @@ -0,0 +1,24 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + + +\begin{align*} +&C(v_1) + C(v_2) + C(v_5) + C(v_6) +\\&\geq C(v_1) + C(v_2) + C(v_5) + C(v_6) - 2*c(v_1, v_2) +\\&= C(v_1,v_2) + C(v_5) + C(v_6) +\\&\geq C(v_1,v_2) + C(v_5) + C(v_6) - 2*c(v_1 v_2, v_6) +\\&= C(v_1,v_2, v_6) + C(v_5) +\\&\geq C(v_1,v_2, v_3) + C(v_5) +\\&\geq C(v_1,v_2, v_3) + C(v_5) - 2*c(v_1 v_2 v_3, v_5) +\\&= C(v_1,v_2, v_3, v_5) +\\&\geq C(v_1,v_2, v_3, v_4) +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/inequalityAfterFirstEqn.txt b/support/easylatex/testFiles/inequalityAfterFirstEqn.txt new file mode 100644 index 0000000000..f5fbdacf61 --- /dev/null +++ b/support/easylatex/testFiles/inequalityAfterFirstEqn.txt @@ -0,0 +1,12 @@ + + +C(v_1) + C(v_2) + C(v_5) + C(v_6) +\geq C(v_1) + C(v_2) + C(v_5) + C(v_6) - 2*c(v_1, v_2) += C(v_1,v_2) + C(v_5) + C(v_6) +\geq C(v_1,v_2) + C(v_5) + C(v_6) - 2*c(v_1 v_2, v_6) += C(v_1,v_2, v_6) + C(v_5) +\geq C(v_1,v_2, v_3) + C(v_5) +\geq C(v_1,v_2, v_3) + C(v_5) - 2*c(v_1 v_2 v_3, v_5) += C(v_1,v_2, v_3, v_5) +\geq C(v_1,v_2, v_3, v_4) + diff --git a/support/easylatex/testFiles/inequalityAfterFirstEqnWithTextrm.tex.correct b/support/easylatex/testFiles/inequalityAfterFirstEqnWithTextrm.tex.correct new file mode 100644 index 0000000000..a402546e0d --- /dev/null +++ b/support/easylatex/testFiles/inequalityAfterFirstEqnWithTextrm.tex.correct @@ -0,0 +1,24 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + + +\begin{align*} +&C(v_1) + C(v_2) + C(v_5) + C(v_6) +\\&\geq C(v_1) + C(v_2) + C(v_5) + C(v_6) - 2*c(v_1, v_2) +\\&= C(v_1,v_2) + C(v_5) + C(v_6) +\\&\geq C(v_1,v_2) + C(v_5) + C(v_6) - 2*c(v_1 v_2, v_6) +\\&= C(v_1,v_2, v_6) + C(v_5) +\\&\geq C(v_1,v_2, v_3) + C(v_5) & \textrm{ if $v_6$ is connected to $v_1$ or $v_2$} +\\&\geq C(v_1,v_2, v_3) + C(v_5) - 2*c(v_1 v_2 v_3, v_5) +\\&= C(v_1,v_2, v_3, v_5) +\\&\geq C(v_1,v_2, v_3, v_4) & \textrm{ if $v_5$ is connected to $v_1$ or $v_2$ or $v_3$} +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/inequalityAfterFirstEqnWithTextrm.txt b/support/easylatex/testFiles/inequalityAfterFirstEqnWithTextrm.txt new file mode 100644 index 0000000000..d01b78ce16 --- /dev/null +++ b/support/easylatex/testFiles/inequalityAfterFirstEqnWithTextrm.txt @@ -0,0 +1,12 @@ + + +C(v_1) + C(v_2) + C(v_5) + C(v_6) +\geq C(v_1) + C(v_2) + C(v_5) + C(v_6) - 2*c(v_1, v_2) += C(v_1,v_2) + C(v_5) + C(v_6) +\geq C(v_1,v_2) + C(v_5) + C(v_6) - 2*c(v_1 v_2, v_6) += C(v_1,v_2, v_6) + C(v_5) +\geq C(v_1,v_2, v_3) + C(v_5) \textrm{if $v_6$ is connected to $v_1$ or $v_2$} +\geq C(v_1,v_2, v_3) + C(v_5) - 2*c(v_1 v_2 v_3, v_5) += C(v_1,v_2, v_3, v_5) +\geq C(v_1,v_2, v_3, v_4) \textrm{if $v_5$ is connected to $v_1$ or $v_2$ or $v_3$} + diff --git a/support/easylatex/testFiles/multipleEqnsToAlign.tex.correct b/support/easylatex/testFiles/multipleEqnsToAlign.tex.correct new file mode 100644 index 0000000000..501011e96e --- /dev/null +++ b/support/easylatex/testFiles/multipleEqnsToAlign.tex.correct @@ -0,0 +1,28 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + + +\begin{align*} +X_{IN} &= & \textrm{ (sum of all edges with X on one end and a node inside the circle on the other end)} +\\X_{OUT} &= & \textrm{ (sum of all edges with X on one end and a node outside the circle on the other end)} +\end{align*} + + + + +\begin{align*} +&C(v_4,v_5,v_9) +\\&= C(v_1,v_2,v_3,v_6,v_7,v_8) +\\&= C(v_1,v_2,v_3) + C(v_6,v_7,v_8) - 2*c(v_1 v_2 v_3, v_6 v_7 v_8) +\\&\leq C(v_1,v_2,v_3) + C(v_6,v_7,v_8) +\\&\leq C(v_1,v_2,v_6) + C(v_6,v_7,v_8) +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/multipleEqnsToAlign.txt b/support/easylatex/testFiles/multipleEqnsToAlign.txt new file mode 100644 index 0000000000..43df352c4f --- /dev/null +++ b/support/easylatex/testFiles/multipleEqnsToAlign.txt @@ -0,0 +1,12 @@ +X_IN = \textrm{(sum of all edges with X on one end and a node inside the circle on the other end)} +X_OUT = \textrm{(sum of all edges with X on one end and a node outside the circle on the other end)} + + + + + +C(v_4,v_5,v_9) += C(v_1,v_2,v_3,v_6,v_7,v_8) += C(v_1,v_2,v_3) + C(v_6,v_7,v_8) - 2*c(v_1 v_2 v_3, v_6 v_7 v_8) +\leq C(v_1,v_2,v_3) + C(v_6,v_7,v_8) +\leq C(v_1,v_2,v_6) + C(v_6,v_7,v_8) diff --git a/support/easylatex/testFiles/nakedEqnsInequalities.tex.correct b/support/easylatex/testFiles/nakedEqnsInequalities.tex.correct new file mode 100644 index 0000000000..f0fb99f91d --- /dev/null +++ b/support/easylatex/testFiles/nakedEqnsInequalities.tex.correct @@ -0,0 +1,47 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + + +\begin{align*} +a &\leq b +\\b &\leq c +\\a &\geq d +\\a &= e +\end{align*} + + +\begin{align*} +b &= c +\\b &= d +\end{align*} + + +\begin{align*} +a = a +\end{align*} + + +\begin{align*} +&&c(v_a v_b \ldots v_c, v_x v_y \ldots v_z) + c(v_d v_e \ldots v_f, v_x v_y \ldots v_z) &= c(v_a v_b \ldots v_c v_d v_e \ldots v_f, v_x v_y \ldots v_z) +\\ \textrm{if $m \geq n$, } && c(v_1 v_2 \ldots v_{n-1} v_n) &\geq c(v_1 v_2 \ldots v_{n-1} v_m) +\\&& c(v_a v_b \ldots v_c, v_x v_y \ldots v_z) + c(v_d v_e \ldots v_f, v_q v_r \ldots v_s) &\geq c(v_a v_b \ldots v_c, v_x v_y \ldots v_z) +\end{align*} + + + +\begin{align*} +&&a + b &= c +\\ \textrm{if $m \geq n$, } && d &\geq e +\\&& f &\geq g +\end{align*} + + + +\end{document} diff --git a/support/easylatex/testFiles/nakedEqnsInequalities.txt b/support/easylatex/testFiles/nakedEqnsInequalities.txt new file mode 100644 index 0000000000..83bbc073a2 --- /dev/null +++ b/support/easylatex/testFiles/nakedEqnsInequalities.txt @@ -0,0 +1,31 @@ + + +a \leq b +b \leq c +a \geq d +a = e + + + +b = c +b = d + + + +a = a + + + +c(v_a v_b \ldots v_c, v_x v_y \ldots v_z) + c(v_d v_e \ldots v_f, v_x v_y \ldots v_z) = c(v_a v_b \ldots v_c v_d v_e \ldots v_f, v_x v_y \ldots v_z) +\textrm{if $m \geq n$, } c(v_1 v_2 \ldots v_{n-1} v_n) \geq c(v_1 v_2 \ldots v_{n-1} v_m) +c(v_a v_b \ldots v_c, v_x v_y \ldots v_z) + c(v_d v_e \ldots v_f, v_q v_r \ldots v_s) \geq c(v_a v_b \ldots v_c, v_x v_y \ldots v_z) + + + + +a + b = c +\textrm{if $m \geq n$, } d \geq e +f \geq g + + + diff --git a/support/easylatex/testFiles/nakedEqnsMultipleLines.tex.correct b/support/easylatex/testFiles/nakedEqnsMultipleLines.tex.correct new file mode 100644 index 0000000000..336723c405 --- /dev/null +++ b/support/easylatex/testFiles/nakedEqnsMultipleLines.tex.correct @@ -0,0 +1,18 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +Test of finding multiple line naked eqn + +\begin{align*} +B_{old} &= B + X_{IN} - X_{OUT} +\\B_{new} &= B - X_{IN} + X_{OUT} +\end{align*} + + +\end{document} diff --git a/support/easylatex/testFiles/nakedEqnsMultipleLines.txt b/support/easylatex/testFiles/nakedEqnsMultipleLines.txt new file mode 100644 index 0000000000..8e3db3ec93 --- /dev/null +++ b/support/easylatex/testFiles/nakedEqnsMultipleLines.txt @@ -0,0 +1,6 @@ +Test of finding multiple line naked eqn + +B_old = B + X_IN - X_OUT +B_new = B - X_IN + X_OUT + + diff --git a/support/easylatex/testFiles/notAMatrix.tex.correct b/support/easylatex/testFiles/notAMatrix.tex.correct new file mode 100644 index 0000000000..fba322d181 --- /dev/null +++ b/support/easylatex/testFiles/notAMatrix.tex.correct @@ -0,0 +1,14 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\allowdisplaybreaks[1] + +Hello + +\end{document} diff --git a/support/easylatex/testFiles/notAMatrix.txt b/support/easylatex/testFiles/notAMatrix.txt new file mode 100644 index 0000000000..2025ab04be --- /dev/null +++ b/support/easylatex/testFiles/notAMatrix.txt @@ -0,0 +1,3 @@ +\allowdisplaybreaks[1] + +Hello diff --git a/support/easylatex/testFiles/scriptedMatrix.tex.correct b/support/easylatex/testFiles/scriptedMatrix.tex.correct new file mode 100644 index 0000000000..0114278bac --- /dev/null +++ b/support/easylatex/testFiles/scriptedMatrix.tex.correct @@ -0,0 +1,20 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + +\begin{align*} +\left[ \begin{array}{lll} + a_{1,1} & a_{1,2} & a_{1,3} +\\ a_{2,1} & a_{2,2} & a_{2,3} +\\ a_{3,1} & a_{3,2} & a_{3,3} +\end{array} \right] +\end{align*} + + +\end{document} diff --git a/support/easylatex/testFiles/scriptedMatrix.txt b/support/easylatex/testFiles/scriptedMatrix.txt new file mode 100644 index 0000000000..156c7e1f53 --- /dev/null +++ b/support/easylatex/testFiles/scriptedMatrix.txt @@ -0,0 +1 @@ +[[[3,3,"a_{$i,$j}"]]] diff --git a/support/easylatex/testFiles/scriptedMatrixAckermann.tex.correct b/support/easylatex/testFiles/scriptedMatrixAckermann.tex.correct new file mode 100644 index 0000000000..2a40fd2682 --- /dev/null +++ b/support/easylatex/testFiles/scriptedMatrixAckermann.tex.correct @@ -0,0 +1,23 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + +\begin{align*} +\left[ \begin{array}{lll} + 3 & 4 & 5 +\\ 5 & 7 & 9 +\\ 13 & 29 & 61 +\end{array} \right] +\end{align*} + + + +Function "Ack" (Ackermann's function) copied from Doug Bagley. + +\end{document} diff --git a/support/easylatex/testFiles/scriptedMatrixAckermann.txt b/support/easylatex/testFiles/scriptedMatrixAckermann.txt new file mode 100644 index 0000000000..fe05f0860a --- /dev/null +++ b/support/easylatex/testFiles/scriptedMatrixAckermann.txt @@ -0,0 +1,13 @@ +[[[3,3, +sub Ack { + my($M, $N) = @_; + return( $N + 1 ) if ($M == 0); + return( Ack($M - 1, 1) ) if ($N == 0); + Ack($M - 1, Ack($M, $N - 1)); +} + +return Ack($i,$j); +]]] + + +Function "Ack" (Ackermann's function) copied from Doug Bagley. diff --git a/support/easylatex/testFiles/seminarDocClass.tex.correct b/support/easylatex/testFiles/seminarDocClass.tex.correct new file mode 100644 index 0000000000..1875634694 --- /dev/null +++ b/support/easylatex/testFiles/seminarDocClass.tex.correct @@ -0,0 +1,16 @@ +\documentclass{seminar} + +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex +\usepackage{slidesec} % pkg required by EasyLatex +\begin{document} + + +\begin{slide*} +I'm a slide +\end{slide*} + +\end{document} diff --git a/support/easylatex/testFiles/seminarDocClass.txt b/support/easylatex/testFiles/seminarDocClass.txt new file mode 100644 index 0000000000..57bb5badb6 --- /dev/null +++ b/support/easylatex/testFiles/seminarDocClass.txt @@ -0,0 +1,5 @@ +\documentclass{seminar} + +\begin{slide*} +I'm a slide +\end{slide*}
\ No newline at end of file diff --git a/support/easylatex/testFiles/seminarSlideDivider.tex.correct b/support/easylatex/testFiles/seminarSlideDivider.tex.correct new file mode 100644 index 0000000000..45c00bde50 --- /dev/null +++ b/support/easylatex/testFiles/seminarSlideDivider.tex.correct @@ -0,0 +1,21 @@ +\documentclass{seminar} + +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex +\usepackage{slidesec} % pkg required by EasyLatex +\begin{document} +\begin{slide} + + +I'm slide 1 + +\end{slide} +\begin{slide} + +I'm slide 2 + +\end{slide} +\end{document} diff --git a/support/easylatex/testFiles/seminarSlideDivider.txt b/support/easylatex/testFiles/seminarSlideDivider.txt new file mode 100644 index 0000000000..a3afd77e53 --- /dev/null +++ b/support/easylatex/testFiles/seminarSlideDivider.txt @@ -0,0 +1,7 @@ +\documentclass{seminar} + +I'm slide 1 + +---- + +I'm slide 2 diff --git a/support/easylatex/testFiles/simpleFraction.tex.correct b/support/easylatex/testFiles/simpleFraction.tex.correct new file mode 100644 index 0000000000..2fff150811 --- /dev/null +++ b/support/easylatex/testFiles/simpleFraction.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +$\frac{3.6}{2^2}$ + +\end{document} diff --git a/support/easylatex/testFiles/simpleFraction.txt b/support/easylatex/testFiles/simpleFraction.txt new file mode 100644 index 0000000000..fdaee2e602 --- /dev/null +++ b/support/easylatex/testFiles/simpleFraction.txt @@ -0,0 +1 @@ +3.6/2^2 diff --git a/support/easylatex/testFiles/simpleSymbol.tex.correct b/support/easylatex/testFiles/simpleSymbol.tex.correct new file mode 100644 index 0000000000..f5ee46d8a3 --- /dev/null +++ b/support/easylatex/testFiles/simpleSymbol.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +$alpha \to beta$, $xx \mapsto yy$ + +\end{document} diff --git a/support/easylatex/testFiles/simpleSymbol.txt b/support/easylatex/testFiles/simpleSymbol.txt new file mode 100644 index 0000000000..4e8f6647e0 --- /dev/null +++ b/support/easylatex/testFiles/simpleSymbol.txt @@ -0,0 +1 @@ +alpha \to beta, xx \mapsto yy diff --git a/support/easylatex/testFiles/singleLineNakedEqn.tex.correct b/support/easylatex/testFiles/singleLineNakedEqn.tex.correct new file mode 100644 index 0000000000..cfc1a996b2 --- /dev/null +++ b/support/easylatex/testFiles/singleLineNakedEqn.tex.correct @@ -0,0 +1,17 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +Test of finding single line naked eqn + +\begin{align*} +B_{new} = B - X_{IN} + X_{OUT} +\end{align*} + + +\end{document} diff --git a/support/easylatex/testFiles/singleLineNakedEqn.txt b/support/easylatex/testFiles/singleLineNakedEqn.txt new file mode 100644 index 0000000000..8e43767cf2 --- /dev/null +++ b/support/easylatex/testFiles/singleLineNakedEqn.txt @@ -0,0 +1,5 @@ +Test of finding single line naked eqn + +B_new = B - X_IN + X_OUT + + diff --git a/support/easylatex/testFiles/singleLineNakedEqnNot.tex.correct b/support/easylatex/testFiles/singleLineNakedEqnNot.tex.correct new file mode 100644 index 0000000000..121622f308 --- /dev/null +++ b/support/easylatex/testFiles/singleLineNakedEqnNot.tex.correct @@ -0,0 +1,16 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +Test of finding single line naked eqn which has an escaped = sign (i.e. should NOT be found) + +$B_{new}$ = $B - X_{IN}$ + $X_{OUT}$ + + + +\end{document} diff --git a/support/easylatex/testFiles/singleLineNakedEqnNot.txt b/support/easylatex/testFiles/singleLineNakedEqnNot.txt new file mode 100644 index 0000000000..f2ced8ebe6 --- /dev/null +++ b/support/easylatex/testFiles/singleLineNakedEqnNot.txt @@ -0,0 +1,5 @@ +Test of finding single line naked eqn which has an escaped \= sign (i.e. should NOT be found) + +B_new \= B - X_IN + X_OUT + + diff --git a/support/easylatex/testFiles/superSubscripts.tex.correct b/support/easylatex/testFiles/superSubscripts.tex.correct new file mode 100644 index 0000000000..29250fecf1 --- /dev/null +++ b/support/easylatex/testFiles/superSubscripts.tex.correct @@ -0,0 +1,14 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +Let's say that $a_2 = 2$, and $a_4$ = $2^2$, and $a_{1024}$ = $2^{10}$. + +Furthermore, let's try to say that $a^x$ or $a^{x + b}$ or $a_x$ . + +\end{document} diff --git a/support/easylatex/testFiles/superSubscripts.txt b/support/easylatex/testFiles/superSubscripts.txt new file mode 100644 index 0000000000..dcbf1a2d40 --- /dev/null +++ b/support/easylatex/testFiles/superSubscripts.txt @@ -0,0 +1,3 @@ +Let's say that a_2 = 2, and a_4 = 2^2, and a_{1024} = 2^{10}. + +Furthermore, let's try to say that a^x or a^{x + b} or a_x . diff --git a/support/easylatex/testFiles/superSubscripts2.tex.correct b/support/easylatex/testFiles/superSubscripts2.tex.correct new file mode 100644 index 0000000000..13bde3947a --- /dev/null +++ b/support/easylatex/testFiles/superSubscripts2.tex.correct @@ -0,0 +1,16 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +Let's say that $a_2 = 2$, and $a_4$ = $2^2$, and $a_{1024}$ = $2^{10}$. + +Furthermore, let's try to say that $a^x$ or $a^{x + b}$ or $a_x$ . + +And, $i_{amatest}$ . + +\end{document} diff --git a/support/easylatex/testFiles/superSubscripts2.txt b/support/easylatex/testFiles/superSubscripts2.txt new file mode 100644 index 0000000000..288113afdf --- /dev/null +++ b/support/easylatex/testFiles/superSubscripts2.txt @@ -0,0 +1,5 @@ +Let's say that a_2 = 2, and a_4 = 2^2, and a_1024 = 2^10. + +Furthermore, let's try to say that a^x or a^{x + b} or a_x . + +And, i_amatest .
\ No newline at end of file diff --git a/support/easylatex/testFiles/superSymbolInteraction.tex.correct b/support/easylatex/testFiles/superSymbolInteraction.tex.correct new file mode 100644 index 0000000000..423a09eede --- /dev/null +++ b/support/easylatex/testFiles/superSymbolInteraction.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +($f \circ g)^{-1}$ + +\end{document} diff --git a/support/easylatex/testFiles/superSymbolInteraction.txt b/support/easylatex/testFiles/superSymbolInteraction.txt new file mode 100644 index 0000000000..38684f89f3 --- /dev/null +++ b/support/easylatex/testFiles/superSymbolInteraction.txt @@ -0,0 +1 @@ +(f \circ g)^{-1} diff --git a/support/easylatex/testFiles/sweepingTogetherEqnsShouldntBreakAlign.tex.correct b/support/easylatex/testFiles/sweepingTogetherEqnsShouldntBreakAlign.tex.correct new file mode 100644 index 0000000000..de1c9971f3 --- /dev/null +++ b/support/easylatex/testFiles/sweepingTogetherEqnsShouldntBreakAlign.tex.correct @@ -0,0 +1,17 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +\begin{align*}x \mapsto y +\\ \\ \\ \frac{1}{3} +\\ \\ \\ 1 + 1 &= 2 +\\1 &\leq 3 - 1 +\\&\leq 5 +\end{align*} + +\end{document} diff --git a/support/easylatex/testFiles/sweepingTogetherEqnsShouldntBreakAlign.txt b/support/easylatex/testFiles/sweepingTogetherEqnsShouldntBreakAlign.txt new file mode 100644 index 0000000000..a39ec3d135 --- /dev/null +++ b/support/easylatex/testFiles/sweepingTogetherEqnsShouldntBreakAlign.txt @@ -0,0 +1,11 @@ +x \mapsto y + + + +1/3 + + + +1 + 1 = 2 +1 \leq 3 - 1 +\leq 5 diff --git a/support/easylatex/testFiles/transpose.tex.correct b/support/easylatex/testFiles/transpose.tex.correct new file mode 100644 index 0000000000..a1b59bc38f --- /dev/null +++ b/support/easylatex/testFiles/transpose.tex.correct @@ -0,0 +1,28 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + +The transpose of +\begin{align*} +\left[ \begin{array}{lll} + 0 & 1 & 0 +\\ 0 & 1 & 0 +\\ 0 & 1 & 0 +\end{array} \right] +\end{align*} + is +\begin{align*} +\left[ \begin{array}{lll} + 0 & 0 & 0 +\\ 1 & 1 & 1 +\\ 0 & 0 & 0 +\end{array} \right] +\end{align*} +. + +\end{document} diff --git a/support/easylatex/testFiles/transpose.txt b/support/easylatex/testFiles/transpose.txt new file mode 100644 index 0000000000..a996877c79 --- /dev/null +++ b/support/easylatex/testFiles/transpose.txt @@ -0,0 +1 @@ +The transpose of [[ 0 1 0 ; 0 1 0 ; 0 1 0 ]] is [[ 0 1 0 ; 0 1 0; 0 1 0 ]]'. diff --git a/support/easylatex/testFiles/unEscapeEqualsAndSquareBrackets.tex.correct b/support/easylatex/testFiles/unEscapeEqualsAndSquareBrackets.tex.correct new file mode 100644 index 0000000000..3caf8898ee --- /dev/null +++ b/support/easylatex/testFiles/unEscapeEqualsAndSquareBrackets.tex.correct @@ -0,0 +1,12 @@ +\documentclass{article} +\usepackage{amsmath} % pkg required by EasyLatex +\usepackage{amsfonts} % pkg required by EasyLatex +\usepackage{amssymb} % pkg required by EasyLatex +\usepackage{psfrag} % pkg required by EasyLatex +\usepackage[dvips]{graphicx} % pkg required by EasyLatex + +\begin{document} + + $v_1$ -> $v_2$ [label=$\sqrt{2}$+1/(x+5)(5)] + +\end{document} diff --git a/support/easylatex/testFiles/unEscapeEqualsAndSquareBrackets.txt b/support/easylatex/testFiles/unEscapeEqualsAndSquareBrackets.txt new file mode 100644 index 0000000000..d72975af76 --- /dev/null +++ b/support/easylatex/testFiles/unEscapeEqualsAndSquareBrackets.txt @@ -0,0 +1 @@ + v_1 -> v_2 [label\=\sqrt{2}+1/(x+5)(5)] |