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

Cannot insert funding meta tag in document. #8086

Closed
sebastianrowan opened this issue Jan 2, 2024 · 4 comments · Fixed by #8110
Closed

Cannot insert funding meta tag in document. #8086

sebastianrowan opened this issue Jan 2, 2024 · 4 comments · Fixed by #8110
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sebastianrowan
Copy link

I have included my funding source information in my document's yaml header, and I am trying to use the {{< meta funding >}} tag to insert this text in my appendix. quarto render manuscript.qmd runs without error, however the text included in the funding variable is not shown.

The issue seems to be specifically related to using the "funding" meta variable, as I have been able to get my desired outcome by simply changing the variable name to "support" and adding {{< meta support >}} to my appendix. While this works for me in this instance, this workaround would break any processes that specifically look for the funding variable.

Is this a bug or is there a reason this doesn't work, and what would be the solution?

The issue persists when rendering to docx, pdf, and html.

@jjallaire jjallaire transferred this issue from quarto-dev/quarto Jan 2, 2024
@dragonstyle
Copy link
Collaborator

Quarto has a set of special front matter that is normalized into a standard schema (this is so authors of Quarto templates can refer to a single standard schema rather than each building their own). Funding is normalized as a part of this. More about this normalization here:

https://quarto.org/docs/authoring/front-matter.html#funding

We currently make this pretty hard on you because we normalize funding into a List (e.g. an array of funding sources, each with a statement and corresponding metadata) and the meta shortcake doesn't really deal with arrays/lists very well at all.

Are you adding the funding metadata to the HTML appendix, or hoping to add it to other document formats as well? (adding it to the HTML appendix within Quarto is a nice suggestion and pretty straightforward, while fixing the meta array limitation is likely to be trickier)...

@dragonstyle dragonstyle self-assigned this Jan 2, 2024
@dragonstyle dragonstyle added this to the v1.4 milestone Jan 2, 2024
@sebastianrowan
Copy link
Author

I was trying to add the funding statement as an appendix in a docx using this code:

# Funding {.appendix}
:::{custom-style="Funding"}

{{< meta funding >}}

:::

@dragonstyle
Copy link
Collaborator

Ok docx is tougher - we really need to address the issue with support for arrays/lists in the meta shortcode to properly enable this...

I don't have a great workaround for you right now other than to duplicate the contents of the funding field (e.g. just place it inline in the appendix or provide both a funding and support key) :(.

I'll see whether better support for arrays is something we could squeeze into Quarto 1.4, but I think it is much more likely to fall into Quarto 1.5.

@mcanouil
Copy link
Collaborator

mcanouil commented Jan 2, 2024

FYI:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants