From 9a0089b8dad6ea4214ea421fe48a097cb3458daf Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 27 Jun 2017 19:26:19 +0200 Subject: Paper with ninths and thirds of width marked --- conf/margins/none.yaml | 6 ++++++ conf/settings/graph-paper/ninths.yaml | 8 ++++++++ designs/graph-paper-ninths-a4.yaml | 5 +++++ src/graph-paper.ps.j2 | 10 +++++----- 4 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 conf/margins/none.yaml create mode 100644 conf/settings/graph-paper/ninths.yaml create mode 100644 designs/graph-paper-ninths-a4.yaml diff --git a/conf/margins/none.yaml b/conf/margins/none.yaml new file mode 100644 index 0000000..5f148e7 --- /dev/null +++ b/conf/margins/none.yaml @@ -0,0 +1,6 @@ +margin_top: '0 mm' +margin_bottom: '0 mm' +margin_left: '0 mm' +margin_right: '0 mm' + +border: false diff --git a/conf/settings/graph-paper/ninths.yaml b/conf/settings/graph-paper/ninths.yaml new file mode 100644 index 0000000..54b134c --- /dev/null +++ b/conf/settings/graph-paper/ninths.yaml @@ -0,0 +1,8 @@ +x_len: PageWidth 9 div +y_len: PageWidth 9 div + +x_count: 3 +y_count: 3 + +x_trasl: 0 mm +y_trasl: 0 mm diff --git a/designs/graph-paper-ninths-a4.yaml b/designs/graph-paper-ninths-a4.yaml new file mode 100644 index 0000000..178794f --- /dev/null +++ b/designs/graph-paper-ninths-a4.yaml @@ -0,0 +1,5 @@ +template: graph-paper +paper: a4 +margins: none +theme: thin_lines +settings: ninths diff --git a/src/graph-paper.ps.j2 b/src/graph-paper.ps.j2 index d888a5b..2440bde 100644 --- a/src/graph-paper.ps.j2 +++ b/src/graph-paper.ps.j2 @@ -52,6 +52,11 @@ % ------ Basic settings +% page size: if you change this, you should change the BoundingBox +% in line 4 accordingly (you CAN'T use mm or inch over there) +/PageWidth {{ page_width }} def +/PageHeight {{ page_height }} def + /SquaXLen {{ x_len }} def % hor spacing between lines /SquaYLen {{ y_len }} def % ver spacing between lines @@ -70,11 +75,6 @@ /BackColo {{ background_color }} def % background color -% page size: if you change this, you should change the BoundingBox -% in line 4 accordingly (you CAN'T use mm or inch over there) -/PageWidth {{ page_width }} def -/PageHeight {{ page_height }} def - % white margins /BorderTop {{ margin_top }} def /BorderBottom {{ margin_bottom }} def -- cgit v1.2.3