switch to own pdf embedding implementation
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user