<?php $steps = 0; while (!file_exists('ilias.ini.php')) { chdir('..'); ++$steps; } require_once 'Services/Init/classes/class.ilInitialisation.php'; ilInitialisation::initILIAS(); /** * @var $ilIliasIniFile ilIniFile * @var $ilUser ilObjUser */ global $ilIliasIniFile, $ilUser; $tpl = new ilTemplate(dirname(__FILE__) . '/tpl.latex.html', true, true); $tpl->resetJavascript(); require_once 'Services/jQuery/classes/class.iljQueryUtil.php'; $jquery_path = iljQueryUtil::getLocaljQueryPath(); if (strpos($jquery_path, './') === 0) { $jquery_path = substr($jquery_path, 2); } else { if (strpos($jquery_path, '.') === 0) { $jquery_path = substr($jquery_path, 1); } } $mathJaxSetting = new ilSetting('MathJax'); if ($mathJaxSetting->get('enable')) { $tpl->addJavaScript($mathJaxSetting->get('path_to_mathjax')); $tpl->setCurrentBlock('js_on_change_math_jax'); $tpl->touchBlock('js_on_change_math_jax'); $tpl->parseCurrentBlock();