retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.34k stars 287 forks source link

Variables (page numbers etc) not appearing in Word #1528

Closed mcvmcvmcvmcv closed 4 years ago

mcvmcvmcvmcv commented 4 years ago

I'm following up on a question that I raised on the Zotero forums, because I found that variables like page numbers were not making it through to my Word document when I used the lua filter to keep the citations 'live' in Word. Please find my word doc attached. It's in a state before hitting document preferences so you can see the strings that got passed through.

Text.docx

label-gun[bot] commented 4 years ago

It looks like you did not upload an debug report. The debug report is important; it gives @retorquere your current BBT settings and a copy of the problematic reference as a test case so he can best replicate your problem. Without it, @retorquere is effectively blind. Debug reports are useful for both bug analysis and enhancement requests; in the case of export enhancements, I need the copy of the references you have in mind.

This request is much more likely than not to apply to you, too, even if you think it unlikely, and even if it does not, there's no harm in sending a debug log that turns out to be unnecessary. @retorquere will more often than not just end up saying "please send a debug log first". Sending a debug log is very easy:

  1. If your issue relates to how BBT behaves around a specific reference(s), such as citekey generation or export, select at least one of the problematic reference(s), right-click it, and submit an BBT debug report from that popup menu. If the problem is with export, please do include a sample of what you see exported, and what you expected to see exported for these references.

  2. If the issue does not relate to references and is of a more general nature, generate an debug report by restarting Zotero with debugging enabled (Help -> Debug Output Logging -> Restart with logging enabled), reproducing your problem, and selecting "Send Better BibTeX debug report..." from the help menu.

Once done, you will see a debug ID in red. Please post that debug id in the issue here.

Thank you!

mcvmcvmcvmcv commented 4 years ago

Report ID: LZ6R9CUU-apse

blip-bloop commented 4 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.2.23.6583 ("ncu")

Install in Zotero by downloading test build 5.2.23.6583, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 4 years ago

Thanks for reporting this. Can you try 6583 with https://raw.githubusercontent.com/retorquere/zotero-better-bibtex/gh-1528/site/content/exporting/zotero.lua ?

retorquere commented 4 years ago

BTW, do you recall how you opened this issue? Were you logged in when you opened it? You should have been prompted to choose from 5 categories of issue types, and each should have added a label to the issue, but this issue wasn't labeled, and I've seen other that weren't labeled.

retorquere commented 4 years ago

Oh also: the config for this filter has changed; docs are temporarily up at https://github.com/retorquere/zotero-better-bibtex/blob/gh-1528/site/content/exporting/pandoc.md until I merge this.

mcvmcvmcvmcv commented 4 years ago

Hmm. Now the citations are just getting passed through as plain text. I wasn't sure what variable to put in the library: field, but I tried various things including leaving it blank, and nothing seemed to work. Passing along the md file I used (converted to txt). Was running this:

pandoc -s --lua-filter=zotero.lua --reference-doc /Users/MYNAME/.pandoc/reference.docx -f markdown+smart -t docx -o /Users/MYNAME/Desktop/"$title".docx "$@"

Text.txt

I got here from the 'submit an issue' link on this page.

retorquere commented 4 years ago

And you weren't prompted to choose an issue template? Strange.

Can you send a new debug log from 6583, selecting the references in that markdown file?

If these are items from your personal library, omit the library entirely; if it's from a group library, use the name of the library.

retorquere commented 4 years ago

I've replaced the citekeys that were in the document with some that happen to be in my test lib, bit after compilation, the text initially looks like

.... many hundreds of thousands of men were never more than instrumental?<open Zotero document preferences: [See also @Villagrasa; For another account of xyz, consult @biggs1996]>
Some text to make a footnote, hopefully...

Which is what I expect; after opening the Zotero document preferences and selecting a style (I usually go for APA) and clicking OK, the document now looks like:

... many hundreds of thousands of men were never more than instrumental?(For another account of xyz, consult Biggs, 1996; See also Villagrasa & Duran, 2013)
Some text to make a footnote, hopefully....
mcvmcvmcvmcv commented 4 years ago

Oops, I completely missed the part where I needed to install the new build :| Sorry about that. Everything is working perfectly well now, all the variables are passed correctly! Many thanks.

Yes, when I follow that link (https://github.com/retorquere/zotero-better-bibtex/issues/new) it lets me add a new issue without categorizing it.

retorquere commented 4 years ago

Cool thanks -- I'll merge and cut a new release.

Where did you get this link? The link on github itself is now https://github.com/retorquere/zotero-better-bibtex/issues/new/choose

retorquere commented 4 years ago

Ah, I see I had that on my site. That's fixed now, should be up in 20 minutes or so.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.