Word Documents Created by Pandoc

Before I upgraded to Zotero 7, I could create Word documents using Pandoc that contained references inline like "[Some text about why I am citing this source @authornameDATE, p. xx]" and when I opened the Word document, once I had identified a citation style in the Zotero tool bar, it would scan the document and put the citations in properly (where @authornameDATE is the BetterBibTeX citation key saved in Zotero). Occasionally this would glitch with footnote based systems, but if I used an inline author-date style first and then changed the style once Zotero had scanned the text, it was fine (and everything in the brackets ended up as a footnote).

Since I've upgraded, this doesn't seem to work anymore. Is this because that feature is no longer included, or because I need to do something else to make it work?

I would rather not convert to RTF and use the RTF scanner within the Zotero app proper, to avoid losing formatting elsewhere in the document.

(If it makes a difference, Zotero 7.0.9 on a Mac. Both Zotero and Word report being up to date. BetterBibTeX is also still installed and up to date).

Thanks!
  • This has never been a feature of Zotero. I think you should be able to do something like this using a LUA filter and BetterBibTeX, which I'm guessing is what you remember; I'd ask over at the BBT github.
  • Interesting! I'm certain I wasn't doing anything other than from the Zotero menu in Word to do so!

    Might BBT have been able to "interfere" in this way then?
  • Yes, the BBT plugin with the Lua filter @emilianoeheyns wrote for it can do this
  • That is correct, but BBT doesn't "interfere" in the scenario Tom describes, and never has. If you type pandoc-style references in Word, I'm not sure by what process that would be transformed to live Zotero references, other than by converting it to markdown, and then back-converting it to Word. I don't know of any GUI tools that would do this, and it doesn't look like you're dropping down to the shell, so I don't know what scenario is in play.

    Still, if you're using BBT citation keys, you're likely using my lua filter under the hood somewhere.
  • I am writing in Markdown then converting to Word using Pandoc. It seems Pandoc is calling the Lua filter from @emilianoeheyns when compiling into Word format. But it still produces a Word document where the BBT citation keys are what is visible, and Word then used to be able to convert them to formatted citations.

    It also seems to have been a glitch yesterday. Whatever I'm doing has decided to work today!?!
  • But it still produces a Word document where the BBT citation keys are what is visible
    that is correct, you still need to open the document and refresh, that will replace the displayed text with the actual references.
  • Yes, thank you.

    Yesterday the Zotero/Word combo wasn't finding them when it refreshed. I'm not aware of changing anything, but today it seems fine. There's probably something I've changed in the background, but I haven't a clue what!

    But it can probably be marked as resolved for now.
Sign In or Register to comment.