You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Markdown document that I want to export to JATS. In this document I have at the end a Div with an "appendix", which is placed after the references section. Following the JATS indication this appendix should go in the "back". For this I use a Lua filter, which extracts the content of the Div block from the appendix and saves it in the metadata (then I insert it in the back with a small change in the template).
The problem is that when I do this, the References are placed in the body (instead of in the back).
local app = nil
local RawBlock = pandoc.RawBlock
function Div(div)
if(div.identifier == "app") then
app = div.content
div = RawBlock('jats', '')
end
return div
end
function Meta(m)
if(app) then
m.app = app
end
return(m)
end
Interestingly, when I add and modify the line div = RawBlock('jats', '') to div = pandoc.Header(1, '') the References return to the "back" (although a phantom section is generated). I guess citeproc does something with the Div of the references.
Pandoc version?
Pandoc 3.1.8
The text was updated successfully, but these errors were encountered:
Explain the problem.
I have a Markdown document that I want to export to JATS. In this document I have at the end a Div with an "appendix", which is placed after the references section. Following the JATS indication this appendix should go in the "back". For this I use a Lua filter, which extracts the content of the Div block from the appendix and saves it in the metadata (then I insert it in the back with a small change in the template).
The problem is that when I do this, the References are placed in the body (instead of in the back).
I call Pandoc with the following line command:
I share my Markdown file (example.md).
The filter (
get_appendix.lua
) I use is:Interestingly, when I add and modify the line
div = RawBlock('jats', '')
todiv = pandoc.Header(1, '')
the References return to the "back" (although a phantom section is generated). I guess citeproc does something with the Div of the references.Pandoc version?
Pandoc 3.1.8
The text was updated successfully, but these errors were encountered: