mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added facility to modify settings from admin page. Just a start... will
add more settings for tex.
This commit is contained in:
parent
0ef7915dc4
commit
a66d2974e6
2 changed files with 26 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
if (!isset($CFG->filter_tex_latexpreamble)) {
|
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)) {
|
if (!isset($CFG->filter_tex_latexbackground)) {
|
||||||
|
|
25
filter/tex/filterconfig.html
Normal file
25
filter/tex/filterconfig.html
Normal 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> </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>
|
Loading…
Add table
Add a link
Reference in a new issue