66

I have a workgroup that uses the Slack chatting app/website/destop version to communicate, and the desire to send usable mathematical expressions across to friends is something we'd like to do there. While it doesnt seem like there is any official implementation of LaTeX or a plugin for it there are many ways for DIY integration: enter image description here

I wanted to know how to get LaTeX rendering working on Slack, be it through integrations and/or customization of Slack and/or through web hooking. The only thing I'd prefer not to do is hook out to another website, make the render into a picture, and then hook it back into Slack.

1
  • Please note: Fredrik Savje's accepted answer links to his GitHub repo for a script that no-longer works since Slack v.4. However, Savje's repo points to thisiscam's repo which has an updated working version of the script. (Unfortunately, the edit queue for Savje's answer here on StackExchange is full, so I can't edit it.) After re-installing Slack per this issue, the new script worked for me on MacOS. Nov 3, 2020 at 20:30

6 Answers 6

40

I made a small script that installs MathJax in Slack's desktop client (basically the same solution as goatandsheep's, but with some Electron hacking). No server needed, supports both inline and display math, and equations can be edited.

https://github.com/fsavje/math-with-slack

Math in Slack

7
13

I've written a Tampermonkey / Greasemonkey script that you can install as an extension that will render it.

Edit: It's had trouble rendering on streams, since it compiles the content at page load. If someone knows how to do that, that would be awesome.

Edit: MathJax CDN has shut down.

5
  • Thanks, I'm looking over that now. Any chance you could add a little more clarification text to the installer it for people who still dont know know Slack inside and out.
    – user507974
    Oct 17, 2015 at 23:15
  • 1. Download Tampermonkey for Chrome or Greasemonkey for Firefox 2. Add new userscript. 3. Paste the contents of the file into it. Dec 15, 2015 at 4:07
  • Have others had success using the Greasemonkey script? For me, it appears to be installed but does not render equations in my Slack forum.
    – half-pass
    May 15, 2016 at 12:13
  • MathJax has not shut down. The only think that's shut down is one of their CDN. Nov 22, 2018 at 11:00
  • @AlessandroCosentino thank you for the correction. They have not shut down, but their CDN has. They are using CloudFlare CDN now. Nov 23, 2018 at 16:31
2

There is a slack plugin on github, check it out https://github.com/colbygk/mathslax

Also there are Latex plugins from community mentioned by Slack itself https://api.slack.com/community

Cheers

2

We just built an app to embed LaTeX into Slack https://slacklatex.com. But to work on web/mobile/desktop without installing custom software on every system, it has to render as images. Disclosure: I’m one of the authors.

1

There is now an app for this on the slack and Rocket.Chat app store.

https://apps.rocketbooster.net/math

2
  • 1
    It does not look like it parses Latex. May 13, 2020 at 11:10
  • It doesn't, its a math solver bot
    – dor00012
    Oct 16, 2021 at 11:39
1

If you search for "math" in the Slack app directory, there is an app called "latexbot" that renders latex in Slack. We use it at work and it seems to work fine. Edit: Here's the direct link to the slack app: https://nobitasoft.com/latexbot/

2
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Dec 25, 2021 at 6:06
  • If you could include a direct link to the app his answer would be better.
    – bad_coder
    Dec 25, 2021 at 6:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .