LaTeX forum ⇒ GeneralOption Clash for Package in Presentation Topic is solved

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

Option Clash for Package in Presentation

Postby pallav » Thu Apr 25, 2013 5:08 pm

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

  1. \documentclass[9pt]{beamer}
  2. \usepackage{beamerthemesplit,graphicx,xcolor}
  3. \usepackage[all]{xy}
  4. \usepackage{ragged2e,subfigure}
  5. \hypersetup{pdfpagemode=FullScreen}
  6. \graphicspath{ {./img/} }
  7. \mode<presentation>{
  8. \usetheme{shadow}
  9. \def\colorize<#1>{%
  10. \temporal<#1>{\color{red}}{\color{red}}{\color{black!50}}}
  11. \beamersetaveragebackground{yellow!10}
  12. \beamertemplateshadingbackground{blue!5}{yellow!10}
  13. \setbeamertemplate{frametitle}[from second]{}
  14. }
  15. \usepackage[authoryear, numbers, semicolon, sort&compress]{natbib}
  16. \usepackage[colorlinks,breaklinks, bookmarks=true]{hyperref}
  17. \hypersetup{colorlinks = true, linkcolor = blue, anchorcolor = blue, citecolor = blue, filecolor = red, urlcolor = red}
  18. \usepackage{hypcap}
  19. \title{A B C}
  20.  
  21.  
  22. \author[abc] % ()
  23. {xxxxxxxxx}
  24.  
  25. \institute[] {
  26. \small ddddddddddd \\
  27. \email{dddddddddddddd@gmail.com}
  28. }
  29.  
  30. \date{}
  31.  
  32.  
  33. \justifying
  34. \begin{document}
  35. \frame{\titlepage}
  36. %\frame[allowframebreaks]
  37. %\section{Introduction}
  38. \setbeamercovered{dynamic}
  39. \section{Introduction}
  40. \subsection{What is Allee effect}
  41. \frame{\begin{beamerboxesrounded}[shadow=true]{What is ...............}
  42. \begin{itemize}\justifying
  43. \item<alert@1> \textbf<1>{The \cite{aziz2003boundedness}}
  44. \end{itemize}
  45. \begin{itemize}\justifying
  46. \pause
  47. \item<alert@2> \textbf<2>{This \cite{aziz2003boundedness}}
  48. \end{itemize}
  49. \end{beamerboxesrounded}
  50. }
  51. \begin{frame}
  52. \label{Bibliography}
  53. {
  54. \begin{center}
  55. \Huge {References}
  56. \end{center}
  57. }
  58. \bibliographystyle{spbasic}
  59. \bibliography{bibl}
  60. \end{frame}
  61. \end{document}
Attachments
test.log
(46.8 KiB) Downloaded 289 times
bibl.bib
(278 Bytes) Downloaded 311 times
spbasic.bst
(32.47 KiB) Downloaded 321 times

Tags:

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Thu Apr 25, 2013 6:01 pm

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby pallav » Thu Apr 25, 2013 7:41 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Thu Apr 25, 2013 7:52 pm

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.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby pallav » Thu Apr 25, 2013 8:25 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Thu Apr 25, 2013 8:48 pm

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.
  1. \documentclass[
  2. smaller,
  3. professionalfonts,
  4. hyperref={
  5. colorlinks=true,
  6. breaklinks=true,
  7. bookmarks=true,
  8. linkcolor=blue,
  9. anchorcolor=blue,
  10. citecolor=blue,
  11. filecolor=red,
  12. urlcolor=red,
  13. pdfpagemode=FullScreen
  14. }
  15. ]{beamer}
  16. \usepackage{beamerthemesplit}
  17. \mode<presentation>{
  18. \usetheme{shadow}
  19. \def\colorize<#1>{\temporal<#1>{\color{red}}{\color{red}}{\color{black!50}}}
  20. \beamersetaveragebackground{yellow!10}
  21. \beamertemplateshadingbackground{blue!5}{yellow!10}
  22. \setbeamertemplate{frametitle}[from second]{}
  23. \setbeamercovered{dynamic}
  24. }
  25. \usepackage{graphicx}
  26. \usepackage[authoryear, numbers, semicolon, sort&compress]{natbib}
  27. \usepackage{ragged2e}
  28. \usepackage{lmodern}
  29.  
  30.  
  31. \title{Title of the Presentation}
  32. \author[abc]{Author Name}
  33. \institute{Institution}
  34. \date{}
  35.  
  36. \justifying
  37. \begin{document}
  38.  
  39. \begin{frame}
  40. \titlepage
  41. \end{frame}
  42.  
  43. \section{Introduction}
  44.  
  45. \subsection{What is Allee effect}
  46.  
  47. \begin{frame}
  48. \begin{beamerboxesrounded}[shadow=true]{What is ...............}
  49. \begin{itemize}\justifying
  50. \item<alert@1> \textbf<1>{The \cite{aziz2003boundedness}}
  51. \end{itemize}
  52. \begin{itemize}\justifying
  53. \pause
  54. \item<alert@2> \textbf<2>{This \cite{aziz2003boundedness}}
  55. \end{itemize}
  56. \end{beamerboxesrounded}
  57. \end{frame}
  58.  
  59. \begin{frame}
  60. \label{Bibliography}
  61. \begin{center}
  62. \Huge {References}
  63. \end{center}
  64.  
  65. \bibliographystyle{spbasic}
  66. \bibliography{bibl}
  67. \end{frame}
  68. \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.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby pallav » Thu Apr 25, 2013 9:01 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Thu Apr 25, 2013 9:12 pm

Run BibTeX (or Biber) in between. Your editor should support that as it supports compilation.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby pallav » Thu Apr 25, 2013 9:18 pm

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


Return to “General”

Who is online

Users browsing this forum: No registered users and 4 guests