This generator works in both Linux and Windows, so check how to install texlive in your OS.
texlive for Linux:
aptitude install texlive texlive-latex-extra
texlive for Windows:
download installer (install-tl-Windows.exe) from https://www.tug.org/texlive/acquire-netinstall.html
git clone https://github.com/Tuan9304/ICPC-Notebook
npm install -g notebook-generator
Usage: notebook-generator ./codes [options]
Auto generate notebooks from your source code
Options:
-V, --version output the version number
-a --author <name> author's name to be added in the notebook
-i --initials <initials> initials of the author to be placed in the upper-right corner of all pages
-o --output <filename> output file for the notebook. (default: "./notebook.pdf")
-s --size <size> font size is allowed 8, 9, 10, 11, 12, 14, 17, 20 pt (default: "10")
-c --columns <amount> number of columns is allowed 2, 3. (default: "2")
-p --paper <size> paper size is allowed letterpaper, a4paper, a5paper. (default: "letterpaper")
-h, --help output usage information
-I --image <source> cover image to be added in the notebook.