LaTeX Can I use the Latex code used on this site on mine?

  • Thread starter Thread starter Xyius
  • Start date Start date
  • Tags Tags
    Code Latex
AI Thread Summary
To enable mathematical typesetting on a website, install TeX software like MikTeX and a LaTeX editor such as LED. Additionally, ImageMagick is required for displaying images, along with Ghostscript and GSView. Proper configuration of the web server is essential, including specifying the paths to the LaTeX and ImageMagick executables. For MediaWiki installations, specific settings in the LocalSettings.php file are necessary, such as enabling TeX and defining commands for ImageMagick and LaTeX. It's important to consult the documentation for the software being used, as configurations may vary based on the server environment.
Xyius
Messages
501
Reaction score
4
I really like the math code this site uses to type out the mathematics. Is there a way I can install something on my website server so that I can use it when creating webpages? If so, how?
 
Physics news on Phys.org
You need some TeX software like MikTeX, and a LaTeX editor like LED so that you can make sure that it works, and then you need a program called ImageMagick to display the pictures. And I almost forgot, you need ghostscript and gsview too. (I tried uninstalling them and couldn't generate any new images, but old ones looked fine). You also need to configure your web server to know where the latex and imagemagick executables are. My notes from a MediaWiki installation I did a few years ago (with Apache running on a Windows XP machine) says that I added the following in LocalSettings.php
Code:
$wgUseTeX = true;
$wgImageMagickConvertCommand = "convert.exe";
$wgImageMagickIdentifyCommand = "identify.exe";
$wgLaTexCommand = "latex.exe";
$wgDvipsCommand = "dvips.exe"
But you probably shouldn't just copy and paste this. I'm just showing it to let you know that you need to do something like this, but you may not even be using Apache (or Windows). Read the documentation for the relevant programs, and I think you'll do fine.
 

Similar threads

Back
Top