7

in a previous question there is a solution about how tu use tufte-handout class with beamerarticle.

I've tested it and I need to include [noxcolor] option because without it pdflatex complains with

! LaTeX Error: Option clash for package xcolor.

Could you tell me why?

9

Both the tufte-handout class and beamerarticle.sty load the xcolor package and with different options, that's why the error message Option clash appears.

Specifically, tufte-handout.cls uses tufte-common.sty and this requires xcolor by this line:

\RequirePackage[usenames,dvipsnames,svgnames]{xcolor}

It allows you to use xcolor features with the tufte classes. But as soon as you load beamerarticle it would try to pass again an option to xcolor. But beamerarticle is cleverly programmed and offers the option noxcolor which simply doesn't load xcolor, making it compatible for such cases.

From beamerbasearticle.sty:

\DeclareOption{noxcolor}{\beamer@articlexcolorfalse}
\ifbeamer@articlexcolor
  \RequirePackage[override]{xcolor}
  % For color support
\fi

From beamerarticle.sty:

\DeclareOption{noxcolor}{\PassOptionsToPackage{noxcolor}{beamerbasearticle}}
\RequirePackage{beamerbasearticle}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.