Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Feb 21, 2010 #1
    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?
  2. jcsd
  3. Feb 22, 2010 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    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 (Text):

    $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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook