Adds download-as-pdf

This commit is contained in:
Nemo 2021-05-26 23:23:38 +05:30
parent bb6ff7d46d
commit 2f383b303e
1 changed files with 4 additions and 0 deletions

View File

@ -154,6 +154,10 @@ function pingen { pwgen -1Avs -r=qwertyuiopasdfghjklzxcvbnm "$1"; }
# Sort a file in-place
function sortinplace { sort -o "$1" "$1"; }
function download_as_pdf {
rdrview --template "title,body" "$1" -H | tidy | pandoc --from html --pdf-engine=xelatex -o "$2"
}
# alias kapitan='docker run -t --rm -u $(id -u) -v $(pwd):/src:delegated deepmind/kapitan'
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.