# How can I write multi line text on the foreground of pages, and how can I align it?

I'm using this to write on the foreground of individual pages of a large PDF (hopefully), i.e one with white spaces to enter in LaTeX notes.

\documentclass{article}
\usepackage{pdfpages}
\usepackage{eso-pic}
\begin{document}
HERE IS SOME TEXT\
ohhello}
hi}
\includepdf[pages=11]{completenotes210pages.pdf}
\Huge HERE IS SOME TEXT.}
\includepdf[pages=12]{completenotes210pages.pdf}
\end{document}


and I'm trying to get ohhello on a separte line to HERE IS SOME TEXT on just the first page (or page11 from my 'master file'), usually all you would do is just put\ buuuuut it seems as though for some reason eso-pic doesn't like me doing that.

In addition I'm just trying to type from the very left top of the page, write and use \ for a new line and \qquad when i need some spaces etc. by default it writes from the bottom left and I don't think it even goes up a line when you get to the end.

How do I just get it to behave like normal writing on a blank sheet?

The positioning in eso-pic.pdf and atbegshi.pdf and all its other implementations are way too complicated for me.

Ideally I'd always want to write from the left, like you do, and I'd just make some tags to start a few inches down or so with preset

\
\
\
\
\


and I'd just define how many lines I want to skip.

I'm on this job 24 hours, if you know how and I can't do it properly straight away then lets team viewer and i swear you will be a saint. Almost 12 hours I've been at trying to implement this to large files, so hopefully I'll get it soon.

Do I need prefix \usepackage{atbegshi}?

-

You don't need to load atbegshi. eso-pic loads it automatically since it requires that package. Line breaks are done by two backslashes \\, not by a single one. \ (backslash and space) is for a space in the outut.

You could \parbox or a minipage environment to get line and paragraph breaks in the foreground text, such as

\AddToShipoutPictureFG*{\AtPageCenter{
\parbox{.5\textwidth}{%
HERE IS SOME TEXT\\
more text on another line}}


Here I put paragraph box on the upper left corner, over the width of the whole page. I begin with a line skip, because top aligned parboxes align at the base line of the first line which would be too high here:

\AddToShipoutPictureFG*{\AtPageUpperLeft{
\parbox[t]{\paperwidth}{%
\mbox{}\\
HERE IS SOME TEXT\\
more text on another line}}

-
hmm it seems a little more complicated than the other solution i have working a dream which is to use overpic then a put line for each line. I saw somewhere on here that it is a powerful method and it seems to do the trick even with a 134 page document it is going well. Does kile render faster than texmaker? i know something is faster than texmaker as i saw it online a few months ago i just cant remember what, what do you use –  john Sep 4 '11 at 12:16
It's just a \parbox, what's complicated here? And what is the other solution? Regarding your question about Kile and Texmaker you should post a separate question (or look on the site). –  Stefan Kottwitz Sep 4 '11 at 12:52
stefan would you mind helping me? im trying to use overpic and I had it running beautifully. I just need someone to look at my computer for 5 minues with teamviewer as I cant render anything whatsoever now in texmaker,,,it has been two days and i had it running beautifully overlaying 135 pages. –  john Sep 4 '11 at 14:44
@john: perhaps come to chat.stackexchange.com/rooms/41/tex-latex-and-friends where the problem could be solved interactively. –  Stefan Kottwitz Sep 4 '11 at 14:56
i had 20 rep points at pne point to chat there but in dont anymore. –  john Sep 4 '11 at 16:06
show 1 more comment