This commit is contained in:
ackman678
2021-05-29 08:19:30 -04:00
parent 61cc931e94
commit 3cb839de7a
3 changed files with 37 additions and 37 deletions

View File

@@ -13,8 +13,7 @@ fi
set -e
# appPath="$HOME/projects/dev/reveal.js"
appPath="$HOME/projects/archive/external/reveal.js"
appPath="$HOME/projects/dev/reveal.js"
portNumber=${2:-8000}
if [[ ! -d $appPath ]]; then
@@ -25,11 +24,12 @@ else
fi
fn=$1 #markdown document to render e.g. neuroanatomy1.md
if [[ ! -e $fn ]]; then
ln -s $fn $(basename $fn)
basefn=$(basename $fn)
if [[ ! -e $basefn ]]; then
ln -s $fn $basefn
fi
#add markdown filename to reveal placeholder start file
sed -i -E "s|(<section data-markdown=\")[A-Za-z0-9\.-]*(\" )|\1$fn\2|" index.html
sed -i -E "s|(<section data-markdown=\")[A-Za-z0-9\.-]*(\" )|\1$basefn\2|" index.html
npm start -- --port=$portNumber
# npm start

View File

@@ -1,10 +1,10 @@
#!/bin/bash
if [ "$1" == "-h" ] ; then
echo "
pdf2bib - search for a doi within a pdf, query pubmed, and append bibtex entry with pdf to your local bib database file. Last two steps are identical to sdoi.sh
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
usage:
pdf2bib.sh file.pdf
spdf.sh file.pdf
depends:
pdftotext - from ghostscript or poppler or texlive ?