• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mboratko/redmine_latex_mathjax: A plugin to enable mathjax on redmine

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mboratko/redmine_latex_mathjax

开源软件地址(OpenSource Url):

https://github.com/mboratko/redmine_latex_mathjax

开源编程语言(OpenSource Language):

Ruby 76.3%

开源软件介绍(OpenSource Introduction):

Redmine LaTeX MathJax Macro Plugin

This is a simple little plugin which allows mathematical notation to be used within Redmine.

Requirements

Redmine 3.0.x or 3.1.x. Other versions are not tested but may work.

Installation

  1. Download archive and extract to /your/path/to/redmine/plugins/
  2. If you downloaded the zipball (https://github.com/process91/redmine_latex_mathjax/archive/master.zip), rename the extracted directory to 'redmine_latex_mathjax'
  3. (Optional) Modify init.rb. For example, if you host MathJax yourself you can point to your own MathJax location.
  4. Restart Redmine (e.g. by restarting Apache)

Login to Redmine and go to Administration->Plugins. You should now see 'Redmine LaTeX MathJax Macro'. Enjoy!

Usage

Anywhere on a wiki or issue page write for formulas:

$mj(\sum_i x_i)$

or a multiline MathJax Syntax:

{{mj( P_{POWER} = \cfrac {U_{POWER}} {I_{POWER}} )}}

Hit 'Preview' or 'Save' to see them appear.

FAQ

A: MathJax does not appear in PDFs that are generated by using the PDF link below the wiki pages. See Closed Issue: Formula will not display in PDF export (#1 (comment))

Because of the macro this can be fixed in the future by switching from client-side to server-side rendering.

Q: Why a macro? MathJax doesn't need that!

A: The macro is needed to bypass the markup language parser of Redmine. For example, Markdown tries to convert underscores to em HTML tags. This also opens the possibility for doing server-side rendering in the future.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
atilsamancioglu/K20-KotlinFirebaseInsta发布时间:2022-07-07
下一篇:
byecode/awesome-kotlin-android: awesome kotlin for android !发布时间:2022-07-07
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap