diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/easylatex/testFiles/demo.tex.correct |
Initial commit
Diffstat (limited to 'support/easylatex/testFiles/demo.tex.correct')
-rw-r--r-- | support/easylatex/testFiles/demo.tex.correct | 55 |
1 files changed, 55 insertions, 0 deletions
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} |