aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-06-27 19:26:19 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-06-27 19:26:19 +0200
commit9a0089b8dad6ea4214ea421fe48a097cb3458daf (patch)
tree7124f035a0579ef0781cbc50b81d160696dcd006
parent5aa63bb167e13148754d4901ba23c6dec09832a2 (diff)
Paper with ninths and thirds of width marked
-rw-r--r--conf/margins/none.yaml6
-rw-r--r--conf/settings/graph-paper/ninths.yaml8
-rw-r--r--designs/graph-paper-ninths-a4.yaml5
-rw-r--r--src/graph-paper.ps.j210
4 files changed, 24 insertions, 5 deletions
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