From ff202209a52bc871dbf1bf0917d5c59d8dfcfd55 Mon Sep 17 00:00:00 2001 From: Kevin Yap Date: Fri, 29 Sep 2017 19:51:52 -0700 Subject: [PATCH] Pass arguments through `xe` function Allows for calls like `xe -shell-escape`. --- source/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/functions.sh b/source/functions.sh index d5a06cc..359a4ad 100644 --- a/source/functions.sh +++ b/source/functions.sh @@ -11,7 +11,7 @@ function cdf() { # short for `cdfinder` # Build the most recently modified .tex file in the current directory function xe() { if test -n "$(find . -maxdepth 1 -name '*.tex' -print -quit)"; then - texfot xelatex $(\ls -t *.tex | head -n1) + texfot xelatex $@ $(\ls -t *.tex | head -n1) else echo "No .tex files found in current directory." fi -- 2.51.2