NOTE: Look code/template.cpp to unterstand macros in the codes. The python script generate_pdf.pygenerates the notebook in PDF, this script reads the contents of the notebook from contents.txt.