diff --git a/parse.js b/parse.js index c23c909..9835695 100755 --- a/parse.js +++ b/parse.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -// Usage: node test.js +// Usage: node parse.js // Script that creates index.html out of web/template.html and README.md. // It is written in JS because this code used to be executed on the client side. // To install dependencies run: diff --git a/pdf/README.md b/pdf/README.md index 9e6a249..b299c81 100644 --- a/pdf/README.md +++ b/pdf/README.md @@ -16,12 +16,13 @@ Printing to PDF * Then replace the index and footer with contents of `pdf/index_for_pdf.html` file and save. * Disable internet connection and open the file in Chrome with 'Cache killer' extension enabled. * Change brightness of comments by right clicking on one of them and selecting inspect. Then click on the rectangle that represents color and toggle the color space to HSLA by clicking on the button with two vertical arrows. Change lightness (L) percentage to 77%. +* Change the brightness of text to 13%. * Select 'Print...' with destination 'Save as PDF', paper size 'A4', 'Default' margins (top 10mm, right 9.5mm, bottom 8mm and left 10mm), 'Default' scale and no headers and footers and save (the document should be 51 pages long with last page empty). * Check if plots were rendered correctly. ### PDF optimized for laser color printing * Run `./parse.js` again. -* Change all links in text to normal text and add a page number in brackets like that: '(p. )' by running 'pdf/remove_links.py' (Links can be found with this regex: `.*a href.*`). +* Change all links in text to normal text and add a page number in brackets like that: '(p. )' by running './pdf/remove_links.py' (Links can be found with this regex: `.*a href.*`). * Open `index.html` in text editor and first remove element `


` before the `

Libraries

`. * Then replace the index and footer with contents of `pdf/index_for_pdf_print.html` file. * Save.