kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
833 stars 400 forks source link

Insert image at bottom right of each second page, but different for each chapter #130

Open lukegaylor opened 7 years ago

lukegaylor commented 7 years ago

Ok, I hope some gurus may be able to provide some insight.... Basically, I want to put an image at the bottom right corner of each Chapter page. But the catch is the image is not the same for each chapter. For example, I want a frog to be used in chapter 1, a cat in chapter two, etc.... For now the size is not important, as long as it remains in the same position - (I want it to be used as a flip book)

I have found various questions, but most deal with a single article class. These questions have shown the greatest promise, but to change the image in each chapter is well beyond my reach. https://tex.stackexchange.com/questions/160046/placing-a-different-image-in-each-page-corner and https://tex.stackexchange.com/questions/36591/fancyhdr-with-image-and-flowing-text

I have tried to comment in but it doesnt put the image always in the bottom corner.

\fancyfoot[RO]{\setlength{\unitlength}{1mm} \begin{picture}(0,10) \put(-24,-34){\includegraphics[width=5cm]{frog}} \end{picture} \stepcounter{flipbookcount} }

\EveryShipout{% \ifthenelse{\isodd{\value{page}}}% {\global\textheight=20cm}% Next page is even {\global\textheight=15cm}% Next page is odd }

after including:

\usepackage{everyshi} \usepackage{xifthen} \newcounter{flipbookcount} \setcounter{flipbookcount}{1}

in the preamble.

Any help would be appreciated.