Skip to content

Commit 535240a

Browse files
committed
was not passing in spacing for date
in coverpage theme
1 parent ea34ae0 commit 535240a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_extensions/titlepage/_extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: titlepage
22
author: Eli Holmes
33
quarto-required: ">=1.1.0"
4-
version: 3.3.9
4+
version: 3.3.10
55
contributes:
66
format:
77
pdf:

_extensions/titlepage/coverpage-theme.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ okvals: a text table of ok styles. e.g. {"right", "center"}
6767
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
6868
does error checking against okvals. "plain" is always ok and if no value is set then the style is set to plain.
6969
page: titlepage or coverpage
70-
styleement: page, title, subtitle, header, footer, affiliation, etc
70+
styleelement: page, title, subtitle, header, footer, affiliation, date, etc
7171
okvals: a text table of ok styles. e.g. {"plain", "two-column"}
7272
--]]
7373
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
341341
--]]
342342

343343
-- if not passed in then it will take page-fontsize and page-spacing
344-
for key, val in pairs({"title", "author", "footer", "header"}) do
344+
for key, val in pairs({"title", "author", "footer", "header", "date"}) do
345345
if getVal(m["coverpage-theme"][val .. "-style"]) ~= "none" then
346346
if not isEmpty(m["coverpage-theme"]["page-fontsize"]) then
347347
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
351351
end
352352
end
353353
-- make sure spacing is set if user passed in fontsize
354-
for key, val in pairs({"page", "title", "author", "footer", "header"}) do
354+
for key, val in pairs({"page", "title", "author", "footer", "header", "date"}) do
355355
if not isEmpty(m['coverpage-theme'][val .. "-fontsize"]) then
356356
if isEmpty(m['coverpage-theme'][val .. "-spacing"]) then
357357
m['coverpage-theme'][val .. "-spacing"] = 1.2*getVal(m['coverpage-theme'][val .. "-fontsize"])

0 commit comments

Comments
 (0)