| 9 | In order to create the image from the formula text, the following is performed: |
| 10 | 1. create .tex file in temporary directory |
| 11 | 1. run latex on .tex file to produce .dvi file |
| 12 | 1. run dvips on .dvi file to produce .eps file |
| 13 | 1. run convert on .eps file to produce .jpg file |
| 14 | |
| 15 | If the image doesn't exist, I get an internal error after the first run. But then the second time everything is good. The only error in the logs is this: |
| 16 | |
| 17 | ... malformed header from script. Bad header=This is TeX, Version 3.14159 (: /home/httpd/vhosts/default/cgi-bin/trac.cgi |
| 18 | |
| 19 | I don't know what's causing the problem. If you hit preview after entering a formula, you'll get an internal error page. Hit back and hit preview again and then it works. |
| 20 | |