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.

6 Answers6

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

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.

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.

Yuliya
  • 21
1

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

https://apps.rocketbooster.net/math

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/

Jung
  • 11
  • 2