codecogs github latex wiki

codecogs - LaTeX math en github wikis



markdown equations (3)

¿Es posible incluir matemáticas al estilo de LaTeX de alguna manera con las wikis de repositorio de github? Googlear implica que Github ya no permite cosas como MathJax, pero la mayoría de las referencias tienen años. ¿Qué alternativas (si las hay) existen para incluir las matemáticas con formato LaTeX en las wikis de github?


Para agregar ecuaciones matemáticas a un wiki de GitHub, usé mathUrl como lo sugiere Ionică . Se representarán las ecuaciones de LaTeX. Agregue .png a la url generada y use esa url como una imagen (bloque o en línea) en su markdown.


Para fórmulas simples (como exponentes, etc.) puede usar los lenguajes de renderizado disponibles. Por ejemplo, usando Textile, puedes hacer:

_E = mc ^2^_

Thiw se prestará como:

_ se utiliza para el estilo de cursiva y ^ para superíndice.

Puedes hacer lo mismo en Markdown agregando algo de HTML:

*E = mc<sup>2</sup>*

Lo puedes ver en acción en este mismo lugar:

E = mc 2

Si está buscando soporte para fórmulas matemáticas complejas, entonces no tiene mejor opción que usar un servicio de terceros que genere imágenes para usted. mathUrl parece interesante.

Como entrada le damos E = mc ^ 2 y genera el siguiente enlace:

http://mathurl.com/render.cgi?E%20%3D%20mc%20%5E%202%5Cnocache


Puede usar chart.apis.google.com para representar las fórmulas de LaTeX como PNG. Funciona bien con la rebaja de Githhub:

Ejemplo (Markdown):

The ratio of the momentum to the velocity is the relativistic mass, m. ![f1] And the relativistic mass and the relativistic kinetic energy are related by the formula: ![f2] Einstein wanted to omit the unnatural second term on the right-hand side, whose only purpose is to make the energy at rest zero, and to declare that the particle has a total energy, which obeys: ![f3] which is a sum of the rest energy ![f4] and the kinetic energy. [f1]: http://chart.apis.google.com/chart?cht=tx&chl=m=/frac{m_0}{/sqrt{1-{/frac{v^2}{c^2}}}} [f2]: http://chart.apis.google.com/chart?cht=tx&chl=E_k=mc^2-m_0c^2 [f3]: http://chart.apis.google.com/chart?cht=tx&chl=E=mc^2 [f4]: http://chart.apis.google.com/chart?cht=tx&chl=m_0c^2

Prestados: