From MediaWiki.org
Jump to navigation Jump to search

This hook is deprecated consider to use MathFormulaPostRender instead.

Available from version 1.7.0
Called after Tex is processed just before saving the image to the right position and writing to database
Define function:
public static function onMathAfterTexvc( &$math, &$errmsg ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"MathAfterTexvc": "MyExtensionHooks::onMathAfterTexvc"

For MediaWiki ≤1.25:

$wgHooks['MathAfterTexvc'][] = 'MyExtensionHooks::onMathAfterTexvc';
Called from:File(s): Math.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MathAfterTexvc extensions.


  • $math: current math object
  • $errmsg: error message