Difference between revisions of "LaTeX"
KevinDavis (talk | contribs) |
KevinDavis (talk | contribs) (Added reference for complex formula) |
||
| Line 11: | Line 11: | ||
<math>\sqrt{\frac{1}{4}} = \frac{1}{2}</math> | <math>\sqrt{\frac{1}{4}} = \frac{1}{2}</math> | ||
| − | Highly complex mathematical expressions are also possible; : | + | Highly complex mathematical expressions are also possible; for example, the following code<ref>[https://meta.wikimedia.org/wiki/Help:Displaying_a_formula Mediawiki Help:Displaying a Formula]</ref>: |
\operatorname{erfc}(x) = | \operatorname{erfc}(x) = | ||
\frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt = | \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt = | ||
Revision as of 12:44, October 12, 2011
LaTeX is a computer typesetting language for mathematical markup. It was designed and developed by Leslie Lamport[1] as an extension of TeX, an existing typesetting language developed by Donald Knuth. LaTeX is used nearly universally by mathematicians, physicists, engineers, computer scientists and other scientists in need of technical formatting in their publications.
Examples
\documentclass{12pt}[article] %Specifies the font size and the document style
\begin{document} %Begins the document
\sqrt{\frac{1}{4}} = \frac{1}{2}
\end{document} %Document closing tag
This LaTeX code would output:
Highly complex mathematical expressions are also possible; for example, the following code[2]:
\operatorname{erfc}(x) =
\frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt =
\frac{e^{-x^2}}{x\sqrt{\pi}}\sum_{n=0}^\infty (-1)^n \frac{(2n)!}{n!(2x)^{2n}}
would output:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \operatorname{erfc}(x) = \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt = \frac{e^{-x^2}}{x\sqrt{\pi}}\sum_{n=0}^\infty (-1)^n \frac{(2n)!}{n!(2x)^{2n}} }
The style declaration, beginning and closing end tags are omitted for brevity.
References
- ↑ Gratzer, G. First Steps in LaTeX. Birkhauser, Boston; p. xiv (1999) [1]
- ↑ Mediawiki Help:Displaying a Formula