Skip to content

Commit

Permalink
was not passing in spacing for date
Browse files Browse the repository at this point in the history
in coverpage theme
  • Loading branch information
eeholmes committed Feb 6, 2024
1 parent ea34ae0 commit 535240a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _extensions/titlepage/_extension.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
6 changes: 3 additions & 3 deletions _extensions/titlepage/coverpage-theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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"])
Expand Down

0 comments on commit 535240a

Please sign in to comment.