Created
December 14, 2011 09:35
-
-
Save gaurav/1475883 to your computer and use it in GitHub Desktop.
LaTeX to HTML on a Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Find your texbin directory. This is usually /usr/texbin, which is symlinked to wherever the actual directory is. | |
| 2. Add it to your PATH (i.e. `# export PATH=/usr/texbin:$PATH`) | |
| 3. Run the 'htlatex' command. This will convert your LaTeX file into an HTML document. Note that this really just a script around normal LaTeX, so you'll have to do the usual things (htlatex -> bibtex -> htlatex for citations, htlatex -> htlatex for references). I think: I had my LaTeX all PDF-LaTeXed and ready to go, so all the .bib/.toc/etc. files had already been created. | |
| 3.1. You might want to run 'htlatex file.tex "xhtml,fn-in"' if you have footnotes. Without that option, footnotes will be put into their own HTML file. | |
| 4. At this point, you have an HTML file. Check it and make sure it's good enough. | |
| 5. Open the HTML file in TextEdit. Oddly enough, Pages can't open HTML files, but TextEdit can. Go figure. | |
| 6. TextEdit can now save your file as an RTF or Doc file. | |
| 7. Success! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment