quarto-dev / quarto-dev/quarto-cli
Support author roles in default template
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When you create a brand new Manuscript project, Quarto creates an article with Norah Jones author and roles: writing.
But when I render with keep-typ: true and check the code, I get:
...
authors: (
( name: [Norah Jones],
affiliation: [The University],
email: [] ),
),...
I tried to create a custom template and change typst-show.typ to:
...
$if(it.name.literal)$
( name: [$it.name.literal$],
affiliation: [$for(it.affiliations)$$it.name$$sep$, $endfor$],
roles: [$for(it.roless)$$it.name$$sep$, $endfor$],
email: [$it.email$] ),
$endif$
...
But then I get ....
...
authors: (
( name: [Norah Jones],
affiliation: [The University],
email: [],
roles: [] ),
),...
Steps to reproduce
- create new Manuscript project
- change format typst with
keep-typ: true quarto preview index.qmd- check index.typ
Expected behavior
...
authors: (
( name: [Norah Jones],
affiliation: [The University],
email: [],
roles: [writing] ),
),...
Actual behavior
...
authors: (
( name: [Norah Jones],
affiliation: [The University],
email: [] ),
),...
Your environment
IDE: Positron, MacOS Sonoma 14.5
Quarto check output
❯ quarto check
Quarto 1.5.54
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.54
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: v2023.01
Chromium: 869685
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/fredguth/Library/TinyTeX/bin/universal-darwin
Version: 2022
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.4
Path: /Users/fredguth/Code/sus/desid_pdf/.venv/bin/python3
Jupyter: 5.7.2
Kernels: python3, mojo-jupyter-kernel, fastduck
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.4.1
Path: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources
LibPaths:
- /Users/fredguth/Library/R/arm64/4.4/library
- /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
knitr: 1.48
rmarkdown: 2.27
[✓] Checking Knitr engine render......OK
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the default Manuscript template's typst-show.typ and inspect how author metadata is emitted when rendering index.qmd with Typst. Reproduce with keep-typ: true and check index.typ; done means the generated authors entry includes roles: [writing] for the default Norah Jones author.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100