We can put tabular to resizebox to easily resize a table in latex.
If it's in a minipage environment, we might need caption package to add captions.
tmpfile=`mktemp -p . exttmp.XXXX`grep includegraphics $1 > $tmpfilesed -e 's/includegraphics/ /' -e 's/[\\{}]//g' -e 's/\[.*\]//g' -e 's/[^ ]\+//' -e 's/^ \+//' < $tmpfileif [ -f "$tmpfile" ]thenrm "$tmpfile"fi## the includegraphics must be at the same line with the pdf or other figure files included.
beamer is not good in the sense that it took me quite a long to figure
out how to put some bullets in the table of contents.
it might be help when we need to know where beamer and other classes
files are located.
and use
texhash
mktexlsr
to remake the indices for texlive
Usage:
pdfcrop --margins 10 input.pdf output.pdf
pdfcrop --margins '5 10 5 20' --clip input.pdf output.pd
--TeX file--
\includegraphics{a.pdf}