GeneralOption Clash for Package in Presentation

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Option Clash for Package in Presentation

Post by pallav »

I am getting three errors. Mainly due to hyperref. Please help me to correct the errors.

Code: Select all

\documentclass[9pt]{beamer}
\usepackage{beamerthemesplit,graphicx,xcolor}
\usepackage[all]{xy}
\usepackage{ragged2e,subfigure}
\hypersetup{pdfpagemode=FullScreen}
\graphicspath{ {./img/} }
\mode<presentation>{
\usetheme{shadow} 
		\def\colorize<#1>{%
\temporal<#1>{\color{red}}{\color{red}}{\color{black!50}}}
\beamersetaveragebackground{yellow!10}
\beamertemplateshadingbackground{blue!5}{yellow!10}
\setbeamertemplate{frametitle}[from second]{}
}
\usepackage[authoryear, numbers, semicolon, sort&compress]{natbib}
\usepackage[colorlinks,breaklinks, bookmarks=true]{hyperref}
\hypersetup{colorlinks = true, linkcolor = blue, anchorcolor = blue, citecolor = blue, filecolor = red, urlcolor = red}
\usepackage{hypcap}
\title{A B C}


\author[abc] % ()
{xxxxxxxxx}

\institute[]  {
  \small ddddddddddd  \\
              \email{dddddddddddddd@gmail.com}
 }

\date{}


\justifying
\begin{document}
\frame{\titlepage}
%\frame[allowframebreaks]
%\section{Introduction}
\setbeamercovered{dynamic}
\section{Introduction}
\subsection{What is Allee effect}
\frame{\begin{beamerboxesrounded}[shadow=true]{What is ...............}
\begin{itemize}\justifying
\item<alert@1> \textbf<1>{The \cite{aziz2003boundedness}}
\end{itemize}
\begin{itemize}\justifying
\pause
\item<alert@2> \textbf<2>{This \cite{aziz2003boundedness}}
\end{itemize}
\end{beamerboxesrounded}
}
\begin{frame}
\label{Bibliography}
{
\begin{center}
\Huge {References}
\end{center}
}
\bibliographystyle{spbasic} 
\bibliography{bibl} 
\end{frame}
\end{document}
Attachments
test.log
(46.8 KiB) Downloaded 708 times
bibl.bib
(278 Bytes) Downloaded 641 times
spbasic.bst
(32.47 KiB) Downloaded 734 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Option Clash for Package in Presentation

Post by localghost »

The hyperref package is already loaded by the beamer class. Read Section 2.6 of the beamer user guide to learn how to pass options to that package.


Thorsten
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: Option Clash for Package in Presentation

Post by pallav »

Thanks a lot. Please help me to get rid of the other two errors. One is with the bibliography and the other is related to frame problem.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Option Clash for Package in Presentation

Post by localghost »

The chosen bibliography style is not compatible with natbib. It seems that you will have to choose another one. You could try to use biblatex.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Option Clash for Package in Presentation

Post by pallav »

Thank you for your suggestion. I am not very sound to use \usepackage{biblatex}. I have seen the pdf but unable to use correctly. Would you please give an example to use biblatex.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Option Clash for Package in Presentation

Post by localghost »

pallav wrote:[…] I have seen the pdf but unable to use correctly. Would you please give an example to use biblatex.
Forget my remarks about natbib and the compatibility with the chosen bibliography style. I was mistaken because distracted by other errors (see below). This works for me.

Code: Select all

\documentclass[
  smaller,
  professionalfonts,
  hyperref={
    colorlinks=true,
    breaklinks=true,
    bookmarks=true,
    linkcolor=blue,
    anchorcolor=blue,
    citecolor=blue,
    filecolor=red,
    urlcolor=red,
    pdfpagemode=FullScreen
  }
]{beamer}
\usepackage{beamerthemesplit}
\mode<presentation>{
  \usetheme{shadow}
  \def\colorize<#1>{\temporal<#1>{\color{red}}{\color{red}}{\color{black!50}}}
  \beamersetaveragebackground{yellow!10}
  \beamertemplateshadingbackground{blue!5}{yellow!10}
  \setbeamertemplate{frametitle}[from second]{}
  \setbeamercovered{dynamic}
}
\usepackage{graphicx}
\usepackage[authoryear, numbers, semicolon, sort&compress]{natbib}
\usepackage{ragged2e}
\usepackage{lmodern}


\title{Title of the Presentation}
\author[abc]{Author Name}
\institute{Institution}
\date{}

\justifying
\begin{document}

\begin{frame}
  \titlepage
\end{frame}

\section{Introduction}

\subsection{What is Allee effect}

\begin{frame}
  \begin{beamerboxesrounded}[shadow=true]{What is ...............}
    \begin{itemize}\justifying
      \item<alert@1> \textbf<1>{The \cite{aziz2003boundedness}}
    \end{itemize}
    \begin{itemize}\justifying
      \pause
      \item<alert@2> \textbf<2>{This \cite{aziz2003boundedness}}
    \end{itemize}
  \end{beamerboxesrounded}
\end{frame}

\begin{frame}
  \label{Bibliography}
  \begin{center}
   \Huge {References}
  \end{center}

  \bibliographystyle{spbasic}
  \bibliography{bibl}
\end{frame}
\end{document}
Furthermore, the \email command does not exist. Please consult Section 24.1 of the beamer user guide in this regard.

By the way, the subfigure package is obsolete for a long time.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: Option Clash for Package in Presentation

Post by pallav »

Thank you very much for all of your effort for me. I am very much happy of getting it. The only problem I am getting here is that the list of references are not coming.
Would you PLEASE see it once more.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Option Clash for Package in Presentation

Post by localghost »

Run BibTeX (or Biber) in between. Your editor should support that as it supports compilation.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: Option Clash for Package in Presentation

Post by pallav »

Yes now it is working fine. (though it has 1 error, but output file is error less)
Post Reply