my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
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.
pandocis a command line tool used to convert from certain file types to other file types
latexis 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.
epubis the standard eBook format. As far as I've seen, this is used by everything except Kindle.
mobiis 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
My Linux Setup
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