From c6d10a5cfb66bbfb86a3e19c98eae9df14f55aa5 Mon Sep 17 00:00:00 2001 From: Flavio Date: Sat, 5 Oct 2024 11:52:24 +0200 Subject: [PATCH] Fix sample --- example/main.typ | 6 ++++-- tests/sample-book/test.typ | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/example/main.typ b/example/main.typ index 37a5fd3..b2d822d 100644 --- a/example/main.typ +++ b/example/main.typ @@ -1,4 +1,4 @@ -#import "../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal +#import "../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal, update-heading-image //#set text(font: "Linux Libertine") //#set text(font: "TeX Gyre Pagella") @@ -101,7 +101,9 @@ imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcor #heading(level:3, numbering: none, "Unnumbered Subsection", outlined: false) #heading(level:4, numbering: none, "Unnumbered Subsubsection", outlined: false) -#chapter("In-text Element Examples", image: image("./orange2.jpg")) +// Chapter can also be defined in this way +#update-heading-image(image: image("./orange2.jpg")) += In-text Element Examples == Referencing Publications #index("Citation") diff --git a/tests/sample-book/test.typ b/tests/sample-book/test.typ index b4f21f7..76f865a 100644 --- a/tests/sample-book/test.typ +++ b/tests/sample-book/test.typ @@ -1,4 +1,4 @@ -#import "../../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal +#import "../../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal, update-heading-image //#set text(font: "Linux Libertine") //#set text(font: "TeX Gyre Pagella") @@ -101,7 +101,9 @@ imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcor #heading(level:3, numbering: none, "Unnumbered Subsection", outlined: false) #heading(level:4, numbering: none, "Unnumbered Subsubsection", outlined: false) -#chapter("In-text Element Examples", image: image("./orange2.jpg")) +// Chapter can also be defined in this way +#update-heading-image(image: image("./orange2.jpg")) += In-text Element Examples == Referencing Publications #index("Citation")