On 28/06/2024 01:38, Van Snyder wrote:
So, back to trying to find a competent PDF -to- ePub or PDF -to- mobi
converter (I haven't yet tried texmate to create a mobi or ePub from the
LaTeX).
If you seek a solution that allows to get result in a single click then
the following would not help.
I would not spent time trying to find a PDF to ePub converter. Almost
certainly PDF generated by LaTeX is not friendly to them (yet?), it is
for printing.
ePub is a bit special zip archive containing XHTML files that is why, I
think, it is better to concentrate on LaTeX to HTML converters. Be ready
to simplify macros used in your TeX files to make them compatible with a
specific converter. I have never tried TeX4ht, but it may be a better
option than rather old latex2html. Start from a simple document to
identify what TeX macros causes issues with your book.
Almost certainly some tuning is required: styles, math representation. I
have no idea, what is better for ePub: SVG or raster images, MathML.
There is a number of converters to MathML with their specific shortcomings.
I expect that the following site actively uses TeX as original format:
https://dlmf.nist.gov/ NIST Digital Library of Mathematical Functions
If you do not use advanced LaTeX markup then it may be possible to
convert it to Org mode https://orgmode.org/ with reasonable efforts. It
may be converted to HTML using other tools. However some scripting
(Emacs lisp or lua for pandoc) may be required to achieve decent quality
of exported documents.
There are should be some blog posts describing troubles and workarounds.