Skip to content

Commit

Permalink
fixed heading and v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
remigerme committed Dec 14, 2024
1 parent 9d45af2 commit 60c1a22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions heading.typ
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

// H2 styling
show heading.where(level:2): he => {
box[#{
box()[#{
set text(
size:20pt,
weight: "medium",
Expand All @@ -39,7 +39,6 @@
smallcaps(he)
v(-0.5em)
image("assets/filet-court.svg")
v(0.3em)
}]
}

Expand All @@ -59,18 +58,15 @@

// H4 styling
show heading.where(level: 4): he => {
he
v(0.2em)
counter(heading).display(he.numbering)
he.body
}

// Quick fix for paragraph indentation...
// Any superior entity who might be reading, please forgive me
show heading: he => {
{
set par(first-line-indent: 0pt)
he
}
par()[#text(size: 0em)[#h(0em)]]
}

// Don't forget to return doc cause
Expand Down
2 changes: 1 addition & 1 deletion template/report.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/typographix-polytechnique-reports:0.1.4" as template
#import "@preview/typographix-polytechnique-reports:0.1.5" as template

// Defining variables for the cover page and PDF metadata
// Main title on cover page
Expand Down
2 changes: 1 addition & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typographix-polytechnique-reports"
version = "0.1.4"
version = "0.1.5"
entrypoint = "polytechnique.typ"
authors = ["Rémi Germe <@remigerme>"]
license = "MIT"
Expand Down

0 comments on commit 60c1a22

Please sign in to comment.