1

I'm using the following codes

 \documentclass{beamer}
 \usecolortheme[named=Mahogany]{structure} 
 \usefonttheme[onlymath]{serif}
 \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{amsmath,amssymb,amsfonts} %math

\usetheme[secheader]{Madrid}


\begin{document}

\begin{frame}{Outline}

\end{frame}

\end{document} 

I want to change \usecolortheme[named=blue]{structure} by \usecolortheme[named=Mahogany]{structure}, but it doen't compilate.

Thank you for your help.

2

You need to pass the dvipsnames option to xcolor:

\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=Mahogany]{structure} 
\usefonttheme[onlymath]{serif}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{amsmath,amssymb,amsfonts} %math

\usetheme[secheader]{Madrid}


\begin{document}

\begin{frame}{Outline}

\end{frame}

\end{document} 

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.