1

I am writing my thesis and thought it would be fun to add a small animation at the footer of the pages. So you can see some movement when flipping the pages fast.

Is there a way to add a different small image to the bottom of every page? It could also be done a posteriori, once the document was compiled.

  • 1
    irrelevant but you gotta be careful with your thesis. People will read it and judge you based on it. stick with formal style. – CroCo Oct 26 '16 at 12:53
2

Yes, it can be done by inserting the following code coming from fancyhdr user manual (Section 19. "A movie").

In the preamble please insert:

\usepackage{fancyhdr}

\rfoot{\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\put(5,0){\includegraphics{pic\thepage.ps}}
\end{picture}}

This will add to every page a picture named pic<n>.ps where <n> is the page number.

  • 3
    Welcome to TeX.SX! Thank you for your valuable answer. However, it could be improved as following: giving a link to official repo instead of google search, using markdown formating, and actually detailing the core principle of the answer instead of just linking to it (what if the link breaks?). – ebosi Oct 26 '16 at 11:42
  • @mario: A tip: If you indent lines by 4 spaces or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). – ebosi Oct 26 '16 at 13:58
1

Based on mario1000's answer, there is a very simple solution using the fancyhdr package by doing the following:

\rfoot{\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\put(5,0){\includegraphics{pic\thepage.ps}}
\end{picture}}

This will add to every page a picture named pic<n>.ps where <n> is the page number.

  • This isn't based on mario1000's answer, this is mario1000's answer. – erik Oct 26 '16 at 14:03
  • @erik: regarding edits history, Aquiles' statement was true at the time he wrote it - even if it now looks less obvious (i.e. Mario updated his answer... based on Aquiles' one, that was itself based on Mario's original answer). – ebosi Oct 26 '16 at 14:08
  • @ebo Thanks for pointing that out. Apologies to the OP. – erik Oct 26 '16 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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