The build system and structure is based on ‘The Book of CP-System’ by Fabien Sanglard, of which this repository is a fork.
cp src/fonts ~/.fonts
fc-cache -f -v
sudo apt-get update
sudo apt install -y golang-go
sudo add-apt-repository universe
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt-get update
sudo apt install inkscape
sudo apt install ghostscript # For trimming the final PDF.
sudo apt install -y texlive-full
go mod init "image/draw"
go get golang.org/x/image/draw
./make.sh release
src/fonts folder)/usr/local/bin or add it to your PATHgo mod init "image/draw"
go get golang.org/x/image/draw
./make.sh release
Building is slow when using 300dpi assets. To develop, the build system generates low dpi assets. Debug is the default mode.
./make.sh debug
./make.sh debug|release -f
If upon compilation the typesetting is “off” with blank pages, it may be that the wrong version of TexLive is used to compile. Run the following command and make sure you have at least version 2020.
$ tex --version
TeX 3.141592653 (TeX Live 2022)
This book is verified to compile properly with TexLive 2020, 2021, and 2022. In case you have an older version, use the following steps to install the lastest.