wjschne / apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats
https://wjschne.github.io/apaquarto/
Creative Commons Zero v1.0 Universal
153 stars 13 forks source link

Reference list is duplicated #82

Closed tombeesley closed 2 months ago

tombeesley commented 2 months ago

image

This is the code I took from the example. My entire reference list is being duplicated. Is this an issue with the template?

wjschne commented 2 months ago

The example.qmd renders with only one set of references. Would you mind sending a minimal example file that produces duplicate references? That is, create an abbreviated document that produces this error. I am open to talking over Zoom if this problem persists.

tombeesley commented 2 months ago

example.zip I hope this contains all the files you need. Thanks so much.

tombeesley commented 2 months ago

Pretty sure it's generated by the citeproc.lua bit. I'm not sure when I put that in or what it was meant to be for. Issue resolved!

wjschne commented 2 months ago

Thanks! The problem is that your yaml adds a run to citeproc, but apaquarto already does this. So the references are run twice. removing two lines fixes the problem. So the yaml should be:

format:
  apaquarto-pdf:
    link-citations: true
    numbered-lines: true
    fig-pos: 'H'
    documentmode: man
    keep-tex: true
    filters: 
      - at: pre-render
        path: "wordcount.lua"

Let me know if this fixes the problem.

wjschne commented 2 months ago

Ah! I see you already figured it out!

tombeesley commented 2 months ago

thanks for looking at this Joel!