I chose to use Pandoc and make everything work from there. I wanted to do the simplest thing possible to write a book. It also outputs to really nice looking PDFs. The HTML output looks like GitBook with a couple of added features like embedding R code output like diagrams.
MACDOWN PDF EXPORT PAGE NUMBERS HOW TO
You can write a book with the package without actually writing or knowing how to program in R though. BookDownīookDown is an R package, so you will need to install R and be somewhat familiar with how R packages work and how to run R programs. There is no output to epub or mobi and the project seems abandoned on GitHub. When looking for some options to write a book I found two projects that almost fit my needs.
code syntax highlighting (because I am writing a technical programming book).My requirements for writing a book are the following: Their posts say something like, “I wrote this book and made a billion dollars on my first day.” Then they tell you how they did it, except they leave out all the details like how do you make a nice looking PDF and epub.
On twitter I have seen developers selling ebooks and making good money. I am going to detail my process and gotchas of writing a book with markdown. I have been working on my book Learn Elm by Example – Build a calculator and have developed several scripts to generate PDF and epub from markdown files.