Duplicated Typst References #5502
-
Hello, I'm using the typst format with: I have a document, where I want to use references. I use Bibtex to store my references and everytime I add some reference it is printed double. Is there a way to print references only once? Here is my yaml `--- bibliography: References.bib ---` Here is the citation reference
By the way if I enter references as I would normally do with markdown |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Could you share a small "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
Sure here it is ---
title: "Reproducible example"
author: "0ceangypsy"
date: today
format:
typst-report-typst: default
execute:
echo: false
warning: false
freeze: true
bibliography: References.bib
bibliographystyle: "chicago-author-date"
---
## Cronbach's Alpha
Cronbach's alpha (Cronbach's $\alpha$), also known as rho-equivalent reliability ($\rho_T$) or coefficient alpha (coefficient $\alpha$), is a reliability coefficient and measure of internal consistency of tests and measures [@Cronbach_1951]
The end.
Here are the contents of the bib file: @article{Cronbach_1951,
doi = {10.1007/bf02310555},
year = 1951,
month = {sep},
publisher = {Springer Science and Business Media {LLC}},
vol = {16},
number = {3},
pages = {297--334},
author = {Lee J. Cronbach},
title = {Coefficient alpha and the internal structure of tests},
journal = {Psychometrika}
}
Here is the _extension.yml title: Typst-report
author: 0ceangypsy
version: 1.0.0
quarto-required: ">=1.4.0"
contributes:
formats:
typst:
template-partials:
- typst-template.typ
- typst-show.typ
- biblio.typ Please let me know if that suffices for reproduction. |
Beta Was this translation helpful? Give feedback.
If I add
keep-typ: true
in the YAML, you can see the.typ
file. There will be at the bottom of the file in the case with no reference,It seems it cause typst to create a Bibliography section anyway.
When a citation is added, it seems Pandoc will add some bibliography content
It seems from jgm/pandoc#8763 (comment)