[OS X TeX] convert .tex file to .html

Richard Koch koch at math.uoregon.edu
Sat Nov 17 22:25:47 EST 2007


Enrico,

What TeX distribution are you using? If it is TeX Live or gwTeX, then  
TeX4ht should be already installed in the distribution.

The latest version of TeXShop has an "engine" file for \ this program.  
It is in

	~/Library/TeXShop/Engines/Inactive

If you don't find it there, but have TeXShop 2.14, then move the  
entire folder ~/Library/TeXShop/Engines to your desktop. The next time  
TeXShop starts, it will create the default folder, which will include  
a TeX4ht folder and htlatex.engine. To use it, move htlatex.engine  
from the inactive folder to  ~/Library/TeXShop/Engines.

To use this program, enter standard latex source in the Source Window.  
In the pulldown menu next to the Typeset button, select htlatex. When  
you push the Typeset button, your latex source will be typeset and  
then converted to an html file, and this html file will open in Safari.

You can make this happen automatically (without selecting htlatex) by  
entering

	%!TEX TS-program = htlatex

near the top of your source file.

Dick Koch
koch at math.uoregon.edu

On Nov 17, 2007, at 6:36 PM, Enrico Malito wrote:

> Hello,
> I was wondering if is possible to convert a .tex file (created by  
> TexShop) to an html page. I tried by latex2html (installed through  
> fink) but it doesn't seem to work (it complains about missing  
> packages).
> Any hints?
>
> Enrico Malito
> Ben-May Department for Cancer Research
> Center for Integrative Science, W423J
> The University of Chicago,
> 929 E. 57th Street, Chicago, IL, 60637
> Tel: 773-702-4608 Fax: 773-702-6260
> http://home.uchicago.edu/~emalito
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>




More information about the MacOSX-TeX mailing list