View Single Post
Old 04-27-2019, 08:50 PM   #8
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by ZioNemo View Post
I am trying to convert a novel I wrote (in Italian) from current PDF format to any format suitable for self-publishing on Amazon (I assume ebook, mobi and azw3 are ok).

I wrote novel in LaTeX and thus I have full (?) control on PDF generation.
I tried to find a way to directly generate [x]html, but I failed because of fonts I'm using.
For LaTeX -> HTML, there are a handful of different tools/workflows.

Depending on how complicated the code of your book is, some of these may work better than others:
  • tex4ebook
  • LaTeXML
  • htlatex
  • pandoc

As you mentioned, pandoc is okay for trivial LaTeX->HTML conversions, but more complicated text (especially macro-heavy) will break.

There's lots of information on the TeX Stack Exchange. Here's some of the latest discussions:

Use LaTeX to produce Epub
LaTeX document to epub or mobi ebook formats (with mathematical formulas)

There's also a few older discussions:

Use LaTeX to produce Epub
https://www.mobileread.com/forums/sh...51#post3800751

where these tools are mentioned:
  • plastex
  • tex2ebook.py
  • tex4ht

Perhaps you'll have better luck with some of those other tools.

Although note, some of these tools haven't been updated in quite a long while.

Quote:
Originally Posted by ZioNemo View Post
I am at a loss to understand what went wrong (apparently some iso-8859 char slipped in, but that's not in my source!) or even to map "position 799750" to a specific location in my text.
What document class are you using (book, memoir, koma-script, [...])?

Is your source document UTF-8?

What are you using to compile (pdfLaTeX, LuaLaTeX, XeLaTeX, [...])?

Last edited by Tex2002ans; 04-27-2019 at 09:01 PM.
Tex2002ans is offline   Reply With Quote