tmpfile=`mktemp -p . exttmp.XXXX`
grep includegraphics $1 > $tmpfile
sed -e 's/includegraphics/ /' -e 's/[\\{}]//g' -e 's/\[.*\]//g' -e 's/[^ ]\+//' -e 's/^ \+//' < $tmpfile
if [ -f "$tmpfile" ]
then
rm "$tmpfile"
fi
#
# the includegraphics must be at the same line with the pdf or other figure files included.
No comments:
Post a Comment