LaTeX in Slack

Render LaTeX in Slack chat.

什麼是LaTeX in Slack?

LaTeX in Slack是由Sophie Huiberts開發的Chrome擴展程式,該擴展的主要功能是“Render LaTeX in Slack chat.”。

擴展截圖

screenshot

下載LaTeX in Slack擴展crx文件

下載LaTeX in Slack擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

                        Renders LaTeX math formulas in Slack.
Similar to the Chrome extension math-with-slackb, except this plugin uses
the KaTeX library instead of MathJax for better compatibility with the
latest version of Slack.


Usage instructions:
Mostly works like standard LaTeX.

Default delimiters are as follows (this avoids issues with dollar signs being used for other purposes):

Inline math:
\( .. \)
$$ .. $$

Display math:
\[ .. \]
$$$ .. $$$

Alternatively, in the options of the extension one can also choose to work with the usual LaTeX delimiters:

Inline math:
\( .. \)
$ .. $

Display math:
\[ .. \]
$$ .. $$


Newlines in formulas can be inserted with \newline. Double backslash \\ is ignored.

Blackboard bold letter shorthands:
\R is short for \mathbb{R}
\N is short for \mathbb{N}
\Z is short for \mathbb{Z}


Downloads:
Firefox: https://addons.mozilla.org/nl/firefox/addon/latex-in-slack/
Chrome: https://chrome.google.com/webstore/detail/latex-in-slack/pfcfelfnpbnboelkjedecjipaibpnfja


Troubleshooting:
1.
Slack uses _ for _italics_ and * for *boldface*. This can interfere with your LaTeX formatting if your message
has multiple underscores or asterisks in it.
The developers of Slack are not big on having a consistent way to escape these special characters, but you can try:
a) escaping using two backslashes: $$\bar\chi^{\\*}\\_W$$
A single backslash is interpreted by the LaTeX rendering library as part of a command, but two of them will be ignored.
b) putting spaces around it: $$\bar\chi^ *  _ W$$

2.
Sometimes Slack does something funny to double space "  " making the plugin unable to recognize a piece of LaTeX
that contains it, like $$\R  $$.


Plugin by Sophie Huiberts and Bento Natura (2019-2020).
Option to choose $/$$/$$$ delimiters added by Nicolas Boumal (2020).

Licenced under the MIT licence.


katex.js is taken straight from the KaTeX project, from the url
https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.js
as indicated by
https://katex.org/docs/browser.html

auto-render.js is adapted from the KaTeX project:
https://github.com/KaTeX/KaTeX/blob/master/contrib/auto-render/auto-render.js

This plugin is not associated with the KaTeX project
nor with Slack or Slack Technologies, Inc.                    

擴展基本資訊

名稱 LaTeX in Slack LaTeX in Slack
ID pfcfelfnpbnboelkjedecjipaibpnfja
官方網址 https://chromewebstore.google.com/detail/latex-in-slack/pfcfelfnpbnboelkjedecjipaibpnfja
簡介 Render LaTeX in Slack chat.
檔案大小 308 KB
安裝次數 3,528
目前版本 0.5.1
更新時間 2020-11-30
上架時間 2019-11-25
評分 4.00/5 共 5 次評分
開發者 Sophie Huiberts
電子郵箱 [email protected]
付費類型 free
擴展官網 https://github.com/sophiehuiberts/katex-with-slack
支援的語言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "content_scripts": [
        {
            "all_frames": true,
            "js": [
                "content.js"
            ],
            "matches": [
                "*:\/\/*.slack.com\/*"
            ]
        }
    ],
    "description": "Render LaTeX in Slack chat.",
    "manifest_version": 2,
    "name": "LaTeX in Slack",
    "short_name": "latex-slack",
    "options_ui": {
        "page": "options.html",
        "open_in_tab": false
    },
    "browser_specific_settings": {
        "gecko": {
            "id": "{344e6ebd-84a3-422d-8460-b954d1bc6bf8}"
        }
    },
    "permissions": [
        "storage"
    ],
    "version": "0.5.1",
    "icons": {
        "32": "icon32.png",
        "48": "icon48.png",
        "128": "icon128.png"
    }
}