GithubHelp home page GithubHelp logo

Comments (4)

gerw avatar gerw commented on June 18, 2024

I cannot reproduce. The XML file from dx.doi.org does not contain nbsp for me.

Can you post the content of the temporary file (/tmp/81657250 above)? You have to call

curl -sL -H "Accept: application/vnd.crossref.unixsd+xml" http://dx.doi.org/10.1016/j.cam.2016.07.018 > /tmp/81657250

before.

from mathbin.

kellertuer avatar kellertuer commented on June 18, 2024

Thanks for the fast response – the content I get is https://gist.github.com/kellertuer/cb21abeac606b14c4a69c7e79f7e749a (after running your call).

But running the doi2pdf command again and opening the tmp file, the problem is, that I seem to retrieve a html file instead https://gist.github.com/kellertuer/001571ed560c4b6f4e78d13b0931def6.

Let me know how I can help further, I am not that experienced with shell scripts and all the involved tools (and which might be missing on Mac OS).

from mathbin.

gerw avatar gerw commented on June 18, 2024

I don't know. Somehow, you do not get the xml from dx.doi.org but rather a standard page on which you can enter a doi number. This does not seem to be a bug in doi2pdf.

from mathbin.

kellertuer avatar kellertuer commented on June 18, 2024

So I think i found the issue and solution. The problem is that the mac OS grep does not have a -P option. So one can install the gnu grep via homebrew using brew install grep but that installs it as ggrep (See also https://formulae.brew.sh/formula/grep). So with the line

export PATH="$(brew --prefix)/opt/grep/libexec/gnubin:$PATH"

added to .zshrc one can get the gnu grep as normal grep command in mac os.

So you are right, this was not a bug in doi2pdf, it just means that currently the mathbin scripts are not compatible with Mac OS.

from mathbin.

Related Issues (8)

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.