Support `abstract-title` for Typst format
cderv opened this issue · 3 comments
I believe this could easily be supported like in HTML and some other formats by tweaking the template here
pandoc/data/templates/template.typst
Lines 62 to 66 in 0f29d81
so that Abstract
is not hard coded.
Though it probably needs a Writer update to match behavior with Docx or HTML that supports this field
Makes sense. I think it could all be done in the templates.
Want to submit a PR?
I think it could all be done in the templates.
Looking at this closer, It seems Writers are currently setting some defaults and handling translation. Should translation of term works for Typst as HTML and Docx ?
pandoc/src/Text/Pandoc/Writers/Docx.hs
Lines 916 to 920 in ddc66ca
pandoc/src/Text/Pandoc/Writers/HTML.hs
Line 291 in ddc66ca
pandoc/src/Text/Pandoc/Writers/HTML.hs
Line 371 in ddc66ca
Yes, it would be good to use the translation of the Abstract term as the default value for abstract-title
(which could be overridden). That's what is doen in the docx writer, as you see.