summaryrefslogtreecommitdiff
path: root/comp
diff options
context:
space:
mode:
Diffstat (limited to 'comp')
-rw-r--r--comp/lucas-standen-NEA/writeup/coverpage.ms3
-rw-r--r--comp/lucas-standen-NEA/writeup/coverpage.ps15
-rwxr-xr-xcomp/lucas-standen-NEA/writeup/make.sh4
-rw-r--r--comp/lucas-standen-NEA/writeup/questions-for-amy.ps2
-rw-r--r--comp/lucas-standen-NEA/writeup/recipe.toml38
5 files changed, 54 insertions, 8 deletions
diff --git a/comp/lucas-standen-NEA/writeup/coverpage.ms b/comp/lucas-standen-NEA/writeup/coverpage.ms
index 2aced24..54e4746 100644
--- a/comp/lucas-standen-NEA/writeup/coverpage.ms
+++ b/comp/lucas-standen-NEA/writeup/coverpage.ms
@@ -276,7 +276,7 @@ When you solve that expression you know to start with (2 * 4), then 3 - the answ
We can represent the steps as a tree like so:
-.PSPIC ast.ps
+.PSPIC ast.ps
.PP
As you can see, you need to evaluate the expression in the most brackets first, then the next, and
@@ -379,6 +379,7 @@ int exec(ast_node *exp){
The rest of the code is the process of converting the string input to litteral values and inserting
them into the AST
+
.NH 1
Design
.NH 1
diff --git a/comp/lucas-standen-NEA/writeup/coverpage.ps b/comp/lucas-standen-NEA/writeup/coverpage.ps
index dc31d12..f328a24 100644
--- a/comp/lucas-standen-NEA/writeup/coverpage.ps
+++ b/comp/lucas-standen-NEA/writeup/coverpage.ps
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.23.0
-%%CreationDate: Mon May 6 09:44:52 2024
+%%CreationDate: Mon May 6 10:51:43 2024
%%DocumentNeededResources: font Times-Bold
%%+ font Times-Italic
%%+ font Times-Roman
@@ -8,7 +8,7 @@
%%DocumentSuppliedResources: file ast.ps
%%+ procset grops 1.23 0
%%LanguageLevel: 2
-%%Pages: 7
+%%Pages: 8
%%PageOrder: Ascend
%%DocumentMedia: Default 612 792 0 () ()
%%Orientation: Portrait
@@ -2232,9 +2232,14 @@ E(xp->realRight;)-.15 E(if \(e)131 420 Q(xp->operation == MUL\))-.15 E
540 Q .851(The rest of the code is the process of con)111 576 R -.15(ve)
-.4 G .85(rting the string input to litteral v).15 F .85
(alues and inserting)-.25 F(them into the AST)111 588 Q/F1 10
-/Times-Bold@0 SF 2.5(2. Design)111 624 R 2.5(3. T)111 648 R
-(echnical Solution)-.92 E 2.5(4. T)111 672 R(esting)-.92 E 2.5(5. Ev)111
-696 R(aluation)-.1 E 0 Cg EP
+/Times-Bold@0 SF 2.5(2. Design)111 636 R 2.5(3. T)111 660 R
+(echnical Solution)-.92 E 2.5(4. T)111 684 R(esting)-.92 E 2.5(5. Ev)111
+708 R(aluation)-.1 E 0 Cg EP
+%%Page: 8 8
+%%BeginPageSetup
+BP
+%%EndPageSetup
+/F0 10/Times-Roman@0 SF(-8-)300.17 48 Q 0 Cg EP
%%Trailer
end
%%EOF
diff --git a/comp/lucas-standen-NEA/writeup/make.sh b/comp/lucas-standen-NEA/writeup/make.sh
index 0d92a25..13cb483 100755
--- a/comp/lucas-standen-NEA/writeup/make.sh
+++ b/comp/lucas-standen-NEA/writeup/make.sh
@@ -1,8 +1,10 @@
#!/bin/bash
for i in $(ls | grep .ms); do
- groff -ms $i -T ps > $(echo $i | cut -f1 -d".").ps
+ groff -ms $i -Tps > $(echo $i | cut -f1 -d".").ps
ps2pdf $(echo $i | cut -f1 -d".").ps
+ pdftocgen coverpage.pdf < recipe.toml | pdftocio coverpage.pdf
+ mv coverpage_out.pdf coverpage.pdf
done
if [ "$(tty)" = "/dev/tty1" ]; then
diff --git a/comp/lucas-standen-NEA/writeup/questions-for-amy.ps b/comp/lucas-standen-NEA/writeup/questions-for-amy.ps
index 32c74d1..69f08d5 100644
--- a/comp/lucas-standen-NEA/writeup/questions-for-amy.ps
+++ b/comp/lucas-standen-NEA/writeup/questions-for-amy.ps
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.23.0
-%%CreationDate: Mon May 6 09:44:53 2024
+%%CreationDate: Mon May 6 10:51:43 2024
%%DocumentNeededResources: font Times-Bold
%%+ font Times-Roman
%%DocumentSuppliedResources: procset grops 1.23 0
diff --git a/comp/lucas-standen-NEA/writeup/recipe.toml b/comp/lucas-standen-NEA/writeup/recipe.toml
new file mode 100644
index 0000000..898b12f
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup/recipe.toml
@@ -0,0 +1,38 @@
+[[heading]]
+# NEA cover page
+level = 1
+greedy = true
+font.name = "Times-Bold"
+font.size = 12.0
+# font.size_tolerance = 1e-5
+# font.color = 0x000000
+# font.superscript = false
+# font.italic = false
+# font.serif = true
+# font.monospace = false
+# font.bold = true
+# bbox.left = 264.4620056152344
+# bbox.top = 113.74666595458984
+# bbox.right = 347.53759765625
+# bbox.bottom = 125.74666595458984
+# bbox.tolerance = 1e-5
+
+[[heading]]
+# 1.1. The current problem
+level = 2
+greedy = true
+font.name = "Times-Bold"
+font.size = 10.0
+# font.size_tolerance = 1e-5
+# font.color = 0x000000
+# font.superscript = false
+# font.italic = false
+# font.serif = true
+# font.monospace = false
+# font.bold = true
+# bbox.left = 110.99996948242188
+# bbox.top = 253.2888946533203
+# bbox.right = 220.6298828125
+# bbox.bottom = 263.28887939453125
+# bbox.tolerance = 1e-5
+