Others ⇒ latex to html via oztex?
latex to html via oztex?
Also, if there's any better way to get from LaTeX to html I'd be most interested in knowing. I have a book to put in Amazon's Digital Text Platform, but it requires html.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
latex to html via oztex?
In addition to TtH (which comes with OzTeX), there are several converters from LaTeX to HTML: Hevea, LaTeX2HTML, TeX4ht... You can easily find them googling a little bit. TeX Live (through the MacTeX distribution) provides TeX4ht. This program is used through the command line. There is a simple GUI called SimpleTeX4ht.Also, if there's any better way to get from LaTeX to html I'd be most interested in knowing. I have a book to put in Amazon's Digital Text Platform, but it requires html.
latex to html via oztex?
Hi Juanjo,Juanjo wrote:In addition to TtH (which comes with OzTeX), there are several converters from LaTeX to HTML: Hevea, LaTeX2HTML, TeX4ht... You can easily find them googling a little bit. TeX Live (through the MacTeX distribution) provides TeX4ht. This program is used through the command line. There is a simple GUI called SimpleTeX4ht.Also, if there's any better way to get from LaTeX to html I'd be most interested in knowing. I have a book to put in Amazon's Digital Text Platform, but it requires html.
I tried going directly to TtH but can't get that to work either. I'm not proficient at unix commands so maybe I'm giving it the wrong code. Similar for other packages; it seems all the ones I checked require getting into Terminal and doing a lot of things I don't know how to do. But I'll check out that GUI, thanks!
ADDED LATER: Works great! Only thing is it puts special characters (upside down question mark) for all quote marks and certain letter pairs like "ff", "fi", and "ia", and "--". Without that problem it would be perfect. Thanks again!
BTW, in the meantime I just coded a php script to make one that's good enough for now. Only hitch I ran into was how to do a preg_replace that not only finds a string such as
Code: Select all
<tag>variable text</tag>
latex to html via oztex?
For a simple usage of TtH, copy the binary to the folder where the tex file is, open Terminal, move to that folder (with a cd command line) and launch TtH:
Code: Select all
$ cd folder_name
$ ./tth file_name
Read the adjoint manual of TtH. You should be aware that TtH "understands" many of the core commands of LaTeX, but it skips \usepackage commands and so the commands defined in the packages. You should provide convenient replacements on your own.
In this way, you can compare TtH and TeX4ht and benefit from the best of both.
latex to html via oztex?
Thanks for all your help, Juanjo!Juanjo wrote:I've downloaded the source code of TtH ... Read the adjoint manual of TtH. You should be aware that TtH "understands" many of the core commands of LaTeX, but it skips \usepackage commands and so the commands defined in the packages. You should provide convenient replacements on your own.
...

I have no clue how to provide replacements for \usepackage, but when I figure that out I'll be able to try this.