From fc4d96a9e3e20f8ddf035c16fc32b1effb75481b Mon Sep 17 00:00:00 2001 From: Sudipto Mallick Date: Sun, 28 Jan 2024 06:38:55 +0000 Subject: Complete all Java assignments --- java/cover.tpl.typ | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 java/cover.tpl.typ (limited to 'java/cover.tpl.typ') diff --git a/java/cover.tpl.typ b/java/cover.tpl.typ new file mode 100644 index 0000000..de38f47 --- /dev/null +++ b/java/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_ \ Object-oriented programming Lab \ using Java + #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() +}) + -- cgit 1.4.1-2-gfad0