aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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