short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown
--> PDF
(as a booklet!)
Markdown
--> EPUB
and MOBI
I'm working on a book, "Debugging Your Brain" which I plan to self-publish. I'm writing the chapters in Markdown, and I want to have it both printed on paperback and available as an eBook on Kindle etc. Here are the tools I used to get my markdown files (from my Jekyll based blog) into the PDF, EPUB, and MOBI formats.
pandoc
is a command line tool used to convert from certain file types to other file typeslatex
is a typesetting language / software used to make pdfs. I've seen this used most often in academia that uses equations, like math, physics, and computer science classes in undergraduate.epub
is the standard eBook format. As far as I've seen, this is used by everything except Kindle.mobi
is Kindle's eBook format. We'll use kindle's command line tool to convert an epub to mobi.
pandoc is the main tool to convert markdown to other things.
Here is their official page with installation instructions: https://pandoc.org/installing.html#linux
To install an older version just to get you running:
sudo apt-get update
sudo apt-get install pandoc
To install a more recent version instead, copy the url to the latest .deb
package from THIS PAGE and download and install it using something like this:
curl -L https://github.com/jgm/pandoc/releases/download/2.10/pandoc-2.10-1-amd64.deb > pandocinstaller.deb
sudo dpkg -i pandocinstaller.deb
Amazon Royalties: https://blog.reedsy.com/amazon-self-publishing-royalties/ https://kdp.amazon.com/en_US/help/topic/G201834330