I have some books and .pdf files that I would like to make some notes (particularly adding equations with LaTeX). I have seen the following post:

Overlay LaTeX/TeX coding easily on PDF with 300 pages

But, one thing which I am looking for a method around is that the answer posted some notes in a .pdf with some generous spacing. Sometimes I may not have that much space (i.e.: just adding a sample picture below - to give an idea)


So how could I do it without overwriting some text? For instance, in the following code:


\usepackage{pdfpages}% http://ctan.org/pkg/pdfpages
\usepackage{eso-pic}% http://ctan.org/pkg/eso-pic
% Add pages before
    \makebox[0pt][c]{\Huge HERE IS SOME TEXT aasdfasdfadsfasd.}
% Add pages after

Which creates:


But how would this work if I were to add multiple notes (which I would imagine to be quite messy) so is this a way to organize such that it is similar to \pdfcomment but still be able to type math equations (I am not fully sure about this feature so if someone could explain or provide some advice that would be great). Also, if someone could provide an example of how I could use the pdfpages package to write on the next line and specify how exactly to layout the box would also be nice.

Lastly, just to provide an example of what I had in mind, I was thinking of something along the lines of this


which then shrinks to this when I click it


But I am also open to other alternatives as well.

  • 2
    With \AddToShipoutPictureFG* you can add any box to any place, and you can decide which size and form has the added box, so what's the problem? – Ignasi Mar 23 '16 at 7:42
  • So how would I add a new line of notes and how exactly would I determine which place to locate the box ? Would it be possible to get an example please, Sorry I am relatively new to this part of annotations. – PutsandCalls Mar 23 '16 at 7:47
  • @Ignasi this is the best solution, please elaborate. – touhami Mar 23 '16 at 7:52
  • 1
    For pop-ups with LaTeX formatted text see tex.stackexchange.com/a/164186 – AlexG Mar 23 '16 at 11:22
  • @alexG For the answer that you posted in tex.stackexchange.com/a/164186, could you provide an example of using such a method on a pdf document that is already written (ie: a book or something). I seem to be having a trouble of exactly implementing it on some already finished pdf page that I dont have the .tex file to. But this is exactly what im looking for – PutsandCalls Mar 23 '16 at 19:22

This is a little example with eso-pic using picture commands to place notes.

The problem about where to place notes can be solved with grid command from eso-pic. This class option draw a grid on background with enumerated units which can be used as reference. Once notes are written, grid=false will supres it.

\AddToShipoutPictureFG* is used because pdfpages already uses \AddToShipoutPictureBG for page insertion and inserted text covers added notes. With FG notes are written after (over) inserted page.

\usepackage[grid, gridcolor=red!50,subgridcolor=green!20,gridunit=pt]{eso-pic}

                    This is my comment

                    This is my second comment which is longer than the first one


enter image description here

  • this is very nice – touhami Mar 23 '16 at 15:31

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.