friendica-addons/mathjax
Tobias Diekershoff 86de95f77b added AR translations to the Friendica addons
Thanks to the work of طاهر, Farida Khalaf, محمد أحمد, abidin toumi, Abdullah Alsabi, ButterflyOfFire and ominds the translation of Friendica into Arabic has crossed the magic 50% progress mark, so we now include their work into the addons repository.
2021-10-10 12:55:16 +02:00
..
asset [mathjax] Added missing fonts 2018-09-20 00:30:31 -04:00
lang added AR translations to the Friendica addons 2021-10-10 12:55:16 +02:00
templates [various] Add exceptions to Smarty default escaping 2018-12-15 05:04:20 -05:00
LICENSE license file 2013-06-01 09:17:58 +02:00
mathjax.js [mathjax] Add separate addon JS file 2018-09-20 21:08:03 -04:00
mathjax.php [various] Remove redundant uninstall functions 2020-07-27 08:30:41 -04:00
README.md [geonames] Update README 2018-11-25 02:14:18 -05:00

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 Friendica you can activate the addon by adding mathjax to the list in your config/local.config.php file

'system' => [
    ...
    'addon' => '...,mathjax'
    ...
]

and then providing the base URL after that in the config/addon.config.php file

'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$.