Giter VIP home page Giter VIP logo

Comments (6)

profandyfield avatar profandyfield commented on June 22, 2024

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.

crsh avatar crsh commented on June 22, 2024

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.

crsh avatar crsh commented on June 22, 2024

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.

profandyfield avatar profandyfield commented on June 22, 2024

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:

2018-07-27_10-59-47

  • 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.

profandyfield avatar profandyfield commented on June 22, 2024
  • Updating to macTex 2018 didn't help
  • Using the dev version of citr everything is fine! Hooray!

thanks

from citr.

crsh avatar crsh commented on June 22, 2024

Great! And thanks for the detailed reports.

from citr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.