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

Incompatibility with TeX Live >= 2023 / xcolor #28

Open
FG-TUM opened this issue Sep 12, 2024 · 0 comments
Open

Incompatibility with TeX Live >= 2023 / xcolor #28

FG-TUM opened this issue Sep 12, 2024 · 0 comments

Comments

@FG-TUM
Copy link

FG-TUM commented Sep 12, 2024

Problem Description

On distributions with TeX Live >= 2023 building locally make pdf-local fails. This is an issue if one wants to use new-ish LaTeX packages.

Error Message

$ make pdf-local
# some output omitted ...
(./inc/tumcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)

! LaTeX Error: Unknown option 'pgfplots' for package xcolor.

For immediate help type H <return>.
 ...

l.266 \edef
           \Gin@driver{\Gin@driver}
? H

LaTeX has been asked to set an option called 'pgfplots' but the package
"xcolor" has not created an option with this name.

It appears something in the xcolor package has changed so it doesn't accept the pdfplots option anymore? However, I don't see anything about that specifically in their changelog so I'm not sure if this was ever a valid option?

Affected Distributions

  • Any rolling release Distro like Archlinux
  • Ubuntu >= 24.04. (22.04 is fine)

Workaround

The offending lines are here:

\newif\ifpgfplots\pgfplotsfalse
\DeclareOption{pgfplots}{\pgfplotstrue}%
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{xcolor}}%
\ProcessOptions\relax%
\RequirePackageWithOptions{xcolor}%

My knowledge about sty files is very limited. Both of the following workarounds seem to work but I guess they have undesired side effects:

  • add \usepackag{xcolor} before \RequirePackageWithOptions{xcolor}
  • replace \RequirePackageWithOptions{xcolor} with \RequirePackage{xcolor}

So please someone who understands this better stand up and provide a good solution :)

@FG-TUM FG-TUM changed the title Incompatibility withTeX Livetexlive >= 2023 / xcolor Incompatibility with TeX Live >= 2023 / xcolor Sep 12, 2024
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

1 participant