- Create a new directory.
- Download script.sh.
- Create a folder in that directory called images.
- Dump all images (whatever includegraphics can accept) that you want to combine in there.
- Run script
Last active
August 29, 2015 14:21
-
-
Save daniellowtw/ec3213bf780ecd1c20b6 to your computer and use it in GitHub Desktop.
Full screen latex image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper]{article} | |
\usepackage[margin=0in]{geometry} | |
\usepackage{pdfpages} | |
\usepackage[bookmarks=true]{hyperref} | |
\usepackage{bookmark} | |
\usepackage{graphicx} | |
\begin{document} | |
\pdfbookmark{IMAGE.JPG}{IMAGE.JPG} | |
\noindent | |
\includegraphics[height=\paperheight]{images/IMAGE.JPG} | |
\pagebreak | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir temp; | |
cd temp; | |
echo "\documentclass[a4paper]{article} | |
\usepackage[margin=0in]{geometry} | |
\usepackage{pdfpages} | |
\usepackage[bookmarks=true]{hyperref} | |
\usepackage{bookmark} | |
\usepackage{graphicx} | |
\begin{document}" > combined.tex; | |
for line in $(ls ../images/); do | |
echo Including $line | |
echo " | |
\pdfbookmark{$line}{$line} | |
\noindent | |
\includegraphics[width=\paperwidth-0.1mm, height=\paperheight-0.1mm]{../images/$line} | |
\pagebreak | |
">> combined.tex; | |
done; | |
echo "\end{document}" >> combined.tex; | |
pdflatex --quiet combined.tex | |
cp combined.pdf .. | |
cd .. | |
rm -rf temp | |
echo Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment