From 36204aa33dbd7ab48271f93dfc94d779d86f5a2e Mon Sep 17 00:00:00 2001 From: Tynan Date: Mon, 31 Oct 2022 10:57:55 -0400 Subject: [PATCH] first pass at typesetting calculator --- typesetting logic.numi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 typesetting logic.numi diff --git a/typesetting logic.numi b/typesetting logic.numi new file mode 100644 index 0000000..3cb35e2 --- /dev/null +++ b/typesetting logic.numi @@ -0,0 +1,19 @@ +//params +lines_per_field = 6 = 6 +lines_per_gutter = 1 = 1 +h_fields = 4 = 4 +v_fields = 6 = 6 +box_height = 452.572 = 452.572 +box_width = 678.858 = 678.858 +h_text = 11.9932 = 11.9932 + +//calcs +lines = lines_per_field * h_fields + lines_per_gutter(h_fields - 1) = 27 +total_text = h_text * lines = 323.8164 +per_line_spacing = (box_height - total_text) / (lines - 1) = 4.9521385 + +//output +leading = per_line_spacing + h_text = 16.9453385 +h_gutter = 2 * per_line_spacing + h_text = 21.8974769 +h_field = (box_height - h_gutter * (h_fields - 1)) / h_fields = 96.7198923 +v_gutter = (box_width - v_fields * h_field) / (v_fields - 1) = 19.7077292 -- 2.51.2