Skip to content

Commit

Permalink
fix meta.language errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wjschne committed May 6, 2024
1 parent 6845315 commit 69e46a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions _extensions/apaquarto/apaappendixlatex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ end
-- Word for appendix
local appendixword = "Appendix"
getappendixword = function(meta)
if meta.lang and meta.lang["section-title-appendix"] then
appendixword = pandoc.utils.stringify(meta.lang["section-title-appendix"])
if meta.language and meta.language["section-title-appendix"] then
appendixword = pandoc.utils.stringify(meta.language["section-title-appendix"])
end
end

Expand Down
4 changes: 2 additions & 2 deletions _extensions/apaquarto/apafloatstoend.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Pandoc = function(doc)
local fig = {}
local appendixword = "Appendix"
local movefloatstoend = true
if doc.meta.lang and doc.meta.lang["section-title-appendix"] then
appendixword = pandoc.utils.stringify(doc.meta.lang["section-title-appendix"])
if doc.meta.language and doc.meta.language["section-title-appendix"] then
appendixword = pandoc.utils.stringify(doc.meta.language["section-title-appendix"])
end


Expand Down
4 changes: 2 additions & 2 deletions _extensions/apaquarto/typst/formattypst.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ return {
-- before any first paragraph. Hoping that typst will fix this and that this function
-- becomes unnecessary.
local appendixword = "Appendix"
if doc.meta.lang and doc.meta.lang["section-title-appendix"] then
appendixword = pandoc.utils.stringify(doc.meta.lang["section-title-appendix"])
if doc.meta.language and doc.meta.language["section-title-appendix"] then
appendixword = pandoc.utils.stringify(doc.meta.language["section-title-appendix"])
end

for i = #doc.blocks, 1, -1 do
Expand Down

0 comments on commit 69e46a2

Please sign in to comment.