2

I want to use the colours offered by

\usepackage[dvipsnames]{xcolor}

in a beamer but I have an error:

Option clash for package xcolor. \usepackage

I am using the following packages:

\documentclass{beamer}
\usetheme{Madrid}
\usecolortheme{beaver}
\usepackage{textpos}
\usepackage{subfig}
\usepackage{tikz}
\usepackage{parallel,enumitem}
\usepackage[export]{adjustbox}
\usepackage[italian]{babel}
\usepackage{ dsfont }
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{varwidth}
\usepackage{multicol}
10
  • 2
    Beamer already loads xcolor. There is a special beamer class option to pass on options for xcolor, you'll need to look it up in the beamer manual.
    – daleif
    Apr 12, 2021 at 21:26
  • 2
    Try \PassOptionsToPackage{dvipsnames}{xcolor} before the \documentclass... (Not sure if it'll work)
    – Rmano
    Apr 12, 2021 at 21:28
  • 2
    @Sebastino the op might be on an older version of beamer.
    – daleif
    Apr 12, 2021 at 21:30
  • 2
    tex.stackexchange.com/questions/74805/… it is marked as a duplicate, but the answers are better there than in the duplicate IMHO
    – Rmano
    Apr 12, 2021 at 21:32
  • 3
    I have solved using the first answer to the question linked by @Rmano Apr 12, 2021 at 21:44

0

Browse other questions tagged or ask your own question.