The included Python scripts can generate the notebook in PDF or HTML format. Both scripts read the contents of the notebook from contents.txt.
Requires: Python 2/3, [latexmk] (https://www.ctan.org/pkg/latexmk/)
Script for generating the PDF file is generate_pdf.py.
The LaTeX template that the script uses is notebook.tex. It recognizes common file extensions for C/C++/Java/Python and applies syntax highlighting. In order to change the color scheme or add additional languages, both notebook.tex and generate_pdf.py should be modified accordingly.
Requires: Python 2/3, enscript
Script for generating the HTML file is generate_html.py.
Syntax highlighting is handled solely by enscript, and in order to change the color schemes, either the default options of enscript or generate_html.py should be edited accordingly.