# LaTeX package conflicts

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LaTeX package conflicts

Package conflicts in LaTeX are a hell. Perhaps I should have used ConTeX after all (ConTeX does not have package conflicts; I guess mostly because there are no packages...)

## Hyperref

Hyperref is *by far* the package causing most conflicts. Do yourself a favour and do read the [hyperref README] file. It contains an extensive, albeit not complete list of conflicts and solutions.

## Hyperref and preamble pages

Error:

pdfTeX warning (ext4): destination with the same identifier (name{page.2}) has been already used, duplicate ignored


If you have a preamble, e.g. you make a thesis and use \frontmatter, \mainmatter and \backmatter, then the page numbers in front matter are roman (i, ii, iii, iv, v, vi, etc.) The page numbers in main matter are

% You must specify plainpages=false % Otherwise, you get errors like "pdfTeX warning (ext4): destination with the same identifier (name{page.2}) has been already used, duplicate ignored", since preamble is now identified with name{page.ii}. \usepackage[pdftex,colorlinks=false,plainpages=false]{hyperref}

## Hyperref and Fancy headers

Error:

XXXXX


Hyperref must be loaded after fancy headers, otherwise you get errors about reuse of identifiers and (thus) get faulty internal links in the table of contents.

Solution:

\usepackage{fancyhdr}