Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

La Matemática Funciona

Do­cu­tils so­por­ta usar ma­te­má­ti­ca en tus tex­tos des­de ha­ce un tiem­po. Eso de­be­ría sig­ni­fi­car que Niko­la tam­bién lo so­por­ta. Pe­ro nun­ca fun­cio­nó por­que... bue­no, por­que na­die lo ha­bía in­ten­ta­do?

¡Pe­ro aho­ra sí fun­cio­na por­que Da­mian Avi­la lo arre­gló!

Por ejemplo, puedo mencionar casualmente la formula de Euler, que es \(e^{ix} = \cos x + i\sin x\) y anda. ¿Cómo se hace? Así:

casualmente la formula de Euler, que es :math:`e^{ix} = \cos x + i\sin x`

¡Y pue­do mos­trar ecua­cio­nes!

\begin{equation*} \int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C \end{equation*}

De es­ta ma­ne­ra:

.. math::

   \int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C

Lo que se ne­ce­si­ta pa­ra que fun­cio­ne es eti­que­tar tu post co­mo "ma­th­ja­x" pa­ra que se car­gue el ja­vas­cript ne­ce­sa­rio. Si no lo ha­cé­s, no se car­ga in­ne­ce­sa­ria­men­te. :-)

damianavila82 / 2013-02-20 14:55:

I am glad to have contributed a little bit, I hope to do it again soon... ;-)

Leonardo Uieda / 2013-02-21 01:30:

I just ran into this problem today but my solution wasn't as classy. I just added the mathjax script loader to my template head

damianavila82 / 2013-02-21 03:57:

Doing it in that way, you will probably have some problems with the rendering... we can discuss it if you want but I encourage to use this solution...

Cheers.

!!Dean / 2013-02-22 05:32:

Well done, Damian and Roberto! This is the feature I've been waiting for! My rst2html static site is showing its age and the latex math rendering broke long ago.

Roberto Alsina / 2013-02-22 21:20:

cool :-)


Contents © 2000-2023 Roberto Alsina