Compiling the following with pdflatex (TeXLive 2009/Debian on Ubuntu 10.04 "Lucid Lynx")
\documentclass{article}
\usepackage{ifpdf}
\ifpdf
\usepackage[T1]{fontenc}
\usepackage{libertine} % Linux Libertine. This gives an error
%\usepackage{lmodern} % this works fine
\usepackage[pdftex,usenames,dvipsnames]{color}
\usepackage[pdftex]{graphicx}
\else
\bye
\fi
\begin{document}
Hello, world!
\end{document}
I get this error:
! LaTeX Error: Option clash for package color.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
l.8 \usepackage
[pdftex]{graphicx}
Can anyone explain this? I can't for the life of me understand why a font package would mess with color and graphicx.
\byeis undefined in LaTeX. – Leo Liu Feb 19 '11 at 12:08libertine.sty(or some other package). – Leo Liu Feb 19 '11 at 12:14pdftexhere. – Leo Liu Feb 19 '11 at 13:13pdftexto be a global option. (Ok,ifpdfcould be loaded before the class using\RequirePackage) – Martin Scharrer Feb 19 '11 at 13:18