Skip to content

Commit

Permalink
Fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
francescoo22 committed Aug 7, 2024
1 parent bd729af commit df1817b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 28 deletions.
16 changes: 14 additions & 2 deletions config/thesis-config.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "../config/constants.typ": chapter
#import "../config/utils.typ": frame-box
#import "@preview/codly:1.0.0": *

#let config(
myAuthor: "Nome cognome",
Expand All @@ -10,6 +10,7 @@
) = {
// Set the document's basic properties.
set document(author: myAuthor, title: myTitle)
show: codly-init.with()
show math.equation: set text(weight: 400)

// LaTeX look (secondo la doc di Typst)
Expand All @@ -20,7 +21,18 @@
set text(font: "New Computer Modern", size: 10pt, lang: myLang)
set heading(numbering: myNumbering)
// show raw.where(block: false): set text(font: "New Computer Modern Mono", size: 10pt, lang: myLang)
show raw.where(block: true): frame-box
show raw.where(block: true): it => {
// #let kt-logo = image("images/Kotlin.svg", width: 200%)
codly(
enabled: true,
languages: (
kt: (name: "Kotlin", color: purple),
java: (name: "Viper", color: orange)
)
)
it
codly-disable()
}
show par: set block(spacing: 0.55em)
show heading: set block(above: 1.4em, below: 1em)

Expand Down
2 changes: 2 additions & 0 deletions preface/acknowledgements.typ
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pagebreak(to:"odd")

#import "../config/variables.typ" : profTitle, myProf, myLocation, myTime, myName
#import "../config/constants.typ" : acknlowledgements

Expand Down
15 changes: 0 additions & 15 deletions preface/dedication.typ

This file was deleted.

2 changes: 2 additions & 0 deletions preface/table-of-contents.typ
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pagebreak(to:"odd")

#import "../config/constants.typ": figuresList, tablesList
#set page(numbering: "i")

Expand Down
1 change: 0 additions & 1 deletion structure.typ
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "./preface/firstpage.typ"
#include "./preface/copyright.typ"
#include "./preface/dedication.typ"
#include "./preface/abstract.typ"
#include "./preface/acknowledgements.typ"
#include "./preface/table-of-contents.typ"
Expand Down
10 changes: 0 additions & 10 deletions thesis.typ
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,4 @@
myLang: myLang
)

// #let kt-logo = image("images/Kotlin.svg", width: 200%)

#show: codly-init.with()
#codly(
languages: (
kt: (name: "Kotlin", color: purple),
java: (name: "Viper", color: orange)
)
)

#include "structure.typ"

0 comments on commit df1817b

Please sign in to comment.