Skip to content

Commit

Permalink
Merge pull request #7 from LordBaryhobal/fix/cover-image-kind
Browse files Browse the repository at this point in the history
Add options to change cover image kind and supplement
  • Loading branch information
pmudry authored Jun 16, 2024
2 parents 7e990d5 + c5c3277 commit ef1119f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions isc_template_report.typ
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
cover-image: none,
cover-image-height: 10cm,
cover-image-caption: "KNN exposed, by Marcus Volg",
cover-image-kind: auto,
cover-image-supplement: auto,

// A list of authors, separated by commas
authors: (),
Expand Down Expand Up @@ -148,7 +150,7 @@
} else if (it.func() == raw){
"Listing"
} else{
panic(it.func())
auto
}
}
Expand Down Expand Up @@ -215,9 +217,15 @@
v(10fr, weak: true)
// Puts a default cover image
if cover-image != none{
show figure.caption: emph
figure(box(cover-image, height: cover-image-height), caption: cover-image-caption, numbering: none)
if cover-image != none {
show figure.caption: emph
figure(
box(cover-image, height: cover-image-height),
caption: cover-image-caption,
numbering: none,
kind: cover-image-kind,
supplement: cover-image-supplement
)
}
v(10fr, weak: true)
Expand Down

0 comments on commit ef1119f

Please sign in to comment.