Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to add text "Prepared for Name, Surname" at the bottom left on each page of the PDF document. Anyone knows how to do it easily?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

You can use the background package; a little example:

\documentclass{article}
\usepackage{background}
\usepackage{lipsum}% just to generate filler text

\SetBgContents{Prepared for Name, Surname}
\SetBgScale{2}
\SetBgAngle{0}
\SetBgOpacity{1}
\SetBgColor{blue}
\SetBgPosition{current page.south west}
\SetBgHshift{3cm}
\SetBgVshift{1cm}

\begin{document}

\lipsum[1-30]
\end{document}
share|improve this answer
    
Thank you sir. I am gonna try this and see how it works! –  Peteris Krumins May 20 '11 at 21:51

I could place it simply in the footer of the page using fancyhdr:

\documentclass{article}

\usepackage{fancyhdr}
\pagestyle{fancy}

\fancyfoot[L]{Prepared for Name, Surname}

\usepackage{lipsum}% dummy text
\begin{document}
\lipsum[1-25]
\end{document}

If you don't want to do this, put place the text further into the edge you can use tikz which allows you to place text anywhere on the page if you set the remember picture,overlay options. See the example on page 200 of the v2.10 PGF/TikZ manual (pgfmanual). Any text or drawing would be possible. For your text it would be:

\usepackage{tikz}
...

\begin{tikzpicture}[remember picture,overlay]
  \node [xshift=1cm,yshift=1cm] at (current page.south west)
    [above right]
        {Prepared for Name, Surname}
\end{tikzpicture}

However, this only places the text on the current page. You need to repeat it for every page. You can do this by placing the code in the footer or header or by using recursive \afterpage trick shown in How can I change the increment of the page numbering?.

\newcommand\preparedfor{%
  \begin{tikzpicture}[remember picture,overlay]
    \node [xshift=1cm,yshift=1cm] at (current page.south west)
      [above right]
          {Prepared for Name, Surname}
  \end{tikzpicture}
  \afterpage{\preparedfor}%
}
\begin{document}
\preparedfor
....
share|improve this answer
    
The fancyhdr approach will not work (as it is now) for those pages (first page of each chapter using book or report, for example) that internally use a style different from fancy. The TikZ approach can be more easily achieved (in my opiniom) with the backgound package (which internally, in fact, uses TikZ). –  Gonzalo Medina May 21 '11 at 2:07
    
Martin, can you verify the \preparedfor macro? I somehow can't get it working... When I use it, MikTex says that \preparedfor command was not found! –  Peteris Krumins May 25 '11 at 18:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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