-
I am confused by Quarto's treatment of citations and hoping someone can help clarify. The documentation states
However, just above that passage documentation states that will produce
This is the output rendered by Quarto. However, to the best of my knowledge this is not Chicago author-date format. I'm unaccustomed to seeing Chicago inline citation (or really any author date styles) use
I explicitly declared in the YAML Finally, when the equivalent to
How to achieve this in Quarto, and perhaps some insight on why it is different would be incredibly helpful. In terms of citation, switching from .Rmd to .Qmd it seems will require some fiddling which feels like a departure from the overall intent of Quarto. I believe I'm missing something. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Are you using the visual editor inside of RStudio when creating this citation? It looks to me like in that case, we're writing escape characters before the citation brackets, which converts the citation into a literal set of
and not:
If you remove the leading slashes and render, you will see what you expect. I'm not sure why we're escaping those braces, but I will take a closer look and fix whatever the issue is. Thanks for letting us know! |
Beta Was this translation helpful? Give feedback.
-
We have these two fixes in the IDE to resolve the problem: In the meantime, you can workaround this buggy handling of cite brackets by adding the following ---
title: "My Document"
format: html
from: markdown+tex_math_single_backslash
--- The addition of |
Beta Was this translation helpful? Give feedback.
-
Thank you both very much. Yes, rooting out escape characters solved the issue (I tried to mark both as answers). Switching between source and visual is useful for me so I plan to use the I'm still confused by the documentation and now I'm wondering if an escape character perhaps slipped in elsewhere? ;) The text shown in the documentation isn't Chicago author date, but that is what the documentation indicates it should be, and what I'm accustomed to in Rmd. That had me really confused. https://quarto.org/docs/authoring/footnotes-and-citations.html#sec-citations |
Beta Was this translation helpful? Give feedback.
-
You are correct! Some extra backslashes did sneak in there (no doubt from the visual editor). This is fixed here: quarto-dev/quarto-web@6cf2b43 |
Beta Was this translation helpful? Give feedback.
-
Hi everyone; thank you for posting this. I need help with the format of the references/bibliography. I want to use the Vancouver referencing style. It uses numbers (in-text citations appear as numbers), and the references are numbered in the reference list at the end of the document. When I use, for example, the reference @wickham2015 in the Quaero script, it appears as Wickham (2015) in the Quarto output document, and the reference list does not number the reference. How can I make the references appear as numbers in the text and be numbered in the final reference list? Thank you! ;) |
Beta Was this translation helpful? Give feedback.
We have these two fixes in the IDE to resolve the problem:
In the meantime, you can workaround this buggy handling of cite brackets by adding the following
from
field to the document options:The addition of
tex_math_single_backslash
effectively turns off the escaping of[
entirely (as allowing this would conflict with the\[
syntax for tex display equations implied bytex_math_single_backslash