diff --git a/_extensions/titlepage/_extension.yml b/_extensions/titlepage/_extension.yml index 69ac771..acefbc4 100644 --- a/_extensions/titlepage/_extension.yml +++ b/_extensions/titlepage/_extension.yml @@ -1,7 +1,7 @@ title: titlepage author: Eli Holmes quarto-required: ">=1.1.0" -version: 3.3.9 +version: 3.3.10 contributes: format: pdf: diff --git a/_extensions/titlepage/coverpage-theme.lua b/_extensions/titlepage/coverpage-theme.lua index e12c5ac..82c0945 100644 --- a/_extensions/titlepage/coverpage-theme.lua +++ b/_extensions/titlepage/coverpage-theme.lua @@ -67,7 +67,7 @@ okvals: a text table of ok styles. e.g. {"right", "center"} This function gets the value of something like coverpage-theme.title-style and sets a value coverpage-theme.title-style.plain (for example). It also does error checking against okvals. "plain" is always ok and if no value is set then the style is set to plain. page: titlepage or coverpage -styleement: page, title, subtitle, header, footer, affiliation, etc +styleelement: page, title, subtitle, header, footer, affiliation, date, etc okvals: a text table of ok styles. e.g. {"plain", "two-column"} --]] local function set_style (page, styleelement, okvals) @@ -341,7 +341,7 @@ if page-fontsize was passed in or if fontsize passed in but not spacing --]] -- if not passed in then it will take page-fontsize and page-spacing - for key, val in pairs({"title", "author", "footer", "header"}) do + for key, val in pairs({"title", "author", "footer", "header", "date"}) do if getVal(m["coverpage-theme"][val .. "-style"]) ~= "none" then if not isEmpty(m["coverpage-theme"]["page-fontsize"]) then if isEmpty(m["coverpage-theme"][val .. "-fontsize"]) then @@ -351,7 +351,7 @@ if page-fontsize was passed in or if fontsize passed in but not spacing end end -- make sure spacing is set if user passed in fontsize - for key, val in pairs({"page", "title", "author", "footer", "header"}) do + for key, val in pairs({"page", "title", "author", "footer", "header", "date"}) do if not isEmpty(m['coverpage-theme'][val .. "-fontsize"]) then if isEmpty(m['coverpage-theme'][val .. "-spacing"]) then m['coverpage-theme'][val .. "-spacing"] = 1.2*getVal(m['coverpage-theme'][val .. "-fontsize"])