Closed
Description
Describe your proposed improvement and the problem it solves.
Currently there is a forced title page generated based on the meta data. Since generating a custom "whitepaper", the first page is some custom graphics, But I would like to keep the meta data set in the document properties. I tried looking at lua filters but they only modify the AST tree not the docx write.
If I would know/understand haskel, I would try to edit but as far as I can tell the fix should be something like
Some switch called skiptitlepage
pandoc/src/Text/Pandoc/Writers/Docx.hs Line : 764
let notIncludeMetaPage = lookupMetaBool "skiptitlepage" meta
Then where the doc is generated, make meta only the toc if skipped
pandoc/src/Text/Pandoc/Writers/Docx.hs Line : 812
meta' <- if notIncludeMetaPage
then return map Elem toc
else return title ++ subtitle ++ authors ++ date ++ abstract ++ map Elem toc
return (meta' ++ doc', notes', comments')
Describe alternatives you've considered.
- Zip unzip the docx after generation and sed remove it
- changing the style but it would still render the data
- Lua filter on block, but it starts at the very first item (AST)