sbib improve and rg bool

This commit is contained in:
ackman678
2023-05-15 10:49:24 -04:00
parent 26d1974906
commit d328524cd9
14 changed files with 171 additions and 52 deletions

View File

@@ -1,18 +1,16 @@
#!/bin/bash
if [ "$1" == "-h" ] ; then
echo "
spdf - search for a doi within a pdf. If found, use sdoi.sh to query pubmed, and append bibtex entry with the pdf to your local bib database file
spdf - search for a doi within a pdf. If found, print the doi and then use sdoi.sh to query pubmed and append a bibtex entry with the pdf to your local bib database file
usage:
spdf.sh file.pdf
depends:
pdftotext - from ghostscript or poppler or texlive ?
xsltproc, xmllint - xml programs from libxml
pubmed2bibtex.xsl - xml processor stylesheet
defaults:
Set the three required default file locations (xsl file, bib file, pdf directory)
See sdoi.sh
"
exit 0
fi
@@ -37,6 +35,8 @@ fi
if [ -z "$doi" ]; then
echo "doi not found"
exit 1
else
echo $doi
fi
sdoi.sh $doi $fn