Boston University
Mathematics and Statistics
Mathematics and Statistics
Overview People Courses Programs of Study Seminars Special Programs Events Research Jobs
Mathematics and Statistics
Top
Back
Next
 




Converters

Converters are applications that will take a file in a certain format and convert it into HTML so it can be viewed on the Web. Some useful ones available on the Math Department's UNIX machines are LaTeX2HTML and Asc2HTML.

The LaTeX2HTML converter does exactly what it's name suggests. It takes a LaTeX file and converts it into an HTML file. To use it, just type at your UNIX prompt the word latex2html followed by the name of the file that you want to convert to HTML. For example, if I want to convert the file called ``class2.tex" to HTML, this is what I would type:
math larock % latex2html class2.tex

Note that this does not overwrite the class2.tex file. LaTeX2HTML will actually create a directory called class2 and put all of the files that it generates in that directory. Also, in this directory will be a file called ``class2.html." This is the file that you should make a link to from your Web page. The entire class2 directory will need to be in your Web directory with the correct permissions.

The Asc2HTML converter will take an ASCII (text) file and convert it to HTML. ASCII files are files that are created with a text editor such as emacs or vi. Using Asc2HTML will output the HTML conversion to the standard output, typically your screen. You will need to redirect the output to a file. For example, if I had a file called homework, and wished to convert it to HTML, I would type the following:

math larock % asc2html homework > homework.html

This will create a file called ``homework.html'' with the HTML syntax. This file will need to be in your Web directory with the correct permissions.



Next: About this document

Previous: Help Using the


 
September 2004
Mathematics and Statistics
Boston University