diff options
| author | Chris Sobczak <chris@sobczak.family> | 2026-05-05 12:42:45 -0700 |
|---|---|---|
| committer | Chris Sobczak <chris@sobczak.family> | 2026-05-05 12:42:45 -0700 |
| commit | ec4862ab8d47440c5a73bee32fdb0d642159fb88 (patch) | |
| tree | 0381f9345df9f1104c270c3bc823c1c43cb6357f /scripts | |
Create basic templates and utility scripts
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/doi2bib | 5 | ||||
| -rwxr-xr-x | scripts/qmd2pdf | 2 | ||||
| -rwxr-xr-x | scripts/rmd2pdf | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/scripts/doi2bib b/scripts/doi2bib new file mode 100755 index 0000000..358c728 --- /dev/null +++ b/scripts/doi2bib @@ -0,0 +1,5 @@ +#!/bin/sh +case "$1" in + *"doi.org"*) curl -LH "Accept: application/x-bibtex" $1;; + *) curl -LH "Accept: application/x-bibtex" "https://doi.org/$1";; +esac diff --git a/scripts/qmd2pdf b/scripts/qmd2pdf new file mode 100755 index 0000000..4442b34 --- /dev/null +++ b/scripts/qmd2pdf @@ -0,0 +1,2 @@ +#!/bin/sh +quarto render "$1" diff --git a/scripts/rmd2pdf b/scripts/rmd2pdf new file mode 100755 index 0000000..3c7a287 --- /dev/null +++ b/scripts/rmd2pdf @@ -0,0 +1,2 @@ +#!/bin/sh +Rscript -e "rmarkdown::render('$1')" |
