From 4c3cdeb8547d387c2c5520a018a7d0c103351489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 7 Mar 2020 05:19:13 +0100 Subject: [PATCH] Updated pdf instructions --- pdf/how_to_create_pdf.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pdf/how_to_create_pdf.md b/pdf/how_to_create_pdf.md index a8205aa..64f2d7d 100644 --- a/pdf/how_to_create_pdf.md +++ b/pdf/how_to_create_pdf.md @@ -5,34 +5,34 @@ PDF file can also be purchased here: https://transactions.sendowl.com/products/7 Setup ----- * Install Adobe Acrobat Pro DC. -* Copy headers and footers from 'pdf/Adobe/' folder to `/Users//Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`. -* Change date in header and footer element of 'web/template.html'. +* Copy headers and footers from `pdf/Adobe/` folder to `/Users//Library/Preferences/Adobe/Acrobat/DC/HeaderFooter/`. +* Change date in header and footer element of `web/template.html`. * Run `./parse.js` and commit changes. Printing to PDF --------------- ### Normal PDF -* Open 'index.html' in text editor and first remove element '


' before the '

Libraries

'. -* Then replace the footer and last three '
' elements with contents of 'pdf/index_for_pdf.html' file and save. -* Open 'index.html' in Chrome and select 'Print...'. +* Open `index.html` in text editor and first remove element `


` before the `

Libraries

`. +* Then replace the footer and last three `
` elements with contents of `pdf/index_for_pdf.html` file and save. +* Open `index.html` in Chrome and select 'Print...'. * Select destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save. ### PDF optimized for laser color printing * Run `./parse.js` again. -* Open 'index.html' in text editor and first remove element '


' before the '

Libraries

'. -* Then replace the footer and last three '
' elements with contents of 'pdf/index_for_pdf_print.html' file and save. -* Change all links in text to normal text. They can be found with this regex: '.*a href.*'. -* Open 'index.html' in Chrome. +* Open `index.html` in text editor and first remove element `


` before the `

Libraries

`. +* Then replace the footer and last three `
` elements with contents of `pdf/index_for_pdf_print.html` file and save. +* Change all links in text to normal text. They can be found with this regex: `.*a href.*`. +* Open `index.html` in Chrome. * 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. * Change lightness (L) percentage to: * 0% for the text. * 87% for the gray line on the left side of the code. * 89% for the gray hash characters by the titles * 37% for the red text and function names (they use their own red). -* 60% for the blue text and the text in the contents (it uses its own blue), but leave color of decorators and the '>>>' intact. +* 60% for the blue text and the text in the contents (it uses its own blue), but leave color of decorators and the `>>>` intact. * 58% for the comments. -* Individually change brightness of every comment line that starts with: '# $ pip3 install - ...' and of comments in basic script template to 57%, by adding 'color: hsla(0, 0%, 57%, 1);' to their element.style. +* Individually change brightness of every comment line that starts with: `# $ pip3 install + ...` and of comments in basic script template to 57%, by adding `color: hsla(0, 0%, 57%, 1);` to their element.style. * Select 'Print...' and destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save. Adding headers and footers to PDF (the same for both files)