switch to own pdf embedding implementation
This commit is contained in:
@@ -154,7 +154,7 @@
|
|||||||
);
|
);
|
||||||
query(label(attachment.at(1))).at(0).value;
|
query(label(attachment.at(1))).at(0).value;
|
||||||
} else if attachment_type == "pdf" {
|
} else if attachment_type == "pdf" {
|
||||||
import "@preview/muchpdf:0.1.1": muchpdf
|
import "./pdf.typ": embed_full
|
||||||
page(place(center + horizon, heading(
|
page(place(center + horizon, heading(
|
||||||
level: 2,
|
level: 2,
|
||||||
get_lang_item(language, "attachment") + " " +
|
get_lang_item(language, "attachment") + " " +
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
outlined: false,
|
outlined: false,
|
||||||
)), margin: 0em);
|
)), margin: 0em);
|
||||||
set page(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
|
// _ EMBEDDED
|
||||||
|
|
||||||
#let pdfembed(path) = {
|
#let pdfembed(path) = {
|
||||||
import "@preview/muchpdf:0.1.1": muchpdf
|
import "../pdf.typ": embed_full
|
||||||
set page(margin: 0em);
|
embed_full(read(path, encoding: none));
|
||||||
muchpdf(read(path, encoding: none));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ASSIGNMENT PAGE
|
// ASSIGNMENT PAGE
|
||||||
|
|||||||
Reference in New Issue
Block a user