Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colors defined by xcolor[dvipsnames] not working #759

Closed
vliegeois opened this issue Feb 8, 2022 · 9 comments
Closed

colors defined by xcolor[dvipsnames] not working #759

vliegeois opened this issue Feb 8, 2022 · 9 comments

Comments

@vliegeois
Copy link

vliegeois commented Feb 8, 2022

Since version 61684 (3.65), there is compilation error with pdflatex for beamer slides.
Any color defined in xcolor with dvipsnames: \documentclass[12pt,xcolor={dvipsnames}]{beamer}
is not recognized.
For instance, when using ForestGreen color with \textcolor{ForestGreen}{example} failed with error:

! Package xcolor Error: Undefined color `ForestGreen'.

This was fine with beamer 60801 (3.64).
I don't have the issue with beamerarticle:

\documentclass[12pt,a4paper,dvipsnames]{article}
\usepackage{beamerarticle}

Here is a minimal example:

\documentclass[11pt,mathserif,xcolor=dvipsnames]{beamer}
%\documentclass[12pt,a4paper,dvipsnames]{article}
%\usepackage{beamerarticle}
\mode<beamer>{%
\usetheme[hideothersubsections,
right,width=1mm]{Goettingen}
\useoutertheme{infolines}
}
\usepackage[utf8]{inputenc}
\title{Title}
\author{Vincent LIEGEOIS}
\date{\today}
\begin{document}
\mode<article>{\maketitle}
\mode<article>{\tableofcontents}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
  \frametitle{Bug report}
This is a small \textcolor{ForestGreen}{example}.
\end{frame}
\end{document}

Best regards

Vincent

@samcarter
Copy link
Collaborator

samcarter commented Feb 8, 2022

@vliegeois Sorry for that! I broke that when adding more flexible aspect ratios. As a temporary fix

\RequirePackage[dvipsnames]{xcolor}

\documentclass[11pt]{beamer}

\begin{document}

\begin{frame}
\frametitle{Bug report}
This is a small \textcolor{ForestGreen}{example}.
\end{frame}
\end{document}

samcarter added a commit to samcarter/beamer that referenced this issue Feb 8, 2022
samcarter added a commit that referenced this issue Feb 8, 2022
@vliegeois
Copy link
Author

@vliegeois Just curious: why do you have all these \mode without actually specifying a mode?

Which \mode are you referring at? I use \mode

to make the title and the table of content when using beamerarticle but not in beamer mode.

Thanks for the fix.
So I can remove this fix when beamer 3.66 will be available?

Thank you for the very quick reply :-)
Regards
Vincent

@samcarter
Copy link
Collaborator

samcarter commented Feb 8, 2022

Sorry about the comment about \mode. Before I applied code markup to your post, I could not see them. This is what your post looked like for me:

Screenshot 2022-02-08 at 13 37 32

@samcarter
Copy link
Collaborator

Thanks for the fix.
So I can remove this fix when beamer 3.66 will be available?

I hope so :) I just asked @josephwright if he can release a new version

@vliegeois
Copy link
Author

Indeed, there is an issue with markdown and < and > :-)

@samcarter
Copy link
Collaborator

@vliegeois If the code is not in a code block, I think they are interpreted as html tag thingies

@samcarter
Copy link
Collaborator

@vliegeois Oh, and instead of the mathserif option, better use \usefonttheme[onlymath]{serif} in your preamble

@vliegeois
Copy link
Author

Thanks for the tip

@samcarter
Copy link
Collaborator

@vliegeois You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants