LaTeX in Slack
大小:308KiB版本:v 0.5.1更新时间:2021-12-21
Render LaTeX in Slack chat.
LaTeX in Slack 的使用方法详解,最全面的教程
LaTeX in Slack 描述:
用户数:3000
分类:生产工具插件
扩展大小:308 KiB
最后更新时间:2021-12-21
版本:v 0.5.1
LaTeX in Slack 插件简介:
这是来自Chrome商店的 LaTeX in Slack 浏览器插件,您可以在当前页面下载它的最新版本安装文件,并安装在Chrome、Edge等浏览器上。
LaTeX in Slack插件下载方法/流程:
点击下载按钮,关注“扩展迷Extfans”公众号并获取验证码,在网页弹窗中输入验证码,即可下载最新安装文件。
LaTeX in Slack插件安装教程/方法:
(1)将扩展迷上下载的安装包文件(.zip)解压为文件夹,其中类型为“crx”的文件就是接下来需要用到的安装文件
(2) 从设置->更多工具->扩展程序 打开扩展程序页面,或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面
(3) 打开扩展程序页面的“开发者模式”
(4) 将crx文件拖拽到扩展程序页面,
完成安装如有其它安装问题,
请扫描网站底部二维码与客服联系如有疑问请参考:
https://www.extfans.com/installation/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/katex@0.11.1/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.