Comments (4)
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.
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.
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.
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)
- Prohibited characters in filenames
- doi2bibtex replaces "\t" by a tab
- Use bibtool to change the key in arxive2bib HOT 1
- Problems with `doi2pdf` on Mac OS HOT 2
- Implement informed file name suggestions for HAL preprints
- Copying the template file to its final destination/name does not work on Mac OS Big Sur HOT 17
- Error for some special characters when running `doi2pdf` HOT 2
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 mathbin.