dotfiles

Luke's GNU/Linux dotfiles for i3, vim, ranger, bash, mpd, etc.
git clone git@git.lukesmith.xyz:dotfiles
Log | Files | Refs | README | LICENSE

commit 8d49ac56b7e70b94a140e43051df9df8aa4a3a75
parent 2dc5e822334a2d0fb6860f9b55f91b2e328a2ad6
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 10 Apr 2018 17:48:45 -0700

compiler handler added

Diffstat:
A.scripts/compiler | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/.scripts/compiler b/.scripts/compiler @@ -0,0 +1,17 @@ +#!/bin/bash + +# This is a compilation handler, so to speak, which I have vim run. +# +# It compiles a document to pdf + +file=$(basename "$1") +ext="${file##*.}" +base="${file%.*}" + +echo $ext + +case "$ext" in + rmd) echo "require(rmarkdown); render('$file')" | R --vanilla ;; + tex) xelatex "$file" ;; + md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; +esac