friendica-addons/mathjax
Hypolite Petovan 194d1d167d
Merge pull request #615 from abanink/5118
5118 Implement MathJax JS hook to update contents after live update
2018-06-13 16:43:56 -04:00
..
lang mathjax added NL translation THX Pascal 2018-06-09 10:24:42 +02:00
templates fixing mathjax addon 2018-04-10 19:22:32 +02:00
LICENSE license file 2013-06-01 09:17:58 +02:00
README.md markdownification of the README 2013-06-01 09:17:25 +02:00
mathjax.js Code standards update for mathjax add-on changes (5118) 2018-06-13 09:06:14 +02:00
mathjax.php Defensive code for the case when addon_hooks key does not exist 2018-06-13 21:57:59 +02:00

README.md

MathJax Addon

  • Author: Tobias Diekershoff
  • License: 3-clause BSD license (see the LICENSE file in the addon directory)

About

This addon for friendica includes the MathJax CDN to enable rendering of LaTeX formulae in your friendica postings.

Configuration

All you need to do is provide friendica with the base URL of MathJax. This can be either the URL of the CDN of MathJax or your own installation.

In case you want to use the CDN you can try the following URL as a quick start

http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML

In case you don't want or can use the admin panel of firneidca you can activate the addon by adding mathjax to the

$a->config['system']['addon']

list in your .htconfig.php file and then providing the base URL after that

 $a->config['mathjax']['baseurl'] = 'the URL to your MathJax installation';

Usage

Once the addon is configured you can use LaTeX syntax in your postings to share formulae with your contacts. But remember that the formulae are rendered in the browser of the user thus your contacts need to activate this addon as well. If they don't they will only see the LaTeX syntax in your texts.

Just enclose your equations in ... pairs like e.g. $f_c(x)=ax+b$.