Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Moodle - Filter for converting TeX expressions to cached gif images This Moodle text filter converts TeX expressions delimited by either $$...$$ or by <tex...>...</tex> tags to gif images using mimetex.cgi obtained from http: *www.forkosh.com/mimetex.html authored by John Forkosh john@forkosh.com.  Several binaries of this areincluded with this distribution. Note that there may be patent restrictions on the production of gif images in Canada and some parts of Western Europe and Japan until July 2004.

Copyright: 2004 Zbigniew Fiedorowicz fiedorow@math.ohio-state.edu
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 216 lines (9 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

filter_tex:: (1 method):
  filter()

Defines 1 function


Class: filter_tex  - X-Ref

TeX filtering class.

filter($text, array $options = array()   X-Ref
No description

Functions that are not part of a class:

filter_text_image($imagefile, $tex, $height, $width, $align, $alt)   X-Ref
Create TeX image link.

param: string $imagefile name of file
param: string $tex TeX notation (html entities already decoded)
param: int $height O means automatic
param: int $width O means automatic
param: string $align
param: string $alt
return: string HTML markup