summary refs log tree commit diff stats
path: root/mysql-php/cover.tpl.typ
blob: de38f47f5d77e7b1b01f73aa0089df9016cc8c13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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()
})