Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a2eb8b

Browse files
committed
Pdf readme
1 parent 2e043ea commit 7a2eb8b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
// Usage: node test.js
2+
// Usage: node parse.js
33
// Script that creates index.html out of web/template.html and README.md.
44
// It is written in JS because this code used to be executed on the client side.
55
// To install dependencies run:

pdf/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ Printing to PDF
1616
* Then replace the index and footer with contents of `pdf/index_for_pdf.html` file and save.
1717
* Disable internet connection and open the file in Chrome with 'Cache killer' extension enabled.
1818
* 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%.
19+
* Change the brightness of text to 13%.
1920
* 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).
2021
* Check if plots were rendered correctly.
2122

2223
### PDF optimized for laser color printing
2324
* Run `./parse.js` again.
24-
* Change all links in text to normal text and add a page number in brackets like that: '(p. <num>)' by running 'pdf/remove_links.py' (Links can be found with this regex: `<strong>.*a href.*</strong>`).
25+
* Change all links in text to normal text and add a page number in brackets like that: '(p. <page_num>)' by running './pdf/remove_links.py' (Links can be found with this regex: `<strong>.*a href.*</strong>`).
2526
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
2627
* Then replace the index and footer with contents of `pdf/index_for_pdf_print.html` file.
2728
* Save.

0 commit comments

Comments
 (0)