cr-marcstevens / dblpbibtex Goto Github PK
View Code? Open in Web Editor NEWDBLP BibTeX - bibtex wrapper for automatic DBLP & IACR ePrint downloads
License: Boost Software License 1.0
DBLP BibTeX - bibtex wrapper for automatic DBLP & IACR ePrint downloads
License: Boost Software License 1.0
$ dblpbibtex --help
DBLPBibTeX - version 2.0a - Copyright Marc Stevens 2010-2019
Projectpage: https://github.com/cr-marcstevens/dblpbibtex/
Cannot find configuration file 'dblpbibtex.cfg' in directories './' and '/Users/abel/'.
Allowed options:
--bibtex arg (=bibtex) Set bibtex command.
...
Running 'bibtex --help':
sh: bibtex--help: command not found
Hi Marc, this is an awesome project, I love it!
I ran into an issue when I tried to cite a proceedings paper with an @
symbol in the book title (https://dblp.uni-trier.de/rec/bibtex/conf/icfp/HamanaF11). When I ran the dblpbibtex
tool, it downloads the citation up until the @
symbol then stops:
@inproceedings{DBLP:conf/icfp/HamanaF11,
author = {Makoto Hamana and
Marcelo P. Fiore},
title = {A foundation for GADTs and inductive families: dependent polynomial
functor approach},
booktitle = {Proceedings of the seventh {ACM} {SIGPLAN} workshop on Generic programming,
WGP
@inproceedings{DBLP:conf/fpca/Wadler89,
...
I tested this with the tagged version 2.1.
Hi Marc,
I ran into a new issue where dblpbibtex suddenly stopped downloading new citations:
DBLPBibTeX - version 2.2 - Copyright Marc Stevens 2010-2019
Projectpage: https://github.com/cr-marcstevens/dblpbibtex/
Loading configuration from: dblpbibtex.cfg
Parsing auxfile: [...]
Configuration:
bibtex: '/nix/store/s1336dw4p8d3xlwwyblp9wqxy6j6saw2-texlive-combined-small-2019/bin/bibtex'
mainbibfile: 'dblp.bib'
DBLP format: crossref
Bib files: 'dblp.bib' 'references.bib'
Bib search directories: '.'
Loaded content of main bibfile: 'dblp.bib'!
New citation: 'DBLP:conf/aplas/ChenMC08'
New citation: 'DBLP:conf/icfp/Asada10'
New citation: 'DBLP:conf/scam/StievenartVMR16'
New citation: 'DBLP:journals/corr/CortesiCF13'
New citation: 'DBLP:journals/jfp/JacobsHH09'
New citation: 'DBLP:journals/pacmpl/BodinGJS19'
No updates to save to main bibfile: 'dblp.bib'!
Here is the contents of the complete dblp.bib file. Any idea what is going wrong? Thanks in advance.
Regards,
Sven
After autoreconf --install
, ./configure
fails with
./configure: line 16017: syntax error near unexpected token `-march=native,'
./configure: line 16017: ` AX_CHECK_COMPILE_FLAG(-march=native, CXXFLAGS="$CXXFLAGS -march=native", )'
It seems that this issue can be fixed in the same way as freeserf/freeserf#312 :
Installing autoconf-archive
with
brew install autoconf-archive
and rerunning autoreconf --install
solves this problem, but the configure
command should be nice and suggest this solution.
However, then I get the next problem:
checking whether C++ compiler accepts -march=native... yes
checking for boostlib >= 1.57 (105700)... configure: We could not detect the boost libraries (version 1.57 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
configure: Boost C++ libraries not found, will use C++17 filesystem module
checking whether g++ supports C++17 features with -std=c++17... yes
checking for C++17 filesystem header... configure: error: not found
This can be solved by
brew install boost
==> It may be worthwhile mentioning these dependencies in the build instructions for Mac OS X, e.g.:
brew install autoconf-archive
brew install boost
autoreconf --install
./configure
make
Some info about the environment:
$ autoreconf --version
autoreconf (GNU Autoconf) 2.69
$ ./configure --version
dblpbibtex configure 2.0a
generated by GNU Autoconf 2.69
$ g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
The whole transcript is:
$ ./configure
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin18.0.0
checking host system type... x86_64-apple-darwin18.0.0
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/local/opt/gnu-sed/libexec/gnubin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin18.0.0 file names to x86_64-apple-darwin18.0.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin18.0.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin18.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin18.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
./configure: line 16017: syntax error near unexpected token `-march=native,'
./configure: line 16017: ` AX_CHECK_COMPILE_FLAG(-march=native, CXXFLAGS="$CXXFLAGS -march=native", )'
Hi Marc, keep up the good work ๐
dblpbibtex
does not download the cross reference DBLP:conf/popl/79
for this citation (https://dblp.uni-trier.de/rec/bibtex2/conf/popl/CousotC79). I deleted the corresponding block from the bib file and ran dblpbibtex
again, but same outcome. Here is the complete log of this rerun.
I don't know what makes this citation special, since it works for all other citations in my document. I assume it might be another issue with the parser (the issue existed already before #11). Any ideas?
This is an amazing tool! But I am in a project that requires bibtex entries (don't ask why) to be exactly those of the "standard mode" of dblp rather than the "with crossref mode". At the moment, dblpbibtex downloads the "with crossref mode" and this is hard-wired in the code, namely:
bib_get.hpp: auto hdr_html = url_get("https://dblp.org/rec/bib2/" + key.substr(5));
In order to get the "standard mode" entries, one needs to use https://dblp.org/rec/bib1/
(and https://dblp.org/rec/bib0/
gives the "condensed mode". For the sake of my project, I changed bib2
to bib1
in your code and recompiled dblpbibtex, but the clean way to do it would be to have a dblpbibtex option to select between the three formats. Would it be something you'd consider?
First of all, let me thank you for this amazing tool.
It seems, however, that working with entries from the Cryptology ePrint archive raises issues. Here is the transcript of running dblpbibtex
with the key cryptoeprint:2022/1767
:
DBLPBibTeX - version 2.4 - Copyright Marc Stevens 2010-2019
Projectpage: https://github.com/cr-marcstevens/dblpbibtex/
Loading configuration from: dblpbibtex.cfg
Parsing auxfile: 'main.aux'.
Configuration:
bibtex: 'bibtex'
mainbibfile: 'dblpbibtex.bib'
DBLP format: compact
Bib files: 'references.bib' 'dblpbibtex.bib'
Bib search directories: '.'
Loaded content of main bibfile: 'dblpbibtex.bib'!
New citation: 'cryptoeprint:2022/1767'
Running bibtex: 'bibtex "main"'.
Caught exception: basic_string::_M_create
This is BibTeX, Version 0.99d (TeX Live 2020/Debian)
The top-level auxiliary file: main.aux
The style file: ieeesort.bst
Database file #1: references.bib
Database file #2: dblpbibtex.bib
Warning--I didn't find a database entry for "cryptoeprint:2022/1767"
(There was 1 warning)
The same issue arises on Arch Linux running kernel 6.2.6 and on Debian Bullseye inside a Docker container (see. #17 ).
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.