[Tex/LaTex] Footer on last page

fancyhdrheader-footer

I begin with LaTeX and use fancyhdr. So I've got a sweet footer for all my pages but…I'd like to create one another which would be active on last page only.
This footer will contain my informations and perhaps, some copyrights on my document.

It will be as wide as my page width, like the footer of these several pages :

A colored band which can be modified easily…
Is this possible ? Can you help me please ?

Best Answer

This can be easily done with the background package; the package is loaded with the pages=some option, and then \BgThispage is used for the page where the declared material should appear:

\documentclass[a4paper]{book}
\usepackage[pages=some]{background}
\usepackage{tikzpagenodes}
\usepackage{lipsum}

\backgroundsetup{
  scale=1,angle=0,color=black,
  contents={%
  \tikz[remember picture,overlay]{
    \draw[fill=gray!10,ultra thick,draw=gray,rounded corners] 
    ([yshift=120pt,xshift=5pt]current page.south west) 
    rectangle 
    ([yshift=5pt,xshift=-5pt]current page.south east);
    \node[anchor=north west,inner sep=0pt,text width=.3\paperwidth,align=left] at ([yshift=-20pt,xshift=10pt]current page.south west|-current page text area.south west) {Some information \\ Additional information \\ Some articles};
    \node[anchor=north,inner sep=0pt,text width=.3\paperwidth,align=left] at ([yshift=-20pt,xshift=-25pt]current page text area.south) {Some information \\ Additional information \\ Some articles};
    \node[anchor=north east,inner sep=0pt,text width=.3\paperwidth,align=left] at ([yshift=-20pt,xshift=-10pt]current page.south east|-current page text area.south east) {Some information \\ Additional information \\ Some articles};
  }
  }
}

\begin{document}

\lipsum[1-4]% regular pages
\clearpage\thispagestyle{empty}\BgThispage
\lipsum[1-4]

\end{document}

enter image description here

Since some calculations are involved, the code needs two or three runs to stabilize.

Another variant:

\documentclass[a4paper]{book}
\usepackage[pages=some]{background}
\usepackage{tikzpagenodes}
\usepackage{lipsum}

\backgroundsetup{
  scale=1,angle=0,color=black,
  contents={%
  \tikz[remember picture,overlay]{
    \fill[gray!70,ultra thick] 
    ([yshift=120pt]current page.south west) 
    rectangle 
    (current page.south east);
    \node[anchor=north west,inner sep=0pt,text width=.3\paperwidth,align=left] at ([yshift=-20pt,xshift=10pt]current page.south west|-current page text area.south west) {Some information \\ Additional information \\ Some articles};
    \node[anchor=north,inner sep=0pt,text width=.3\paperwidth,align=left] at ([yshift=-20pt,xshift=-25pt]current page text area.south) {Some information \\ Additional information \\ Some articles};
    \node[anchor=north east,inner sep=0pt,text width=.3\paperwidth,align=left] at ([yshift=-20pt,xshift=-10pt]current page.south east|-current page text area.south east) {Some information \\ Additional information \\ Some articles};
  }
  }
}

\begin{document}

\lipsum[1-4]% regular pages
\clearpage\thispagestyle{empty}\BgThispage
\lipsum[1-4]

\end{document}

enter image description here

Related Question