Write Math Formula on Medium Using LaTeX Extension

G. Nervadof
Level Up Coding
Published in
2 min readOct 14, 2020

--

As you know, Medium doesn’t have a feature to write math equations or formula. I know that a lot of Medium writers really want this feature, especially writers who share technical articles that involve a lot of math. Who doesn’t want to see technical articles with a bunch of beautiful LaTeX math formula, right? Well, you know what I mean.

After searching a lot of online LaTeX formula editors, I think CodeCogs is the best tool to generate math formula, and fortunately the generated images (even with the default settings) also look good on Medium. So, rather than having separate tabs to write and copy-paste the formula, I think it would be nice if we have an extension with a little popup on browser to do the job, then I created this Chrome extension based on CodeCogs.

This is the sample formula (generated as image) from CodeCogs. I just randomly picked this equation from Wikipedia and rewrote it using CodeCogs. Here it is.

This is the extension in action, take a look.

Chrome extension to write math formula (using CodeCogs) on Medium

This extension hasn’t been published to Chrome Web Store, but if you want to install it from the source code, it’s easy, also you can update the code as you like.

  1. First, you need to download the source code as ZIP file from my GitHub repository here, then unzip it. After you unzip it, you can delete or ignore doc folder and README.md file, they are not needed.
  2. Open Chrome, go to address bar, type chrome://extensions and hit enter.
  3. Activate the “Developer mode” and click “Load unpacked” button.
  4. Select the unzipped folder from step 1, and it’s done.

Let’s see how to install it here.

Manual installation from the source

That’s it. Oh, this extension also works for Microsoft Edge, by the way. I hope this will be useful.

Source code: https://github.com/corvasto/codecogs-latex-chrome-extension

--

--

Believes that science and technology can and should make the world a better place