Added facility to modify settings from admin page. Just a start... will

add more settings for tex.
This commit is contained in:
thepurpleblob 2005-07-26 10:58:39 +00:00
parent 0ef7915dc4
commit a66d2974e6
2 changed files with 26 additions and 1 deletions

View file

@ -8,7 +8,7 @@
global $CFG;
if (!isset($CFG->filter_tex_latexpreamble)) {
set_config( 'filter_text_latexpreamble', " \\usepackage[latin1]{inputenc}\n \\usepackage{amsmath}\n \\usepackage{amsfonts}\n");
set_config( 'filter_tex_latexpreamble', " \\usepackage[latin1]{inputenc}\n \\usepackage{amsmath}\n \\usepackage{amsfonts}\n");
}
if (!isset($CFG->filter_tex_latexbackground)) {

View file

@ -0,0 +1,25 @@
<?php
// check the default settings
require_once "defaultsettings.php";
tex_defaultsettings();
?>
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<th align="right">LaTeX Renderer Settings</th>
<th>&nbsp;</th>
</tr>
<tr valign="top">
<td align="right">LaTeX Preamble</td>
<td><textarea type="text" name="filter_tex_latexpreamble" cols="60" rows="5"><?php echo "$CFG->filter_tex_latexpreamble"; ?></textarea></td>
</tr>
<tr valign="top">
<td align="right">Background Colour</td>
<td><input type="text" name="filter_tex_latexbackground"
value="<?php echo $CFG->filter_tex_latexbackground; ?>"></td>
</tr>
<tr valign="top">
<td align="right">Density</td>
<td><input type="text" name="filter_tex_density"
value="<?php echo $CFG->filter_tex_density; ?>"></td>
</table>