I would like to add fore-edge painting to the edge of each page, so that when the pages are fanned, it reveals text or an image. It seems it would be easy enough to slice up an image(Tikz/PGF), or text, into the appropriate number of slices and place them at the leaf edges. However, I have no experience in writing packages, classes, or styles.

For example:



Any thoughts?

  • 1
    Rather, how do you actually do this? I doubt regular printers can do it... :P – Alenanno Jan 14 '14 at 20:21
  • It could be possible if you print some marks and then cut all the pages, as publishers do with books to have the actual book size. – Sigur Jan 14 '14 at 20:31
  • A home computer printer cannot do it, unless it does 'borderless' like many photo printers do, but cut pages as in professional printing would have no problem. – user44174 Jan 14 '14 at 20:48
  • @user44174 -- but the edges of books are trimmed after printing. coordinating this with the printing house might be complicated; at the very least, it would likely be expensive, since it would involve manual setup and quality checking. (note that both links given in the question specify painting, not printing.) – barbara beeton Jan 14 '14 at 21:01
  • @barbara beeton - Aren't these normal considerations? en.wikipedia.org/wiki/Bleed_(printing) (I have no direct experience with this.) – user44174 Jan 14 '14 at 21:07

It can be done by using the packages everypage by Sergio Callegari and tikz by Till Tantau wich includes epslatex by Keith Reckdahl. For the example I have used package lipsum by Patrick Happe to generate the dummy text and a photograph of an orchid made by myself.

The idea is to make slices of the image with the option viewport of \includegraphics, to position it on the page with the options remember picture and overlay of \tikz and add it to every page with \AddEverypageHook of everypage. Since it is obviously for a book, it must go only on the odd pages, and this must be tested.

The dificulty is to take a different slice every time. I could not use macros as options for viewport so I have had to use counters. I have set the thickness of the slices to 10 pt.

It must be compiled two times.


%% compile two times
%% image: https://dl.dropboxusercontent.com/u/53131296/passionis.pdf

\usepackage{everypage}% by Sergio Callegari
\usepackage{tikz}%      by Till Tantau, wich includes epslatex by Keith Reckdahl
\usepackage{lipsum}%    by Patrick Happe


      %% Then
           \tikz[remember picture,overlay]
                \path (current page.east)
                      node{\includegraphics[viewport=\value{lowleftx} 0 \value{uprightx} 841.890, clip=true]{passionis.pdf}}


\foreach \x in {1,...,61}{\lipsum[1-10]}

  • Very nice. I did a similar thing by moving a clipping window in the TikZ picture, made a book for some UX design. – percusse Jun 5 '14 at 19:46
  • @percusse Thank you very much. I am new here, so receiving positive comment is very encouraging. – Raoul Kessels Jun 5 '14 at 21:12

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.