The idea is to automate the process of updating the statutes and rules of procedure as much as possible. The current wokflow is using pandoc to convert markdown source files into LaTeX pdfs. The whole process is automated using Netlify which also makes the files available online.
- Clone the repository.
git clone https://github.com/iflry/statutes.git
cd statutes
- Ensure Pandoc is installed.
On Mac:
brew install pandoc
On Linux:
sudo apt-get install -y pandoc
- Ensure XeLaTeX is installed.
On Mac:
brew install texlive
On Linux
sudo apt-get install -y texlive-xetex texlive-latex-extra
You may also need to install texlive-fonts-extra so that the Fira font is available.
- Build the documents.
pandoc statutes.md -o statutes.pdf --pdf-engine=xelatex --number-sections -V fontsize=11pt -H config/header.tex --lua-filter=config/custom-links.lua
pandoc rules-of-procedure.md -o rules-of-procedure.pdf --pdf-engine=xelatex --number-sections -V fontsize=11pt -H config/header.tex --lua-filter=config/custom-links.lua