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

> pod2latex

Latex is excellent for typesetting and PDF.

But in this case I'd rather go for one of the "Lightweight markup formats" supported by Pandoc -> https://pandoc.org/

See also https://pod-pandoc.readthedocs.io/en/latest/Pod-Pandoc.html

But still anything involving pod2html is for me the way of minimum loss to go for, because the POD in question was designed to create HTML in the first place. And ePUB is mostly HTML

And there is even a cpan project for this App::Pod2Epub

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

Replies are listed 'Best First'.
Re^3: PDL Book as epub?
by karlgoethebier (Abbot) on Aug 09, 2024 at 14:44 UTC
      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

        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.