Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a beamer presentation where I am including a set of external slides using includepdf from pdfpages. I want to be able to add a footnote to each of these external slides, which attributes them to the correct source. Is there a way to do it in LaTeX?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I know that the pdfpages has some pagecommand option. This here is unsatisfactory, but works for the moment:

\includepdf[pages=-,pagecommand={\thispagestyle{empty}\footnote{X}}]{PP.pdf}

The problem is that it typesets the small 1 somewhere.

You can surely generate some other kind of overlay over the pdf image. Such an overlay would require some kind of absolute or relative positioning and it would use custom formatting rather than the way \footnote works.

I am aware of two approaches for absolute positioning: tikz with its overlay option or the textpos package.

Here is what I found in my notes for the tikz approach (copy to your preamble):

\tikzset{
    every overlay node/.style={
        draw=black,fill=white,rounded corners,anchor=north west,
    },
}
% Usage:
% \tikzoverlay at (-1cm,-5cm) {content};
% or
% \tikzoverlay[text width=5cm] at (-1cm,-5cm) {content};
\def\tikzoverlay{%
    \tikz[baseline,overlay]\node[every overlay node]
}%

This allows you to write

\includepdf[pages=-,pagecommand={\thispagestyle{empty}\tikzoverlay at (0cm,-5cm) {copied from somewhere};}]{PP.pdf}%

Note that \tikzoverlay might be interesting in other occasions as well. For your application, you may want to adjust the every overlay style (leave out draw=black for example).

The textpos package will also do the job, but personally, I always found tikz much more flexible, easier to use, and prettier.

share|improve this answer
    
Good job! I was just typing the same answer, just in less detail! BTW, simply indent code blocks by four spaces. You can mark it and press CTRL+K for that. Then you get syntax highlighting. –  Martin Scharrer Sep 15 '11 at 20:23
    
@Martin thanks :) –  Christian Feuersänger Sep 15 '11 at 20:25
    
@Martin thanks for the hint with CTRL+K. I wasn't aware of that (but syntax highlighting is active when I type it as <pre><code> ... </code></pre> as well - isn't it?) –  Christian Feuersänger Sep 15 '11 at 20:27
    
Didn't worked for me with the HTML tags. –  Martin Scharrer Sep 15 '11 at 20:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.