Menu

#92 LaTeX Equation Plugin

open
nobody
None
5
2008-03-29
2008-03-29
will
No

This PHP plugin add LaTeX equations rendering to the FCKEditor. The plugins was originally designed around the notion of documenting C code and therefore adopted the DOxygen format for representing equations in plane text - namely:
\f$ 1+sin(x) \f$ for an inline equation
and
\f[ 1+sin(x) \f] for a main, centrally positioned equations.

By maintaining the equations in this form, you can double click on equation and editor it - something that would be harder to do if it was stored as an image only.

This system was developed by CodeCogs and more details and source can be downloaded from <a href="http://www.codecogs.com/components/equationeditor/equation_install.php"> http://www.codecogs.com/components/equationeditor/equation_install.php</a>

After editing you will off course want to display these equations in the final page. This is easily achieved using a regular expression search and replace, i.e.

$newhtml= preg_replace('/\\f$(.*?)\\f$/','<img src="http://www.codecogs.com/eq.latex?\inline $1" />', $html);

$newhtml= preg_replace('/\\f[(.*?)\\f]/','<img src="http://www.codecogs.com/eq.latex?\$1" />', $newhtml);

Discussion

  • will

    will - 2008-03-29

    Logged In: YES
    user_id=1124139
    Originator: YES

    File Added: equation.zip

     
  • will

    will - 2008-03-29
    • summary: LaTeX Equations --> LaTeX Equation Plugin
     
  • will

    will - 2009-04-10

    Please see www.codecogs.com for the latest releases and instructions for FCKEditor Plugins etc.

     

Log in to post a comment.

MongoDB Logo MongoDB