summary refs log tree commit diff stats
path: root/opencv/cover.tpl.typ
diff options
context:
space:
mode:
authorSudipto Mallick <smlckz@termux-alpine>2024-02-10 12:49:55 +0000
committerSudipto Mallick <smlckz@termux-alpine>2024-02-10 12:49:55 +0000
commit4182a108a01df3aa28009716472f0ef291704866 (patch)
tree8fabeb2d6ddff80b930c02b3d535b5447bbd41dc /opencv/cover.tpl.typ
parent02884d29e4f5aea71364a203dcaecd53600d8aa4 (diff)
downloadzadania-main.tar.gz
Complete DIP assignments main
Diffstat (limited to 'opencv/cover.tpl.typ')
-rw-r--r--opencv/cover.tpl.typ37
1 files changed, 37 insertions, 0 deletions
diff --git a/opencv/cover.tpl.typ b/opencv/cover.tpl.typ
new file mode 100644
index 0000000..d489faa
--- /dev/null
+++ b/opencv/cover.tpl.typ
@@ -0,0 +1,37 @@
+#import "@preview/tablex:0.0.7": tablex, cellx
+#import "/template.typ": apply
+
+#let cover(page-count) = apply(page-numbering: (..nums) => {}, [
+  #set align(center)
+  #v(1in)
+  #set text(font: "Hanken Grotesk")
+  #set text(size: 40pt)
+  University of ---
+  #v(0.5in)
+  #set text(size: 30pt)
+  B.Sc. Honours Semester V --- \
+  Examination 20---
+  #v(0.35in)
+  #set text(font: "Inter", size: 25pt)
+  Practical Assignments \ _on_ \ Digital Image Processing Lab \ using OpenCV and Python
+  #v(1in)
+  #set text(font: "Hanken Grotesk", size: 20pt)
+  #tablex(
+    columns: 2,
+    stroke: none,
+    align: left,
+    gutter: 5pt,
+    [*Roll No.:*], [---],
+    [*Registration No.:*], [---],
+    [*Subject Code:*], [---],
+    [*Paper Code:*], [---],
+    [*Number of pages:*], page-count
+  )
+])
+
+#locate(loc => { 
+  let last-page-number = counter(page).final(loc).first()
+  cover(last-page-number)
+  colbreak()
+})
+