- make a copy of this repository and
cd
into it - put one or both of the ".md" files from the examples directory into the root of your working copy
- type
make
Make sure the name of each ".md" file matches with the name of a HTML file from the "templates" directory. If you want to create a different document type, you'll have to add a new template for it.
If you get an error such as unexpected "("
, make sure your Pandoc version is sufficiently up-to-date. At the time of this writing, the ArchLinux repositories had Pandoc 2.18 and 2.19 had just been released by the project. A bit of an outlier is Solus Linux which is notorious for having a horribly outdated version of Pandoc.
Requires the following in reasonably recent versions:
- GNU Make
- Pandoc
- Chromium or Google Chrome
pacman -Syu base-devel pandoc chromium
sudo apt update && sudo apt install build-essential pandoc chromium
(the below instructions may be out of date - PRs welcome!)
sudo eopkg it -c system.devel
sudo eopkg bi --ignore-safety https://raw.githubusercontent.com/getsolus/3rd-party/master/network/web/browser/google-chrome-stable/pspec.xml
sudo eopkg it google-chrome-*.eopkg ; sudo rm google-chrome-*.eopkg
wget -c https://github.com/jgm/pandoc/releases/download/2.19/pandoc-2.19-linux-amd64.tar.gz # or whatever is the latest
mkdir -p ~/.local/opt
tar -xvzf pandoc-2.19-linux-amd64.tar.gz -C ~/.local/opt ; rm pandoc-2.19-linux-amd64.tar.gz
cd ~/.local/opt ; ln -s pandoc-2.19 pandoc
mkdir -p ~/.local/bin
cd ~/.local/bin
ln -s ~/.local/opt/pandoc/bin/pandoc pandoc
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Because life is too short to learn LaTeX properly and I'm still not willing to start using a WYSIWYG software for correspondence and other needs. Yes, there are similar projects, but I liked different ideas from different people, so here's mine. Also, I wanted a pipeline that uses Markdown together with HTML/CSS templates compiled to HTML using Pandoc and then compiled to PDF using Chromium's headless mode.
Other people's work I looked at and which might interest you as well: