my Latex and Tex4ht cheat sheet
my Latex cheat sheet - 12000.org
my Latex cheat sheet - 12000.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>and</strong> compiled with pdflatex gives<br />
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps<br />
And compiled with lualatex gives<br />
.png,.pdf,.jpg,.mps,.tif,.jpeg,.PNG,.PDF,.JPG,.JPEG,.eps<br />
2.41 How to include pdf pages as is in <strong>Latex</strong><br />
The number of pages of the pdf is first found, then a loop is used to load each page. Make sure to use \clearpage<br />
before, so that the first pdf page is on a new page <strong>and</strong> make sure to clear the page also after each page in the<br />
loop.<br />
Here is an example<br />
\usepackage{tikz}<br />
\usepackage{pgffor}<br />
....<br />
\pdfximage{foo.pdf}<br />
\foreach \n in {1,...,\the\pdflastximagepages}<br />
{<br />
\begin{tikzpicture}[remember picture,overlay]<br />
\node[inner sep=0pt] at (current page.center)<br />
{<br />
\includegraphics[page=\n]{foo.pdf}};<br />
\end{tikzpicture}<br />
\clearpage<br />
}<br />
If you know the pdf file has only one page, then the following is enough<br />
\clearpage<br />
\begin{tikzpicture}[remember picture,overlay]<br />
\node[inner sep=0pt] at (current page.center)<br />
{<br />
\includegraphics[page=1,scale=0.9]{foo.pdf}<br />
};<br />
\end{tikzpicture}<br />
\clearpage<br />
2.42 How to automatically build images needed for the latex file?<br />
I put all <strong>my</strong> images needed for the document in an images/ folder below the main document folder. Using<br />
recusrive make, the document Makefile has this line at its top<br />
DIRS = images<br />
include common.mk<br />
...<br />
39