Skip to content

Undefined color model when colorlinks defined in class file #15

@jankapunkt

Description

@jankapunkt

I'm using a template .cls that defines hyperref with the following attributes:

% ...
\RequirePackage{color}
\definecolor{foo}{rgb}{.5,.5,.5}
\RequirePackage[colorlinks=true,linkcolor=foo,citecolor=foo,filecolor=foo,menucolor=foo,urlcolor=foo]{hyperref}
% ...

This is primarily to auto-color URLs.

I'm using orcidlink like this:

\documentclass{bar}
\usepackage{orcidlink}
\begin{document}
   Look:  \orcidlink{0009-0008-8088-9837}
\end{document}

Leading to the error ! Package xcolor Error: Undefined color model '.`

When changing the hyperref option to colorlinks=false it will work, however I can't change the options as it affects the entire link formatting of the document.

Any ideas how solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions