robert-winkler / scientific-articles-markdown

Creation of scientific articles in various output formats (DOCX, ODT, PDF, LATEX, HTML, EPUB) with markdown/ pandoc
23 stars 5 forks source link

Handle nested author metadata via panlunatic #2

Closed tarleb closed 7 years ago

tarleb commented 7 years ago

Nested metadata can simplify the process of specifying authors and their affiliations. However, this usually requires custom templates for all targeted output formats. Alternatively, pandoc filters can be used, but this can be problematic in cases where additional software cannot be installed locally.

This pull request adds a method to modify authors' metadata via the very small panlunatic library, which uses pandoc's build-in lua interpreter. No extra software is required. Author-metadata is folded into rich objects, or optionally into the default flat structure that is expected by most templates.