Skip to content

Commit 4c3cdeb

Browse files
committed
Updated pdf instructions
1 parent 202afa5 commit 4c3cdeb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pdf/how_to_create_pdf.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ PDF file can also be purchased here: https://transactions.sendowl.com/products/7
55
Setup
66
-----
77
* Install Adobe Acrobat Pro DC.
8-
* Copy headers and footers from 'pdf/Adobe/' folder to `/Users/<username>/Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`.
9-
* Change date in header and footer element of 'web/template.html'.
8+
* Copy headers and footers from `pdf/Adobe/` folder to `/Users/<username>/Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`.
9+
* Change date in header and footer element of `web/template.html`.
1010
* Run `./parse.js` and commit changes.
1111

1212
Printing to PDF
1313
---------------
1414
### Normal PDF
15-
* Open 'index.html' in text editor and first remove element '<p><br></p>' before the '<h1>Libraries</h1>'.
16-
* Then replace the footer and last three '<br>' elements with contents of 'pdf/index_for_pdf.html' file and save.
17-
* Open 'index.html' in Chrome and select 'Print...'.
15+
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
16+
* Then replace the footer and last three `<br>` elements with contents of `pdf/index_for_pdf.html` file and save.
17+
* Open `index.html` in Chrome and select 'Print...'.
1818
* Select destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save.
1919

2020
### PDF optimized for laser color printing
2121
* Run `./parse.js` again.
22-
* Open 'index.html' in text editor and first remove element '<p><br></p>' before the '<h1>Libraries</h1>'.
23-
* Then replace the footer and last three '<br>' elements with contents of 'pdf/index_for_pdf_print.html' file and save.
24-
* Change all links in text to normal text. They can be found with this regex: '<strong>.*a href.*</strong>'.
25-
* Open 'index.html' in Chrome.
22+
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
23+
* Then replace the footer and last three `<br>` elements with contents of `pdf/index_for_pdf_print.html` file and save.
24+
* Change all links in text to normal text. They can be found with this regex: `<strong>.*a href.*</strong>`.
25+
* Open `index.html` in Chrome.
2626
* Change brightness of elements by right clicking on 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.
2727
* Change lightness (L) percentage to:
2828
* 0% for the text.
2929
* 87% for the gray line on the left side of the code.
3030
* 89% for the gray hash characters by the titles
3131
* 37% for the red text and function names (they use their own red).
32-
* 60% for the blue text and the text in the contents (it uses its own blue), but leave color of decorators and the '>>>' intact.
32+
* 60% for the blue text and the text in the contents (it uses its own blue), but leave color of decorators and the `>>>` intact.
3333
* 58% for the comments.
34-
* Individually change brightness of every comment line that starts with: '# $ pip3 install
35-
...' and of comments in basic script template to 57%, by adding 'color: hsla(0, 0%, 57%, 1);' to their element.style.
34+
* Individually change brightness of every comment line that starts with: `# $ pip3 install
35+
...` and of comments in basic script template to 57%, by adding `color: hsla(0, 0%, 57%, 1);` to their element.style.
3636
* Select 'Print...' and destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save.
3737

3838
Adding headers and footers to PDF (the same for both files)

0 commit comments

Comments
 (0)