From d038c7de1447083e6af3d7d2746898cfecd3b5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mekina?= Date: Mon, 17 Nov 2025 13:57:07 +0100 Subject: [PATCH] switch to own pdf embedding implementation --- template/attachments.typ | 4 ++-- template/classic/common.typ | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/template/attachments.typ b/template/attachments.typ index a003ccf..88ee43d 100644 --- a/template/attachments.typ +++ b/template/attachments.typ @@ -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)); } } } diff --git a/template/classic/common.typ b/template/classic/common.typ index eb7dd5d..5a7e5d0 100644 --- a/template/classic/common.typ +++ b/template/classic/common.typ @@ -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