💾 Archived View for dioskouroi.xyz › thread › 29440524 captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2021-12-05)

-=-=-=-=-=-=-

Convert latex notation to ready to be embedded Markdown

Author: 8HoLoN

Score: 38

Comments: 16

Date: 2021-12-04 12:50:04

Web Link

________________________________________________________________________________

oefrha wrote at 2021-12-04 14:49:05:

This just embeds an image from a third-party commercial service

https://latex.codecogs.com/

. I don’t think this is a good idea. The “Buy Now” link on that site even 404s; I seriously doubt the longevity of that service.

Just use Pandoc with good old KaTeX or MathJax. The CDN builds will last way longer than this commercial service, and you have the option of self-hosting everything.

Edit: I didn't see the author's comment here. Apparently it's meant for environments where you aren't allowed to include your own JavaScript. In that case it's probably a good idea to prerender the images and include them alongside if you can.

bachmeier wrote at 2021-12-04 15:03:04:

These days it's becoming standard for any markdown converter to support katex/mathjax. For instance, markdown-it has markdown-it-katex. Dump your markdown with equations directly inside your html file and have it do the conversion. Or this:

https://github.com/susam/texme

8HoLoN wrote at 2021-12-04 15:30:42:

Does it work on Github markdown ? (I made the tool back in 2019 mainly because I couldn't render latex in the render of the readme.md on Github)

susam wrote at 2021-12-04 17:20:55:

Hello! I am the author of TeXMe[1].

Congratulations on launching a working project and running it successfully for the past few years. It is always nice to see new projects pertaining to rendering mathematics on the web.

TeXMe does support GitHub Flavored Markdown (GFM)[2] when used in standalone HTML files. It however does not support your use case of rendering equations in GitHub README.md files. If TeXMe seems interesting, I would also request you to take a look at Muboard[4] which is a live, interactive, self-rendering mathematics chalkboard for the web built with TeXMe.[4]

[1]

https://github.com/susam/texme

[2]

https://github.github.com/gfm

[3]

https://spec.commonmark.org/

[4]

https://muboard.net/

8HoLoN wrote at 2021-12-04 17:40:13:

Hi, I saw textme uses html and imports js, but does this work in static .md (to be parsed by Github as README.md) ? I only saw .html example in the docs.

oefrha wrote at 2021-12-04 16:50:54:

Not really, LaTeX is only supported in ipynb on GitHub AFAIK. The submission title is too generic though.

chrisfinazzo wrote at 2021-12-04 15:18:00:

When I converted my CV from Word back in 2013, I went straight to Tex. A local install of MacTex or BasicTex will outlast all of this and works entirely offline from the start.

If I hadn't gotten so far along with my conversion, I might have even dropped down to groff/troff and used TeX as an intermediate step.

susam wrote at 2021-12-04 17:37:53:

That's precisely what I did too about a decade or so ago when I decided to move away from Microsoft Word to write my CV. I used LaTeX. Back then I began using strictly free and open source software only, so I usually had texlive-latex-installed on my Debian GNU/Linux systems to compile my CV. These days, I just use BasicTeX on macOS.

w4rh4wk5 wrote at 2021-12-04 15:58:55:

As an alternative, something that I've put together in the past for personal notes / documents. It also covers LaTeX (and TIKZ) inside Markdown and leverages Pandoc.

https://github.com/W4RH4WK/Dogx

It contains a Pandoc filter that pulls out the LaTeX code, generates an SVG that gets embedded into the resulting HTML document.

8HoLoN wrote at 2021-12-04 13:15:06:

I'm the author of the tool, I hope this will be useful to some of you in case you need to put mathematical formulas in your README.md

kzrdude wrote at 2021-12-04 14:38:05:

Nice. There are unescaped ()'s in the URL, will this work correctly?

8HoLoN wrote at 2021-12-04 15:31:48:

It's seems to work with the parenthesis as is.

kzrdude wrote at 2021-12-04 16:32:50:

In all markdown parsers?

andreareina wrote at 2021-12-04 14:45:21:

Is codecogs ok with you using their free service this way?

gus_massa wrote at 2021-12-04 13:53:17:

Which packages does it support? I tried \cancel and it works :)

8HoLoN wrote at 2021-12-04 16:01:03:

I don't really know, it's built over the latex.codecogs.com web services.