[OS X TeX] TeX to word on Mac

Herbert Schulz herbs at wideopenwest.com
Sun Jun 26 16:04:44 CEST 2005

On Jun 25, 2005, at 11:49 PM, George Ghio wrote:

> Open terminal and type;
> Welcome to Darwin!
> George-Ghios-Computer:~ georgeghio$ cd /Users/georgeghio/Desktop/TeX
> Hit return & type
> George-Ghios-Computer:~/Desktop/TeX georgeghio$ htlatex /Users/ 
> georgeghio/Desktop/TeX/TheFlight.tex
> Hit return I then get the html file,
> I then open the html file with Explorer,
> Select all,
> Copy,
> Paste into word.
> If I try to open the html file with word  MS does what it does best  
> and crashes.
> Oh well, it works and I end up with a word document.
> Thank you and everyone else for taking the time to keep me from  
> becoming a basket case.
> George L Ghio


Now that you know how to do it in terminal, here's a way to do it  
from within TeXShop.

Go to the ~/Library/TeXShop/Engines/ folder (~ is your HOME  
directory) and duplicate one of the .engine files there. Rename it  
htlatex.engine and open it up (double clicking will open it up in  
TeXShop). Remove the contents of the file and put the following lines  
into that file:

htlatex "$1"

and save the file (again in ~/Library/TeXShop/engines and with the  
name htlatex.engine).

At the beginning of any .tex file you want to be processed with  
htlatex put the line

%!TEX TS-program = htlatex

and then process the file with Cmd-T (Typeset). As an alternative you  
can simply choose the htlatex engine in the dropdown menu in the  

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the macostex-archives mailing list