switch to own pdf embedding implementation

This commit is contained in:
2025-11-17 13:57:07 +01:00
parent a4643419ef
commit d038c7de14
2 changed files with 4 additions and 5 deletions

View File

@@ -154,7 +154,7 @@
);
query(label(attachment.at(1))).at(0).value;
} else if attachment_type == "pdf" {
import "@preview/muchpdf:0.1.1": muchpdf
import "./pdf.typ": embed_full
page(place(center + horizon, heading(
level: 2,
get_lang_item(language, "attachment") + " " +
@@ -164,7 +164,7 @@
outlined: false,
)), margin: 0em);
set page(margin: 0em);
muchpdf(read("../" + attachment.at(1), encoding: none), width: 100%);
embed_full(read("../" + attachment.at(1), encoding: none));
}
}
}

View File

@@ -278,9 +278,8 @@
// _ EMBEDDED
#let pdfembed(path) = {
import "@preview/muchpdf:0.1.1": muchpdf
set page(margin: 0em);
muchpdf(read(path, encoding: none));
import "../pdf.typ": embed_full
embed_full(read(path, encoding: none));
}
// ASSIGNMENT PAGE