in reply to Re^3: PDL Book as epub?
in thread PDL Book as epub?

Using LaTeX to generate HTML & ePUB from POD is quite a costly detour.

It's like putting a cake into a freight container and shipping it via Hong Kong, instead of ringing the bell at your neighbors door.

It's not only in magnitudes slower and resource hungry, it's also more prone to cause problems in the long run.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^5: PDL Book as epub?
by karlgoethebier (Abbot) on Aug 10, 2024 at 17:58 UTC

    The command i provided doesn’t use LaTeX - it creates an intermediate tex-file (pod2latex is a Perl script). This is very practical because, as far as I know, you can't create an epub directly from pod with pandoc. But there is Pod::Markdown and Markdown plays nicely with pandoc. See the pandoc book example for further information. Furthermore, I think that LaTeX is unproblematic once you have found the right header - which only takes 3-4 years.

      > it creates an intermediate tex-file

      TeX is effectively a programming language, LaTeX just the most common extension.

      I doubt Pandoc is reimplementing Tex and only reading the code...

      But who knows where the line is drawn.

      > But there is Pod::Markdown and Markdown plays nicely with pandoc.

      Yes, that's why I mentioned already the lightweight formats.

      All these solutions might create an ePUB in the end.

      But could heavily vary on the features supported. Like chapter structure and TOC, etc...

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery