sbib improve and rg bool
This commit is contained in:
8
spdf.sh
8
spdf.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user