This blog has moved! Redirecting...
You should be automatically redirected. If not, visit http://scrolls.mafgani.net/ and update your bookmarks.

## Monday, October 22, 2007

### Logo in a LaTeX document header/footer

Easily accomplished using the 'fancyhdr' package:
`\usepackage{fancyhdr}\renewcommand{\headheight}{0.6in}\setlength{\headwidth}{\textwidth}\fancyhead[L]{}% empty left\fancyhead[R]{ % right   \includegraphics[height=0.53in]{img-file}}\pagestyle{fancy}`

All of that goes into the preamble of the document.

## Monday, October 01, 2007

### Duplicate identifiers with hyperref in pdflatex

The following warning is fairly common when hyperref is used with PDFLaTeX:
`! pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been already used, duplicate ignored`

The solution is to use the 'plainpages=false' option with hyperref.

However, this appears to be insufficient for the article class with the 'titlepage' option. To remedy the warning the following is additionally needed around the \maketitle in the body of the document:

By switching the style of page counter before and after the title page, any ambiguity regarding page numbers is resolved (title page is logically page 1 but LaTex re-initiates the counter on the actual page 1 - leading to 2 successive page 1s).