Math

Unmaintained Math 3.1.0

No permission to download
Compatible XF 2.x versions
  1. 2.0
  2. 2.1
  3. 2.2
Additional requirements
For 2.1+ versions:
• XenForo 2.1
• PHP 7+
License
GPLv3
Visible branding
No
174036


Description

This addon will turn all LaTeX math on your forum to a fancy, sharp and scalable math!
It also adds the "Insert math" button to an editor that greately simplifies the process of adding math to your messages, threads, pages and so on. It also works with xenForo AJAX (loading content on the fly without page reloading) system!

This is an open source addon. You can visit GitHub repository for source code.

All my addons are free...

But if you want to
  • Be informed of all news about developing new addons
  • Suggest and vote for new addons
  • Try beta versions
  • Receive 24-hour early access to new addons
Then you can support me on my Patreon!
185116
___

Features

LaTeX ⟶ Fancy math

Users can write math formulas and equations with LaTeX notation wich then will be turned to a fancy math by powerful MathJax engine. Here is how it works:

174038


Two types of math are supported: inline and block math. Inline math is smaller and commonly used inside the text. In the image above the cosmological constant (green) is an example of inline math.

Block is bigger and is used for standalone big equations and formulas. In the image above the Einstein field equation (blue) is an example of block math.

All math is rendered as text and automatically inherits all its properties: color, line height, font size and so on. As a result you get scalable math that perfectly fits any style and color scheme:

174024


174026


"Insert math" button

With this addon you will notice a new button in text editor toolbar:

174031


This button greately simplifies the process of adding math to threads and posts.

When typing code you will immediately see the output :

174029


174030


Responsive math

When loading page math is rendering with automatic line breaks applied in order to fit its container. How is it working?

Here is a block math that is shorter than its container:

174032


Look what happens when loading the same message in narrow mode:

174033


Moreover, if you dynamically change the width of browser window and container becomes too narrow to render math in full width it automatically adds scroll bars to prevent layout breaking:

174034


___

Installation
  1. Download the addon
  2. Upload contents of upload folder to your forum root
  3. In admin control panel go to "Addons" section and install Math
That's it!

All my addons are free...

But if you want to
  • Be informed of all news about developing new addons
  • Suggest and vote for new addons
  • Try beta versions
  • Receive 24-hour early access to new addons
Then you can support me on my Patreon!
185117
  • mathaddon.test_admin.php_options_groups_Math_.webp
    mathaddon.test_admin.php_options_groups_Math_.webp
    46.6 KB · Views: 179
Author
CMTV
Downloads
169
Views
5,850
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from CMTV

Latest updates

  1. Update 3.1.0

    This update will reset the content of CMTV_Math_js and CMTV_Math_macros templates. Make sure to...
  2. Patch 3.0.1

    Added a two bbcodes for math rendering: math for block math and imath for inline math. Smilies...
  3. Update 3.0 — KaTeX edition

    Please, read the installation instructions! From 3.0 the addon uses KaTeX math renderer instead...
Top Bottom