quarto-journals / acm

Quarto template for the Association of Computing Machinery
https://quarto-journals.github.io/acm/
MIT License
16 stars 9 forks source link

BibTex parsed incorrectly when using acm-pdf #5

Closed ulyngs closed 1 year ago

ulyngs commented 2 years ago

References that work in a normal quarto or R Markdown document break when using the acm-pdf format.

Take this example bibtex entry:

references.bib:

@Article{koNUGUGroupbasedIntervention2015,
  title = {{{NUGU}}: {{A Group}}-Based {{Intervention App}} for {{Improving Self}}-{{Regulation}} of {{Limiting Smartphone Use}}},
  author = {Minsam Ko and Kyong-Mee Chung and Subin Yang and Joonwon Lee and Christian Heizmann and Jinyoung Jeong and Uichin Lee and Daehee Shin and Koji Yatani and Junehwa Song},
  date = {2015},
  journaltitle = {Proceedings of the 18th ACM Conference on Computer Supported Cooperative Work \& Social Computing - CSCW '15},
  pages = {1235--1245},
  doi = {10.1145/2675133.2675244}
}

It doesn't work in acm-pdf

test.qmd:

---
title: "test"
format: acm-pdf
bibliography: references.bib
acm-metadata:
  copyright: acmcopyright
---

# Introduction

Test [@koNUGUGroupbasedIntervention2015].

# References {-}

::: {#refs}
:::
image

It works in normal pdf output

test.qmd:

---
title: "test"
format: pdf
bibliography: references.bib
---

# Introduction

Test [@koNUGUGroupbasedIntervention2015].

# References {-}

::: {#refs}
:::
image

It also works in acm-html output

test.qmd:

---
title: "test"
format: acm-html
bibliography: references.bib
acm-metadata:
  copyright: acmcopyright
---

# Introduction

Test [@koNUGUGroupbasedIntervention2015].

# References {-}

::: {#refs}
:::
image
reagle commented 2 years ago

Relatedly:

  1. Is date supported, or must we use year?
  2. Could we actually use YAML and CSL?
ulyngs commented 1 year ago

@cderv might you know why this is occurring? Happy submit a PR so solve it, if I can get a pointer about what to do!

cscheid commented 1 year ago

@ulyngs Are you running the latest version of quarto? on quarto 1.2.269 I see this:

image

I also noticed you seem to be getting the wrong font. I'm not sure how that's happening.

ulyngs commented 1 year ago

@cscheid upgraded to the latest version of quarto -- I can confirm that it's working now!!