docs: publish thesis evaluation bundle

This commit is contained in:
lda
2026-06-30 22:46:17 +07:00 Verified
parent 5e9b76eb94
commit e12ccdf18a
28 changed files with 11555 additions and 103 deletions
+23
View File
@@ -0,0 +1,23 @@
-- Keep one Markdown image reference while selecting print-native PDFs for XeLaTeX.
local thesis_figure_format = "svg"
local function read_metadata(meta)
if meta.thesisFigureFormat then
thesis_figure_format = pandoc.utils.stringify(meta.thesisFigureFormat)
end
return meta
end
local function select_figure_format(image)
if thesis_figure_format == "pdf"
and image.src:match("^figures/.*%.svg$") then
image.src = image.src:gsub("%.svg$", ".pdf")
end
return image
end
-- Separate passes guarantee metadata is available before image traversal.
return {
{ Meta = read_metadata },
{ Image = select_figure_format },
}