Configuring Latex in TCExam in Windows Platform with XAMPP

The TCExam LaTeX render converts the code to a PNG image that is cached on CACHE folder for successive calls to the same code.

The LaTeX rendering requires the following additional software:

- Windows I suggest to use MiKTeX (http://miktex.org/);

 - ImageMagick (http://www.imagemagick.org/);

- Ghostscript (http://sourceforge.net/projects/ghostscript/).

Then you have to edit the file /shared/config/tce_latex.php to match your system settings. ( main settings shown below)

 

/**

 

* Path to LATEX (/usr/bin/latex).

 

*/

define (‘K_LATEX_PATH_LATEX’, ‘C:/Progra~1/MiKTeX~1.9/miktex/bin/latex.exe’);

/**

* Path to DVIPS (/usr/bin/dvips).

*/

define (‘K_LATEX_PATH_DVIPS’, ‘C:/Progra~1/MiKTeX~1.9/miktex/bin/dvips.exe’);

/**

* Path to ImageMagick convert (/usr/bin/convert).

*/

define (‘K_LATEX_PATH_CONVERT’, ‘C:/Progra~1/imagem~1.4-q/convert.exe’);

/**

* Path to ImageMagick identify (/usr/bin/identify).

*/

define (‘K_LATEX_PATH_IDENTIFY’, ‘C:/Progra~1/imagem~1.4-q/identify.exe’);

 

Finally you can check the working by clicking Preview

 

Sample equations in latex available at : http://www.mayer.dial.pipex.com/latexrender/latexrender.htm

 

If you make any mistake in above configuration you will get following error message :

ERROR: unlink(E:/tcexam/cache/8e9f22434774cce976973717448380b4.ps) : No such
file or directory | LINE: 442 | FILE:
E:\tcexam\shared\code\tce_latexrender.php
ERROR: unlink(E:/tcexam/cache/8e9f22434774cce976973717448380b4.png) : No such
file or directory | LINE: 443 | FILE:
E:\tcexam\shared\code\tce_latexrender.php