Message-ID: <CAC1GMYd4+Sa=Oaajxg9kc9=hPB=V9EfwNPJDB4UVoHUyGoLDqw@mail.gmail.com>
Date: 2024-06-09T08:59:56Z
From: Alvaro Cuadros
Subject: [Bioc-devel] Build fail due to "undefined color `fgcolor`"
In-Reply-To: <61b4b135-5fc3-4edc-96f0-e25aa8704a59@in.tum.de>
On Fri, Jun 7, 2024 at 10:23?PM Christian Mertes <mertes at in.tum.de> wrote:
>
> Dear Bioc Team,
>
> I got today a build error from OUTRIDER and FRASER with:
>
> LaTeX errors:
> ! Package xcolor Error: Undefined color `fgcolor'.
>
> The same errror also pops up at other packages such as ggbio:
>
> output file: ggbio.tex
> ! Package xcolor Error: Undefined color `fgcolor'.
I have the same error. I suppose there's an issue with BiocStyle.
After some debugging I found out that adding
\definecolor{fgcolor}{rgb}{0.345, 0.345, 0.345}
\newcommand{\hlsng}[1]{\textcolor[rgb]{0.192,0.494,0.8}{#1}}%
\newcommand{\hldef}[1]{\textcolor[rgb]{0.345,0.345,0.345}{#1}}%
right after the `BiocStyle::latex()` chunk fixes the issue.