This update will reset the content of CMTV_Math_js and CMTV_Math_macros templates. Make sure to backup your math macros before installing it!

Math options
Added a new options page in "Options" called "Math options":
1601908798563.png

On this page you can customize main "Math" addon options:
  • Math macros
  • Custom math delimiters
  • Igonre math in elements with classes
1601908904643.png

Auto-convertation to BB codes
When writing posts, profile posts and all other messages that work in BB context, you can use math delimiters specified in "Math options".

For example, when writing a post in thread the following text:
Code:
Hello world! I have a real number $x$. How do I solve this? $$ y = kx + b $$
will be converted into:
Code:
Hello world! I have a real number [imath]x[/imath]. How do I solve this? [math]y = kx + b[/math]
Styling improvements
Scrollbars are automatically added to formulas that are too wide:
1601909478300.png
Added a two bbcodes for math rendering: math for block math and imath for inline math.
Smilies and other bbcodes are not rendering withing these two tags.
Please, read the installation instructions!

From 3.0 the addon uses KaTeX math renderer instead of MathJax (because KaTeX is faster and causes less problems).

Be aware. Some very complex formulas that work in MathJax might not work in KaTeX. See supported functions for more info. If you want to stay with MathJax — do not update!

Features
  • Works in XF 2.2
  • New math renderer — KaTeX
  • Reduced the size of addon (less files)
  • Works faster
  • Long equations are automatically break into few lines (yep, no more horizontal scrollbars)
Fixes
  • Fixed a bug with wrong math delimiters from "Inswer math" dialog
Installation
  1. Remove the previous version of this addon including files (remove src/addons/CMTV/Math and js/CMTV/Math folders)
  2. Install this version as a normal addon
  3. In ACP go to "Content/BB code button manager" and an "Insert math" button to your editor
Fixed bugs
  • Math is rendering correctly in all previews
Math 2.1.0 was rewritten from scratch. It is not compatible with previous addon versions and XF below 2.1! There is no way to upgrade existing addon!

Remove installed Math addon from you forum. After this install this version as a new addon!

Changes
  • Improved addon stability, better code quality
  • Using the latest version of MathJax
  • All previously reported bugs should disappear now
  • Removed Wiris editor (it is a commercial software and requires a license)
  • MathJax by default uses the current chosen forum language
  • Improved XF Resource Manager support
  • "LaTeX input" textarea resizes automatically
  • More options to control MathJax behaviour
  • Customizable "Insert math" button position (by default you can find it in "Insert" dropdown)
  • XF 2.1 and PHP 7+ are required now to install the addon
Top