2

Basically, what I want to do is download one of the online textbooks I use for school (already dealt with) with each page as a .txt file so I can read my textbook on my e-reader instead of my computer. Anyway, so I couldn't find any good tutorials/I didn't know what to look for on how to make a basic ebook which consists of plain text and chapters so that's why I'm here!

TL;DR: I want to make a basic ebook with each page as simple text and with chapters.

1 Answer 1

0

Pandoc can convert from and to a large number of formats:

  • It can read plain text, Markdown, CommonMark, PHP Markdown Extra, GitHub-Flavored Markdown, MultiMarkdown, and (subsets of) Textile, reStructuredText, HTML, LaTeX, MediaWiki markup, TWiki markup, Haddock markup, OPML, Emacs Org mode, DocBook, txt2tags, EPUB, ODT and Word docx
  • it can write plain text, Markdown, CommonMark, PHP Markdown Extra, GitHub-Flavored Markdown, MultiMarkdown, reStructuredText, XHTML, HTML5, LaTeX (including beamer slide shows), ConTeXt, RTF, OPML, DocBook, OpenDocument, ODT, Word docx, GNU Texinfo, MediaWiki markup, DokuWiki markup, ZimWiki markup, Haddock markup, EPUB (v2 or v3), FictionBook2, Textile, groff man pages, Emacs Org mode, AsciiDoc, InDesign ICML, TEI Simple, and Slidy, Slideous, DZSlides, reveal.js or S5 HTML slide shows. It can also produce PDF output on systems where LaTeX, ConTeXt, or wkhtmltopdf is installed.
  • It can create epub files with chapters see here for instructions.
  • It runs on Linux, Windows & OS-X
  • It is free, gratis & open source
  • You can even point it at a URL and it will do a reasonable job of converting the online resource into an epub.

If are ready to take a little more time on preparation then the python Sphinx document generator can produce EPUB format, organised into chapters, from a number of input formats, including plain text.

  • Also free, gratis & open source
1
  • 1
    Thanks, it works great and the fact that it's command line is terrific, it allows me to integrate it and do another step automatically!
    – tactic
    Feb 11, 2017 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.