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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making slide using beamer. I'd like to use hyperlink button at the end of the table from another PDF file named table4.

I am trying the following, but "main" button shows up different slide. Is there any way that table and hyperlink button are shown in the same slide?

    \setbeamercolor{background canvas}{bg=}
    \includepdf[width=1.8\textwidth, height=2.5\textheight, pages=1]{table4.pdf}

    Back to \hyperlink{main}{\beamerbutton{main}}.
share|improve this question
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – egreg Apr 9 '12 at 23:45

You can use the pagecommand= option of \includepdf; to control the position of the button, you can use \vspace* and \hspace. A little example, in which the button is first stored in a macro and then the macro is used for pagecommand:


\vspace*{.5\textheight}\hspace*{.4\textwidth}Back to \hyperlink{main}{\beamerbutton{main}}%


\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=}
\includepdf[offset=0 -80,height=2\textheight, pages=1,pagecommand=\mybutton]{c.pdf}
A normal frame.


And the frame containing the included pdf file and the button (I modified the settings for my example, but you can do the adjustments that you consider necessary):

enter image description here

The file c.pdf I used in the example was the result of pdflatex-ing the following c.tex:

share|improve this answer
Thanks for your answer. – justin Apr 10 '12 at 2:36
Thanks Gonzalo. I got the hyperlink button, but now I have another problem. After using "pagecommand", beamer theme has changed to original warsaw. Before using this command, it was just plain theme from pdf file. I have no idea why it changed. – justin Apr 10 '12 at 2:49
@justin: please see my updated answer. – Gonzalo Medina Apr 10 '12 at 3:41
That works. Thanks a lot. – justin Apr 10 '12 at 7:29
@justin: since my answer apparently solves your problem, please consider "accepting" it by clicking on the tickmark below the vote count. – Gonzalo Medina Apr 10 '12 at 12:08

Your Answer


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.