Comments (6)
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.
from citr.
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:
- Does the problem persist with the development version of
citr
? - What version of Better Bib(La)Tex are you using (I'm using 5.0.180)?
- How did you export the above entries? Did you choose, for example, Better BibLaTex or BibLaTeX format? Do you get the same formatting of the entries when you request them via
http://localhost:23119/better-bibtex/library?/1/library.bibtex
(this may take some time to load)? - Do you get the error when you save the above references to a file and read them with
ReadBib()
?
from citr.
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).
from citr.
Thanks for the reply.
- I'll check with the dev version of citr in due course, I'm going to try updating my mactex install first.
- Also using 5.0.180
- Exported by selecting references, right click export and selecting Better BibTex from the dropdown:
- RefManageR::ReadBib("test_2.bib") correctly reads this file (i had to change from .bib to .txt to upload here, but ReadBib processes both file extensions):
[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
from citr.
- Updating to macTex 2018 didn't help
- Using the dev version of citr everything is fine! Hooray!
thanks
from citr.
Great! And thanks for the detailed reports.
from citr.
Related Issues (20)
- citr addin not working with absolute paths HOT 2
- Referencing from entire zotero library, rather then exported library-user problem HOT 5
- Citr Aborts session when accessing library HOT 9
- RStudio 1.4 to provide Zotero integration HOT 1
- citr crashes connecting to Zotero library HOT 11
- citr currently not available from CRAN HOT 13
- Error in callFun: argument "location" is missing HOT 4
- Allow for different types of citation key formats in tidy_bib_file() HOT 3
- Allow bibtype "Document" to be read by citr HOT 3
- Citr is not allowed to install in R ver. 4.0.2, Please update! HOT 2
- requires RStudio 0.99.796 or newer (your version is 1.3.1093) HOT 4
- later: interrupt occurred while executing callback. HOT 1
- Error loading Bibtex for second citation insert, citr crashes after inserting one citation
- Add ability for `tidy_bib_file()` to scan `_bookdown.yml` HOT 1
- Error when 2 citations have same author (without parenthesis)
- Error when using the addin: condition length > 1
- How do you implement server-side selectize? HOT 1
- Specific `knitr` and `citr` failure with out.width option
- Error in data.frame: arguments imply differing number of rows HOT 2
- Exporting bib file can successfully be useful and insert citation is ok, but once clicking "Connect and load libraries", it crashed. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citr.