Hi Greg,
Just modify your workflow slightly and you are good:
Option 1: use w3m
pandoc -s -t html City_of_Truth-Morrow.epub | w3m -T text/html
Option 2: use man/less
pandoc -t man City_of_Truth-Morrow.epub | man -l -
Option 3, save as html for future use:
pandoc -s -o City_of_Truth-Morrow.html City_of_Truth-Morrow.epub
Saves your epub to html. Whenever you want to view it, use your favorite
browser, i.e. w3m, with all its features.
Option 4: save as man:
pandoc -s -t man -o City_of_Truth-Morrow.man City_of_Truth-Morrow.epub
Whenever you view it, use: man -l City_of_Truth-Morrow.man
- - -
Some notes:
The reason you loose formatting when saving from less(1) or w3m is, that
these programs on purpose do not save the terminal control characters
which are doing the markup. Line breaks and terminal control are created
on demand, depending on the type and size of the terminal (window) and
will display different (weird) when any of this is different from the
terminal you (would have) saved them to a file.
The -s option (--standalone) option for Pandoc is not required for man
page output. For html (and other formats) pandoc outputs only the <body>
content, the -s options wraps this into a complete <html> document.
Best Regards,
Georg