Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional handling of department #11

Open
nithinmkp opened this issue Oct 2, 2024 · 0 comments
Open

Conditional handling of department #11

nithinmkp opened this issue Oct 2, 2024 · 0 comments

Comments

@nithinmkp
Copy link

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: [email protected]
  - name: awesome author
    affiliations:
      - ref: kgp
  - name: boring author
    affiliations:
      - id: kanp
        number: 2
        name: nice institute
        department: Department of awesome engineering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant