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

TeX on Webpage

  1. Dec 28, 2005 #1

    -Job-

    User Avatar
    Science Advisor

    How do thse forums implement the TeX functionality? Did it come with the vBulletin software or is it separate? I want to get a TeX tool on my server but i haven't alot of experience with it. I assume that, in these forums, there is a compiler for TeX which is called by a PHP script producing images which are then linked to the respective posts. Is this the case or is there an actual PHP based TeX compiler script?
     
  2. jcsd
  3. Dec 29, 2005 #2

    -Job-

    User Avatar
    Science Advisor

    After alot of searching and experimenting i ended up downloading MikTeX (for windows), from www.miktex.com. Compiling is a as simple as:
    latex -job-name=<output file's name> <input file's name> -output-directory=<out put directory>

    So now i should be able to call this from a PHP or ASP.NET script and i'll be all set. :smile:
    Except of course that it outputs as a .dvi file, and i want an image, but i'll get around it.
     
  4. Dec 29, 2005 #3

    -Job-

    User Avatar
    Science Advisor

    Yes, there is a dvipng tool which builds a png image from the dvi file. It comes with MikTex, so no extra files to install, you call it with:
    dvipng <path to input dvi file> -o <path to output file>

    So it's a two step process, but it's doable. How cool.
     
  5. Dec 29, 2005 #4

    -Job-

    User Avatar
    Science Advisor

    Yes, it's working!
     
  6. Dec 30, 2005 #5

    James R

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    Seems you solved your own problem.
     
  7. Dec 30, 2005 #6

    -Job-

    User Avatar
    Science Advisor

    I'm still curious how these boards implement it. I think there must be an easier way. For those who are curious, this is what i have:
    http://www.bloo.us/tex/services/previewer.aspx
    It works with the Latex found in posts throughout these forums. I'm thinking of doing a full LaTex editor this coming semester in my independent study class.
     
    Last edited: Dec 31, 2005
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: TeX on Webpage
  1. Tex formatting (Replies: 12)

  2. Tex problems (Replies: 5)

  3. TEX broken? (Replies: 5)

  4. Symbols in TEX (Replies: 4)

  5. [tex] tags (Replies: 2)

Loading...