[Tex/LaTex] Incompatibility between lipics and hyperref

hyperrefpdftex

I am using the lipics document class. I want to use the hyperref package with this and pass some parameters to it. When I use this code,

\documentclass[a4paper,UKenglish]{lipics}
\usepackage[pdftex,bookmarks=false,pdfstartpage=5]{hyperref}

I am getting the following error:

! LaTeX Error: Option clash for package hyperref.

When I try the following code,

\documentclass[a4paper,UKenglish,hyperref={bookmarks=false,pdfstartpage=5}]{lipics}

I am getting 469 errors and the first one is:

! LaTeX Error: Missing \begin{document}.

What is the right way to combine lipics and hyperref?

Best Answer

You can use \hypersetup:

\documentclass[a4paper,UKenglish]{lipics}
\hypersetup{bookmarks=false,pdfstartpage=5}
\begin{document}
test
\end{document}

This suppresses the errors, but still leaves a warning:

Package hyperref Warning: Option `bookmarks' has already been used, setting the option has no effect on input line 2

To suppress the bookmarks, you can use the bookmark package and its depth option:

\documentclass[a4paper,UKenglish]{lipics}
\hypersetup{pdfstartpage=5}
\usepackage[depth=0]{bookmark}
\usepackage{lipsum}% just to generate text for the example
\begin{document}
\section{test}
\lipsum[1-90]
\end{document}
Related Question