/*
* LaTeX Editor - JavaScript to launch the CodeCogs Equation Editor
* Copyright (C) 2009 William Bateman, 2008 Waipot Ngamsaad
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
// The following code was originally developed by Waipot Ngamsaad (Website: http://www.waipot.ngamsaad.name)
// It has been updated and adapted by Will Bateman for www.CodeCogs.com
function combine(a,b){
var ary=[];
for (var zxc0=0;zxc0 ");
html=html.replace(/(^\\|[^\\]\\)\[(.*?[^\\])\\\]/g,"
");
html=html.replace(/\\\$/g,"\$");
html=html.replace(/\\\\(\[|\])/g,"$1");
eqn[i].innerHTML = html;
}
}
if (window.addEventListener)
window.addEventListener("load", renderlatex, false);
else if (window.attachEvent)
window.attachEvent("onload", renderlatex);