Skip to content

Lua API - expose authors / affiliation normalization function #12879

Open
@cderv

Description

@cderv

The idea came up for Quarto Extension and custom format while looking at

The usage is to have a way to separate list of authors from list of reviewers.

Our Authors & Affiliations normalization handles multiple authors and roles, but Pandoc's template does not have a mechanism to fill-in template based on something like $if(roles == "editing")$.

So be able to have several HTML divs in title-block for different authors' roles, currently this should be done using a Lua filter to process the metadata, normalize it, and create multiple variable to use in the template.

Another way is to use another YAML like

secondary-authors:
  - name: Stephen McGregor
    orcid: 0000-0001-6560-5586
    email: [email protected]
    url: https://www.tenfive.ai

But it can't be used with the _title-meta-author.html partial because it is not normalized metadata.

So YAML would need to be

 secondary-authors:
  - name: 
      literal: Stephen McGregor
    orcid: 0000-0001-6560-5587
    email: [email protected]
    url: https://www.tenfive.ai

So I am wondering if a quarto.author in API could be a good idea to allow a custom format to duplicate author logic.

Highly hypothetical and probably not trivial work but at least the idea is now out there. We link to potential use case and decide if this could be helpful or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authorsIssues related to author/affiliation normalizationenhancementNew feature or requestluaIssues related to the lua codebase, filter chain, etc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions