Skip to content

Commit 9ec7902

Browse files
author
Moritz Jörg
committed
fix: cleanup template and add git username field
1 parent a93ab7b commit 9ec7902

File tree

2 files changed

+62
-13
lines changed

2 files changed

+62
-13
lines changed

main.typ

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#import "template.typ": *
22
#import "@preview/tablex:0.0.8": tablex, rowspanx, colspanx
33
#show: uit_template.with(
4-
title: [Assignment template using IEEEtran.cls for IEEE Journals and Transactions],
4+
title: [Assignment template using IEEE-style for Journals and Transactions],
55
abstract: [
66
This document describes the most common article elements and how to use the
77
IEEEtran class with Typst to produce files that are suitable for submission to
@@ -25,6 +25,7 @@
2525
organization: [UiT Artic University of Tromsø],
2626
location: [Tromsø, Norway],
2727
28+
git: "abc",
2829
),),
2930
index-terms: (
3031
"Assignment submission",
@@ -120,16 +121,20 @@ address space while still ensuring that no other processes can access its data
120121
Using figures in technical backgrounds is encouraged. Usually you want to have
121122
figures/images as scalable vector graphics\(svg),especially for your graphs, but
122123
sometimes that is not doable and you can use i.e. portable network
123-
graphics\(png) or similar. The following snippet shows how to import figures.
124+
graphics\(png) or similar.
125+
126+
#v(12pt)
127+
128+
The following snippet shows how to import figures.
124129

125130
#figure(
126-
image("figures/jetson_nx.png", width: 80%),
131+
image("figures/jetson_nx.png", width: 89%),
127132
caption: [Block diagram of the Jetson Xavier NX],
128133
) <fig:block_diagram>
129134

130135
#figure(
131-
image("figures/NVSD_VDD_IN.svg", width: 80%),
132-
caption: [Total power consumption compared between NAS and SD-Card. _Note_ the
136+
image("figures/NVSD_VDD_IN.svg", width: 89%),
137+
caption: [Total power consumption compared between NAS and SD-Card. / _Note_ the
133138
NAS-experiment did not complete in time, and the measurements for the NAS is fit
134139
to the SD-card measurements],
135140
) <fig:local_nas_sd_compare>
@@ -210,7 +215,8 @@ You should present the results of your tests here, either using an illustration
210215
and/or a table of results. These will be valuable in the discussion section. The
211216
following is an example for how to format a table of results in Typst.
212217

213-
// TODO: Table here
218+
#v(12pt)
219+
214220
#figure(
215221
tablex(
216222
columns: 7,

template.typ

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
set document(title: title, author: authors.map(author => author.name))
2626

2727
// Set the body font.
28+
// set text(font: "Times New Roman", size: 10pt)
29+
// set text(font: "New Computer Modern", size: 10pt)
2830
set text(font: "STIX Two Text", size: 10pt)
2931

3032
// Configure the page.
3133
set page(
3234
paper: paper-size,
33-
header: header,
3435
// The margins depend on the paper size.
3536
margin: if paper-size == "a4" {
3637
(x: 41.5pt, top: 80.51pt, bottom: 89.51pt)
@@ -41,12 +42,44 @@
4142
bottom: (64pt / 279mm) * 100%,
4243
)
4344
},
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+
}),
4455
)
4556

4657
// Configure equation numbering and spacing.
47-
set math.equation(numbering: "(1)")
58+
set math.equation(numbering: "(1)", supplement: [])
4859
show math.equation: set block(spacing: 0.65em)
4960

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+
5083
// Configure appearance of equation references
5184
show ref: it => {
5285
if it.element != none and it.element.func() == math.equation {
@@ -61,6 +94,10 @@
6194
}
6295
}
6396

97+
// Configure Tables
98+
// set table(stroke: 0.5pt)
99+
// show table: set text(8pt)
100+
64101
// Configure lists.
65102
set enum(indent: 10pt, body-indent: 9pt)
66103
set list(indent: 10pt, body-indent: 9pt)
@@ -114,14 +151,14 @@
114151

115152
// Display the paper's title.
116153
v(3pt, weak: true)
117-
align(center, text(18pt, title))
154+
align(center, text(22pt, title))
118155
v(8.35mm, weak: true)
119156

120157
// 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())
123160
let is-last = authors.len() == end
124-
let slice = authors.slice(i * 3, end)
161+
let slice = authors.slice(i * 4, end)
125162
grid(
126163
columns: slice.len() * (1fr,),
127164
gutter: 12pt,
@@ -139,6 +176,9 @@
139176
if "email" in author [
140177
\ #link("mailto:" + author.email)
141178
]
179+
if "git" in author [
180+
\ #author.git
181+
]
142182
})),
143183
)
144184

@@ -155,10 +195,13 @@
155195

156196
// Display abstract and index terms.
157197
if abstract != none [
158-
#set text(weight: 700)
198+
// #set par(leading: 0.5em)
199+
#set text(weight: 700, size: 9pt)
159200
#h(1em) _Abstract_---#abstract
160201

161202
#if index-terms != () [
203+
#v(9pt)
204+
#set text(weight: 700, size: 9pt, style: "italic")
162205
#h(1em)_Index terms_---#index-terms.join(", ")
163206
]
164207
#v(2pt)

0 commit comments

Comments
 (0)