Conversão de \[\LaTeX\] com MathJax
An invitation to use MathJax (em IMU ON THE WEB)
" The use of mathematical equations in a web page has always been challenging. The first attempts used the standard (ASCII) characters to imitate mathematics so expressions like x^2+y^2=z^2 could be understood. As LaTeX came into vogue, it was used as an encoding of mathematics so that expressions like $\int_{-\infty}^\infty e^{-x^2} dx=\sqrt{\pi}$, while not directly viewable, could at least be interpreted by those sufficiently familiar with LaTeX syntax. The next stage of development involved the insertion of graphic files into the web page. Mathematics text in LaTeX format would be specially denoted, and each such snippet would be sent through LaTeX with the output being converted to a graphics format that could then be inserted into the page. This did allow recognizable mathematics, but it was not without drawbacks: the mathematics would not resize when the page was zoomed resulting in mismatched font sizes between text and mathematicals, and the graphics could not reshape themselves if the page dimensions changed. The arrival of MathJax completely changed this situation. The different approach is to have the computer supporting the browser use JavaScript to draw the mathematics on the page. This allows a very accurate presentation, with no jaggies (visible pixelation) associated with graphic insertions. It also allows greater access to the things that the browser does best: resizing and reflowing for example. Want to see if it works with your browser? If you're connected to the net, take the little snippet of HTML code following this paragraph and put it into a file on your computer. Then open the file with your browser. If all goes well, you will have a centred equation which will remain centred if you change the width of the display. Also, the mathematics will remain perfectly rendered and crisp as you zoom in.
<head><script type="text/javascript"</script></head><body>Here is a special equation:\[ e^{i\pi}+1=0\]The five most important mathematical constants, all in one!</body>A picture is really worth a thousand words. The adventurous might want to replace the equation in the example with their own favourite, or take the LaTeX example from the first paragraph and see how (beautifully) it appears. There are (intentional) limitations to MathJax. It is designed to render pieces of mathematics rather than complete bodies of text. The browser itself is capable of rendering text quickly, so let it do what it is good at. Don't expect to take your favourite LaTeX paper and just drop it into MathJax. It won't work. Another limitation is the time it takes JavaScript to render the mathematics. A complicated page with lots of symbols can take many seconds to be completely viewable, especially on a slow computer, so, whenever possible, keep pages short and not too complicated. Even with these limitations, the range and beauty of LaTeX now displayed by MathJax is impressive. With the newest version, all of the constructions from the amsmath package, as well as all of the amssymbols are available. In addition, it is possible to use automatic line numbering and some referencing features, just as in LaTeX. "
Michael Doob
- Equação de Euler\[ e^{i\pi}+1=0\] com as cinco constantes matemáticas mais importantese, i, π, 0, 1.
- Série do seno \begin{align} \sin x & = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots \\ & = \sum_{n=0}^\infty \frac{(-1)^n x^{2n+1}}{(2n+1)!}, \\ \end{align}
- Fórmula de Euclides \[ a = m^2 - n^2, b = 2mn, c = m^2 + n^2,\] comm andn primos entre si de paridades opostas.
- Multiplicadores de Lagrange λ1, λ2, . . . , λM e o espaço definido por b1, b2, . . . , bM \[ \sum\limits_{k=1}^M \lambda_k b_k = v \]
- De MathJax/demos \[ \left[-\frac{\hbar^2}{2 m}\frac{\partial^2}{\partial x^2}+V \right ]\Psi = i \hbar\frac{\partial}{\partial t}\Psi\]