Closed profandyfield closed 6 years ago
Further digging reveals that behaviour is different when the surname starts with a lowercase letter than when it begins with an uppercase letter. For example, De Houwer imports to citr from zotero but de Houwer does not. Using two references of this author that are stored in my library using these two variants of the surname I looked at what Zotero does at export:
@article{de_houwer_extrinsic_2003,
title = {The Extrinsic Affective {{Simon}} Task},
volume = {50},
issn = {1618-3169},
doi = {10.1027//1618-3169.50.2.77},
journal = {Experimental Psychology},
author = {De Houwer, J.},
year = {2003},
pages = {77-85}
}
@article{de_houwer_potential_2008,
title = {Potential Pitfalls in the Study of Associative Learning of Implicit Attitudes},
volume = {43},
issn = {0020-7594},
journal = {International Journal of Psychology},
author = {{de Houwer}, J.},
year = {Jun-Aug 2008},
pages = {396-396}
}
When the de begins with an upper case letter it is exported as {De Houwer, J.}
but when it starts with a lower case d it is exported as {{de Houwer}, J.}
. So, I suspect the extra brackets are throwing things off (is this assumption reasonable). my next question is, how do I stop this behaviour?
a.
Thanks for digging into this! I had a look at the latter example you posted. citr
uses RefManageR::ReadBib()
to read the references exported by Better Bib(La)TeX. The error message you are seeing is from ReadBib()
.
I saved the two references as a bib-file and also added them to my Zotero library (via import from clipboard). Using the current development version of citr
(devtools::install_github("crsh/citr")
) I was able to read both the file and the entries added to Zotero. I also got no errors when I read the file with ReadBib()
directly.
To get a better idea of what's going on some additional diagnosing might help:
citr
?http://localhost:23119/better-bibtex/library?/1/library.bibtex
(this may take some time to load)?ReadBib()
?Sorry, I posted the wrong localhost-URL. The correct one is http://localhost:23119/better-bibtex/library?/1/library.bibtex
(I also updated my previous post).
Thanks for the reply.
[1] J. De Houwer. “The Extrinsic Affective Simon Task”. In: _Experimental Psychology_ 50 (2003), pp. 77-85. ISSN:
1618-3169. DOI: 10.1027//1618-3169.50.2.77.
[2] J. de Houwer. “Potential Pitfalls in the Study of Associative Learning of Implicit Attitudes”. In: _International
Journal of Psychology_ 43 (), pp. 396-396. ISSN: 0020-7594.
I'll add more once mactex has updated ...
andy
thanks
Great! And thanks for the detailed reports.
I'm working on a document that I worked on a few weeks ago and am getting errors that I didn't get a few weeks back (i.e. before the update to R 3.5.1.) I am using citr with zotero and the better bibtex plugin. When citr loads my library direct from zotero it fails to parse any reference that has an author surname containing more than one word. For example, I get a string or errors like this in the console:
The citations all have in common that the surname is made up of several words. For example, for these two the corresponding zotero export is:
So the first contains
{de Lijster}
as surname and the second{de Girolamo}
.If I save the above zotero export as a .bib file (see test.txt), reference it in the YAML header, fire up citr and disconnect it from zotero then citr reads the file perfectly. This suggests to me that the issue is to do with the way citr communicates with zotero and gets it to export so that it can load the database. I have literally no idea how that works though so I don't know whether this is a zotero issue, a BetterBibtex issue or a Citr issue. Any ideas of how to fix it or who I should be directing this at?
thanks andy