Showing posts with label pdflatex. Show all posts
Showing posts with label pdflatex. Show all posts

Monday, September 17, 2012

pdfpages: To Scale Freely

An improperly scaled pdf page requires tweaking its size. We use scale from graphicx to resize a page, combined with disabling auto-scale, offering an offset = {top, left}.
\documentclass[landscpae]{article}
\usepackage{grffile}  %to treat the spaces in the file name if needed%
\usepackage{pdfpages,graphicx} %the package to do the combination job%
\begin{document}
{
\includepdf[pages={1}, landscape, scale=1.1,noautoscale=true,offset={100 45}]
{OrariDiDirettrice-E12I-02.pdf}
\includepdf[pages={2}, landscape, scale=1.4,noautoscale=true,offset={150 150}]
{OrariDiDirettrice-E12I-02.pdf}
}
\end{document}

Sunday, August 19, 2012

Using pdfpages For A beamer Slide

Here is a real example. It simply chooses the specified pages. One might want to get rid of the pages for special effects (e.g. shadowing) to get a printable version.
\documentclass{beamer}
\usepackage{grffile}  %to treat the spaces in the file name if needed%
\usepackage{pdfpages} %the package to do the combination job%
\begin{document}
{
\setbeamercolor{background canvas}{bg=} %set background blank
\setbeamertemplate{navigation symbols}{} %remove navi symbols
\includepdf[pages={1,2,7,12,18,22,24,28,33-45,49,52-76}]{handout-06_fair_ctl_model_checking.pdf}
}
\end{document}

Wednesday, March 28, 2012

pdflatex: Combining Multiple .pdf Files

A real example.

\title{The Essential C Notes}
\author{
\url{http://www.acm.uiuc.edu/webmonkeys/book/c_guide/}
}
\date{\today}
\documentclass{article}
\usepackage{grffile} %to treat the spaces in the file name%
\usepackage{pdfpages} %the package to do the combination job%
\usepackage{hyperref} %for the hyperlink%
\begin{document}
\maketitle
\includepdf[pages=-]{C Guide--1.pdf} %pages=- means all the pages%
\includepdf[pages=-]{C Guide--1.3 function.pdf}
\includepdf[pages=-]{C Guide--1.4 pointer.pdf}
\includepdf[pages=-]{C Guide--1.5 operators.pdf}
\includepdf[pages=-]{C Guide--1.6 statements.pdf}
\includepdf[pages=-]{C Guide--1.7 preprocessing.pdf}
\includepdf[pages=-]{C Guide--2.12 stdio.pdf}
\includepdf[pages=-]{C Guide--2.13 stdlib.pdf}
\includepdf[pages=-]{C Guide--2.14 string.pdf}
\includepdf[pages=-]{C Guide--2.15 time.pdf}
\includepdf[pages=-]{C Guide--2.7 math.pdf}
\includepdf[pages=-]{C Guide--Appendix A ASCII Chart.pdf}
\end{document}