From ac76b9ec294e2190e98debd4703f8ba62c5bba28 Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Sat, 13 Sep 2025 14:18:19 -0400 Subject: feat: implemented feature to properly point to the correct location of texassets --- deploy.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh index 2b40795..819d7e0 100644 --- a/deploy.sh +++ b/deploy.sh @@ -8,6 +8,8 @@ homedir=`pwd` path="${homedir}/Documents/texassets" +# First we will deploy the texassets directory + echo "Deploying assets folder. This will let you compile the latex templates" if [[ -f $path ]] @@ -28,3 +30,15 @@ cp "${cur}/assets/"*.png ${path} echo "done" + +# Now we modify the template files so that they point to the right directory + +echo "Modifying the template files" + +templates=`ls | grep .tex` + +for file in 'seq $templates' +do + cat test | sed -r "s/^### Insert graphicspath command here ###/\\\graphicspath {$path}/" > file +done + -- cgit v1.2.3