1<?php 2 3$conf['latex_path'] = 'latex'; 4$conf['dvips_path'] = 'dvips'; 5$conf['convert_path'] = 'convert'; 6$conf['convert_options'] = '-density 120 -trim -transparent "#FFFFFF"'; 7$conf['identify_path'] = 'identify'; 8$conf['image_format'] = 'png'; 9$conf['latex_namespace'] = 'wiki:latex'; 10 11$conf['xsize_limit'] = 1000; 12$conf['ysize_limit'] = 500; 13$conf['string_length_limit'] = 2000; 14 15$conf['preamble'] = '\\documentclass[10pt]{article} 16\\usepackage[utf8]{inputenc} 17\\usepackage{amsmath} 18\\usepackage{amsfonts} 19\\usepackage{amssymb} 20\\usepackage{color} 21\\pagestyle{empty} 22\\begin{document} 23\\definecolor{MyColour}{rgb}{0.50,0.00,0.00} 24{\\color{MyColour}'; 25 26$conf['postamble'] = '}\end{document}'; 27 28// bugfix: force all newlines to be \r\n. Web browsers submit textarea data with \r\n, whereas 29// this default.php might be stored with either \r\n or \n (probably \n). 30// config manager demands an exact match to default value here or it will regard the textarea as changed. 31// so, we should make the default value match what the web browser hands back to us. 32$conf['preamble'] = str_replace("\n","\r\n",str_replace("\r\n","\n",$conf['preamble'])); 33$conf['postamble'] = str_replace("\n","\r\n",str_replace("\r\n","\n",$conf['postamble'])); 34 35