This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:mcooper6:latexsyntax [2011/11/11 19:37] – mcooper6 | user:mcooper6:latexsyntax [2011/11/11 20:02] (current) – [yet more] mcooper6 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Matt's Latex Playground Page | ||
+ | This page may turn into a tutorial | ||
+ | |||
+ | A latex example: | ||
+ | |||
+ | < | ||
+ | \frac{1+\frac{1}{x}}{3x + 2} | ||
+ | |||
+ | \dbinom{9}{3} | ||
+ | </ | ||
+ | |||
+ | =====Pictures===== | ||
+ | < | ||
+ | |||
+ | \setlength{\unitlength}{0.8cm} | ||
+ | \begin{picture}(6, | ||
+ | \put(-2.5, | ||
+ | \put(2.7, | ||
+ | \put(0, | ||
+ | \put(0.2, | ||
+ | |||
+ | \qbezier(0, | ||
+ | |||
+ | \qbezier(0, | ||
+ | |||
+ | \end{picture} | ||
+ | |||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | \setlength{\unitlength}{0.8cm} | ||
+ | \begin{picture}(6, | ||
+ | \thicklines | ||
+ | \put(1, | ||
+ | \put(4, | ||
+ | \put(2, | ||
+ | \put(0.7, | ||
+ | \put(4.05, | ||
+ | \put(1.7, | ||
+ | \put(3.1, | ||
+ | \put(1.3, | ||
+ | \put(2.5, | ||
+ | \put(0.3, | ||
+ | \sqrt{s(s-a)(s-b)(s-c)}$} | ||
+ | \put(3.5, | ||
+ | s: | ||
+ | \end{picture} | ||
+ | \\ | ||
+ | \\ | ||
+ | \setlength{\unitlength}{0.8cm} | ||
+ | \begin{picture}(6, | ||
+ | \put(-2.5, | ||
+ | \put(2.7, | ||
+ | \put(0, | ||
+ | \multiput(-2.5, | ||
+ | {\line(1, | ||
+ | \multiput(-2.5, | ||
+ | {\line(1, | ||
+ | \put(0.2, | ||
+ | {$\beta=v/ | ||
+ | \qbezier(0, | ||
+ | (2,0.9640) | ||
+ | \qbezier(0, | ||
+ | (-2, | ||
+ | \put(-3, | ||
+ | \end{picture} | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Matrices===== | ||
+ | < | ||
+ | The characteristic polynomial $f(\lambda)$ of the | ||
+ | $3 \times 3$ matrix | ||
+ | \[ | ||
+ | \left( | ||
+ | \begin{array}{ccc} | ||
+ | a & b & c \\ | ||
+ | d & e & f \\ | ||
+ | g & h & i \end{array} | ||
+ | \right)\] | ||
+ | is given by the equation | ||
+ | \[ f(\lambda) | ||
+ | = \left| | ||
+ | \begin{array}{ccc} | ||
+ | \lambda - a & -b & -c \\ | ||
+ | -d & \lambda - e & -f \\ | ||
+ | -g & -h & \lambda - i \end{array} | ||
+ | \right|.\] | ||
+ | </ | ||
+ | ====shorthand matrices===== | ||
+ | < | ||
+ | The characteristic polynomial $f(\lambda)$ of the | ||
+ | $3 \times 3$ matrix | ||
+ | \[ | ||
+ | \begin{pmatrix} | ||
+ | a & b & c \\ | ||
+ | d & e & f \\ | ||
+ | g & h & i | ||
+ | \end{pmatrix} \] | ||
+ | is given by the equation | ||
+ | \[ f(\lambda) | ||
+ | = \begin{vmatrix} | ||
+ | \lambda - a & -b & -c \\ | ||
+ | -d & \lambda - e & -f \\ | ||
+ | -g & -h & \lambda - i | ||
+ | \end{vmatrix}.\] | ||
+ | </ | ||
+ | |||
+ | =====An equation I hope to display in a block==== | ||
+ | < | ||
+ | \begin{array}{2} | ||
+ | -1(3x + y - 3z = 11)\\ | ||
+ | \underline{+3x - 3y + 2z = 11}\\ | ||
+ | .\end{array} \\ | ||
+ | \theta | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | (3x - 3y + 2z = 11)+(-1(3x + y - 3z = 11))=> -4y + 5z = 0 | ||
+ | \cdots | ||
+ | \ddots | ||
+ | </ | ||
+ | |||
+ | =====One more===== | ||
+ | |||
+ | < | ||
+ | \frac{3}{4 \pi} | ||
+ | \lim_{n \to \infty} | ||
+ | \sum_{k=1}^n \frac{1}{k^2} = \frac{\pi^2}{6}\\ | ||
+ | \it{f}(x) = \frac{1}{\sqrt{x} x^2}\\ | ||
+ | e^{i \pi} + 1 = 0\; | ||
+ | </ | ||
+ | |||
+ | =====Other math I'm not familiar with===== | ||
+ | |||
+ | < | ||
+ | $ \begin{align*} | ||
+ | \int x^2 dx & = \frac{1}{3}x^3\\ | ||
+ | \therefore\quad\int_0^1 x^2 dx &= \frac{1}{3} | ||
+ | \end{align*} | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | And some more: | ||
+ | |||
+ | < | ||
+ | \begin{tabular}{|l|l|p{9cm}|} | ||
+ | \hline | ||
+ | option & variants & explanation \\ | ||
+ | \hline | ||
+ | id & unique string & Identifies the user uniquely.\\ | ||
+ | \hline | ||
+ | logmask & ALL & Log everything \\ | ||
+ | \cline{2-3} | ||
+ | & DBG & Log only debug \\ | ||
+ | \cline{2-3} | ||
+ | & WARN & Log only warning messages \\ | ||
+ | \hline | ||
+ | printTID & flag & Print Thread ID or not.\\ | ||
+ | \hline | ||
+ | prefix & any string & With this will be prefixed all messages of this user.\\ | ||
+ | \hline | ||
+ | p & p & p \\ | ||
+ | \hline | ||
+ | p & p & p \\ | ||
+ | \hline | ||
+ | p & p & p \\ | ||
+ | \hline | ||
+ | p & p & p \\ | ||
+ | \hline | ||
+ | \end{tabular} | ||
+ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====More ...===== | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | |||
+ | \setlength{\unitlength}{0.8cm} | ||
+ | \begin{picture}(6, | ||
+ | \put(-2.5, | ||
+ | \put(2.7, | ||
+ | \put(0, | ||
+ | \put(0.2, | ||
+ | |||
+ | \qbezier(0, | ||
+ | |||
+ | \qbezier(0, | ||
+ | |||
+ | \end{picture} | ||
+ | |||
+ | </ | ||
+ | =====yet more===== | ||
+ | < | ||
+ | \documentclass[14pt]{article} | ||
+ | \usepackage{amsmath} | ||
+ | \usepackage{amsfonts} | ||
+ | \usepackage{eurosym} | ||
+ | \usepackage{ucs} | ||
+ | \usepackage[utf8x]{inputenc} | ||
+ | \usepackage{amssymb} | ||
+ | \pagestyle{empty} | ||
+ | \begin{document} | ||
+ | $a^2+b^2=c^2$ | ||
+ | \Latex2e\ ist nett! | ||
+ | \end{document} | ||
+ | </ |