|
25 | 25 | set document(title: title, author: authors.map(author => author.name))
|
26 | 26 |
|
27 | 27 | // Set the body font.
|
| 28 | + // set text(font: "Times New Roman", size: 10pt) |
| 29 | + // set text(font: "New Computer Modern", size: 10pt) |
28 | 30 | set text(font: "STIX Two Text", size: 10pt)
|
29 | 31 |
|
30 | 32 | // Configure the page.
|
31 | 33 | set page(
|
32 | 34 | paper: paper-size,
|
33 |
| - header: header, |
34 | 35 | // The margins depend on the paper size.
|
35 | 36 | margin: if paper-size == "a4" {
|
36 | 37 | (x: 41.5pt, top: 80.51pt, bottom: 89.51pt)
|
|
41 | 42 | bottom: (64pt / 279mm) * 100%,
|
42 | 43 | )
|
43 | 44 | },
|
| 45 | + header: header, |
| 46 | + // Show copyright only ont the first page |
| 47 | + footer: locate(loc => { |
| 48 | + let page-counter = counter(page) |
| 49 | + if page-counter.at(loc).first() == 1 [ |
| 50 | + #set align(center) |
| 51 | + #set text(8pt) |
| 52 | + 979-8-3503-2934-6/23/\$31.00 ©2023 IEEE |
| 53 | + ] |
| 54 | + }), |
44 | 55 | )
|
45 | 56 |
|
46 | 57 | // Configure equation numbering and spacing.
|
47 |
| - set math.equation(numbering: "(1)") |
| 58 | + set math.equation(numbering: "(1)", supplement: []) |
48 | 59 | show math.equation: set block(spacing: 0.65em)
|
49 | 60 |
|
| 61 | + // Configure figures and tables. |
| 62 | + set figure(supplement: []) |
| 63 | + show figure: it => { |
| 64 | + set text(8pt) |
| 65 | + set align(center) |
| 66 | + if it.kind == image [ |
| 67 | + #box[ |
| 68 | + #it.body |
| 69 | + #v(10pt, weak: true) |
| 70 | + Fig#it.caption |
| 71 | + ] |
| 72 | + ] else if it.kind == table [ |
| 73 | + #box[ |
| 74 | + Table#it.caption |
| 75 | + #v(10pt, weak: true) |
| 76 | + #it.body |
| 77 | + ] |
| 78 | + ] else [ |
| 79 | + ... |
| 80 | + ] |
| 81 | + } |
| 82 | + |
50 | 83 | // Configure appearance of equation references
|
51 | 84 | show ref: it => {
|
52 | 85 | if it.element != none and it.element.func() == math.equation {
|
|
61 | 94 | }
|
62 | 95 | }
|
63 | 96 |
|
| 97 | + // Configure Tables |
| 98 | + // set table(stroke: 0.5pt) |
| 99 | + // show table: set text(8pt) |
| 100 | + |
64 | 101 | // Configure lists.
|
65 | 102 | set enum(indent: 10pt, body-indent: 9pt)
|
66 | 103 | set list(indent: 10pt, body-indent: 9pt)
|
|
114 | 151 |
|
115 | 152 | // Display the paper's title.
|
116 | 153 | v(3pt, weak: true)
|
117 |
| - align(center, text(18pt, title)) |
| 154 | + align(center, text(22pt, title)) |
118 | 155 | v(8.35mm, weak: true)
|
119 | 156 |
|
120 | 157 | // Display the authors list.
|
121 |
| - for i in range(calc.ceil(authors.len() / 3)) { |
122 |
| - let end = calc.min((i + 1) * 3, authors.len()) |
| 158 | + for i in range(calc.ceil(authors.len() / 4)) { |
| 159 | + let end = calc.min((i + 1) * 4, authors.len()) |
123 | 160 | let is-last = authors.len() == end
|
124 |
| - let slice = authors.slice(i * 3, end) |
| 161 | + let slice = authors.slice(i * 4, end) |
125 | 162 | grid(
|
126 | 163 | columns: slice.len() * (1fr,),
|
127 | 164 | gutter: 12pt,
|
|
139 | 176 | if "email" in author [
|
140 | 177 | \ #link("mailto:" + author.email)
|
141 | 178 | ]
|
| 179 | + if "git" in author [ |
| 180 | + \ #author.git |
| 181 | + ] |
142 | 182 | })),
|
143 | 183 | )
|
144 | 184 |
|
|
155 | 195 |
|
156 | 196 | // Display abstract and index terms.
|
157 | 197 | if abstract != none [
|
158 |
| - #set text(weight: 700) |
| 198 | + // #set par(leading: 0.5em) |
| 199 | + #set text(weight: 700, size: 9pt) |
159 | 200 | #h(1em) _Abstract_---#abstract
|
160 | 201 |
|
161 | 202 | #if index-terms != () [
|
| 203 | + #v(9pt) |
| 204 | + #set text(weight: 700, size: 9pt, style: "italic") |
162 | 205 | #h(1em)_Index terms_---#index-terms.join(", ")
|
163 | 206 | ]
|
164 | 207 | #v(2pt)
|
|
0 commit comments