Skip to content

Conditional handling of department #11

@nithinmkp

Description

@nithinmkp

This is more than a feature request than a issue. When we also specify department in author affiliation, rather than giving the department also in name, it would be nice if we can conditionally write that as an affiliation like in LaTeX. Else, it casues spacing issue

a MWE is as follows

project:
  type: manuscript

manuscript:
  article: main.qmd

format:
     pdf: default
     docx:
       number-sections: true
       reference-doc: custom-reference-doc.docx
       
filters:
  - authors-block                     
papersize: a4
execute:
  freeze: true
```
````{=qmd}
title: "A Brilliant idea"
author: 
  - name: Author1
    affiliations:
      - id: kgp
        number: 1
        name: Some institute
        department: weird department
    corresponding: true
    email: author@gmail.com
  - name: awesome author
    affiliations:
      - ref: kgp
  - name: boring author
    affiliations:
      - id: kanp
        number: 2
        name: nice institute
        department: Department of awesome engineering

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions