mirror of
https://github.com/Zenithsiz/ist-ddrs-lab3.git
synced 2026-02-03 05:57:12 +00:00
Initial commit.
This commit is contained in:
commit
786865ec60
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Auto-generated
|
||||
typst/**/*.pdf
|
||||
output/
|
||||
Rplots.pdf
|
||||
code/target/
|
||||
|
||||
# Exceptions
|
||||
!guide.pdf
|
||||
9
.lintr
Normal file
9
.lintr
Normal file
@ -0,0 +1,9 @@
|
||||
linters: linters_with_defaults(
|
||||
line_length_linter(120),
|
||||
# We want to be able to do names like `λ1`
|
||||
object_name_linter = NULL,
|
||||
# We want to comment in between `if` and `else` sometimes
|
||||
brace_linter = NULL,
|
||||
# Useful during development
|
||||
commented_code_linter = NULL
|
||||
)
|
||||
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"byrow",
|
||||
"objval"
|
||||
]
|
||||
}
|
||||
BIN
images/tecnico-logo.png
(Stored with Git LFS)
Normal file
BIN
images/tecnico-logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
32
typst/cover.typ
Normal file
32
typst/cover.typ
Normal file
@ -0,0 +1,32 @@
|
||||
#import "util.typ": course, title, degree, authors, group
|
||||
|
||||
#align(center)[
|
||||
#image("/images/tecnico-logo.png", width:70%)
|
||||
#v(4em)
|
||||
]
|
||||
|
||||
#align(center)[
|
||||
#block(text(weight: 600, 2em, course))
|
||||
#v(8em, weak: true)
|
||||
|
||||
#block(text(weight: 600, 1.75em, title))
|
||||
#v(3em, weak: true)
|
||||
|
||||
#block(text(weight: 600, 1em, degree))
|
||||
#v(4em, weak: true)
|
||||
|
||||
#pad(
|
||||
top: 0.5em,
|
||||
bottom: 0.5em,
|
||||
x: 2em,
|
||||
grid(
|
||||
columns: (1fr,) * calc.min(3, authors.len()),
|
||||
gutter: 1em,
|
||||
..authors.map(author => text(weight: 600, author)),
|
||||
),
|
||||
)
|
||||
#v(2em, weak: true)
|
||||
|
||||
#block(text(weight: 600, 1em, group))
|
||||
#v(1em, weak: true)
|
||||
]
|
||||
46
typst/main.typ
Normal file
46
typst/main.typ
Normal file
@ -0,0 +1,46 @@
|
||||
#import "/typst/util.typ" as util
|
||||
|
||||
#set document(
|
||||
author: util.authors,
|
||||
title: util.title,
|
||||
date: none
|
||||
)
|
||||
#set page(
|
||||
header: locate(loc => if loc.page() > 1 {
|
||||
image("/images/tecnico-logo.png", height: 30pt)
|
||||
}),
|
||||
footer: locate(loc => if loc.page() > 1 {
|
||||
align(center, counter(page).display())
|
||||
}),
|
||||
)
|
||||
#set text(
|
||||
font: "Linux Libertine",
|
||||
lang: "en",
|
||||
)
|
||||
#set par(
|
||||
justify: true,
|
||||
)
|
||||
#set math.equation(
|
||||
numbering: "(1)",
|
||||
)
|
||||
#set math.mat(
|
||||
delim: "[",
|
||||
|
||||
)
|
||||
#show figure: set block(breakable: true)
|
||||
#show link: underline
|
||||
|
||||
#include "cover.typ"
|
||||
#pagebreak()
|
||||
|
||||
#hide[= Table of contents]
|
||||
|
||||
#outline(title: "Table of contents", indent: 1em)
|
||||
#pagebreak()
|
||||
|
||||
#hide[= Figures]
|
||||
|
||||
#outline(title: "Figures", target: figure)
|
||||
#pagebreak()
|
||||
|
||||
= Exercises
|
||||
25
typst/util.typ
Normal file
25
typst/util.typ
Normal file
@ -0,0 +1,25 @@
|
||||
#let title = "Lab report 3 - TODO"
|
||||
#let degree = "Master's Programme in Communication Networks Engineering"
|
||||
#let course = "Performance Evaluation and Dimensioning of Networks and Systems"
|
||||
|
||||
#let authors = (
|
||||
"Filipe Rodrigues - 96735",
|
||||
"Ricardo Rodrigues - 96764",
|
||||
)
|
||||
#let group = "Group 2"
|
||||
|
||||
/// Displays a figure of code
|
||||
#let code_figure(body, ..rest) = {
|
||||
figure(
|
||||
body,
|
||||
kind: "code",
|
||||
supplement: "Code",
|
||||
..rest,
|
||||
)
|
||||
}
|
||||
|
||||
/// Indented paragraph
|
||||
#let indent_par(body, indent: 1em) = {
|
||||
h(indent)
|
||||
body
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user