summaryrefslogtreecommitdiff
path: root/latex/latex_test.sh
diff options
context:
space:
mode:
authorprashantsinalkar2020-02-03 16:27:26 +0530
committerprashantsinalkar2020-02-03 16:27:26 +0530
commit8f5975e42c5c31f9958af816ee0be8a724ac88fb (patch)
tree8ed72e24dce0fd0a75b1c36c5a842e5d6e85817a /latex/latex_test.sh
parent21589013d85d48e1ffca443d0feb757aa7b54b1a (diff)
downloadr_textbook_companion-8f5975e42c5c31f9958af816ee0be8a724ac88fb.tar.gz
r_textbook_companion-8f5975e42c5c31f9958af816ee0be8a724ac88fb.tar.bz2
r_textbook_companion-8f5975e42c5c31f9958af816ee0be8a724ac88fb.zip
fixed generate pdf issue
Diffstat (limited to 'latex/latex_test.sh')
-rwxr-xr-xlatex/latex_test.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/latex/latex_test.sh b/latex/latex_test.sh
index c2f885e..22dd0cc 100755
--- a/latex/latex_test.sh
+++ b/latex/latex_test.sh
@@ -114,12 +114,14 @@ fi
if [ $col7 = S ]
then
- echo \\curlable{Exa~$col3} >> $CURDIR/TEX
- echo \\begin{code} >> $CURDIR/TEX
- echo \\tcaption{$col4}{$col4} >> $CURDIR/TEX
- echo \\lstinputlisting{../$col6} >> $CURDIR/TEX
- echo \\end{code} >> $CURDIR/TEX
- echo >>$CURDIR/TEX
+ if [[ $col6 != *".zip"* ]]; then
+ echo \\curlable{Exa~$col3} >> $CURDIR/TEX
+ echo \\begin{code} >> $CURDIR/TEX
+ echo \\tcaption{$col4}{$col4} >> $CURDIR/TEX
+ echo \\lstinputlisting{../$col6} >> $CURDIR/TEX
+ echo \\end{code} >> $CURDIR/TEX
+ echo >>$CURDIR/TEX
+ fi
fi
# if [ $col7 = D ]