-
DescriptionThis is related to #5778 where @rgaiacs wants to use I've got a use case! I'm trying to write an extension for converting qmd documents to the expected format for submitting a manuscript to JOSS. This fits well into my publishing workflow, as I will typically first publish qmd manuscripts to html or gfm, and want to convert it to the JOSS markdown format prior to submission to JOSS. Here is an example of a JOSS formatted document: ---
title: 'Gala: A Python package for galactic dynamics'
tags:
- Python
- astronomy
- dynamics
- galactic dynamics
- milky way
authors:
- name: Adrian M. Price-Whelan
orcid: 0000-0000-0000-0000
equal-contrib: true
affiliation: "1, 2" # (Multiple affiliations must be quoted)
- name: Author Without ORCID
equal-contrib: true # (This is how you can denote equal contributions between multiple authors)
affiliation: 2
- name: Author with no affiliation
corresponding: true # (This is how to denote the corresponding author)
affiliation: 3
affiliations:
- name: Lyman Spitzer, Jr. Fellow, Princeton University, USA
index: 1
- name: Institution Name, Country
index: 2
- name: Independent Researcher, Country
index: 3
---
# Summary
Foo I was hoping to be able to write my template as: ---
$if(title)$title: $title$$endif$
$if(by-author)$
author:
$for(by-author)$
- name: $by-author.name.literal$
$if(by-author.orcid)$orcid: $by-author.orcid$$endif$
$if(by-author.affiliations)$affiliation: $for(by-author.affiliations)$"$by-author.affiliations.ref$", $endfor$$endif$
$endfor$
$endif$
...
--- However, this doesn't seem to be working. Is there already a way I can already forcibly turn on author normalization, or is there a different way for being able to access author metadata such as orcid and affiliation? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I believe this is quite specific because your output is markdown here. We currently explicitly remove quarto-cli/src/resources/filters/modules/authors.lua Lines 921 to 929 in 7cfadb5 This was done in 108f74f @dragonstyle it seems there is some use case where this can be useful as Journal like JOSS now expects a |
Beta Was this translation helpful? Give feedback.
For reference, issue created at #6139. Thanks Charles!