Discover my latest contributions and projects on GitHub.
Explore more of my work at https://schneiderfelipe.github.io/.
π Easily convert Digital Object Identifier (DOI) and Uniform Resource Locator (URL) to BibTeX and DOI to plain text.
Home Page: https://github.com/schneiderfelipe/doi2bib
License: MIT License
Discover my latest contributions and projects on GitHub.
Explore more of my work at https://schneiderfelipe.github.io/.
The particular DOI is https://doi.org/10.17632/zx3kjzc3yx.3.
See https://www.doi2bib.org/bib/https://doi.org/10.17632/zx3kjzc3yx.3.
But it fails with doi2bib
.
Hi,
Nice tool!
I found some issues with the sed
commands in lines 76--78 of the script.
sed -e 's/^ *//' \
-e 's/, /,\n /g' \
-e 's/}}$/}\n}\n/'
I'm running a macOS High Sierra, so it's probably caused by the subtle differences between the macOS (BSD) sed
and GNU sed
. I found a simple fix to itβusing $'string'
and replace \n
with \\\n
.
Then I found that the script would insert a linebreak at every comma, and this would also apply to the author
field, which I suppose is not an intended feature. So I changed it to match ','
only for the first occurrence (basically, the one after the BiBTeX Key field). And '}, '
is then used for inserting a linebreak after each field.
With these changes, I think it will work under both macOS and GNU/Linux (I tested it with gnu-sed
).
sed -e $'s/^ *//' \
-e $'s/}, /},\\\n /g' \
-e $'s/, /,\\\n /1' \
-e $'s/}}$/}\\\n}\\\n/'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.