Skip to content

Conversation

@michal-h21
Copy link
Contributor

Motivation for this change

I think we need to set the shading mode to rgb explicitly with the dvisvgm4ht driver (which is used by default with TeX4ht), otherwise there can be errors if user selects the cmyk option for xcolor:

\documentclass{article}
\usepackage[cmyk]{xcolor}
\usepackage{tikz}
\usetikzlibrary{fadings}
\begin{document}
  hello
\end{document}

Compile using:

$ make4ht -a debug sample.tex

The error:

! Undefined control sequence.
<argument> ...@end@pos }{\pgf@sys@shading@end@rgb
                                                  }{\pgf@sys@shading@end@rgb }
l.17 ...t!100); color(100bp)=(pgftransparent!100)}

Checklist

Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:

I think we need to set the  shading mode to `rgb` explicitly with the `dvisvgm4ht` driver (which is used by default with TeX4ht), otherwise there can be errors if user selects the `cmyk` option for `xcolor`:

```latex
\documentclass{article}
\usepackage[cmyk]{xcolor}
\usepackage{tikz}
\usetikzlibrary{fadings}
\begin{document}
  hello
\end{document}
```

Compile using:

$ make4ht -a debug sample.tex

The error:

```
! Undefined control sequence.
<argument> ...@EnD@pos }{\pgf@sys@shading@end@rgb
                                                  }{\pgf@sys@shading@end@rgb }
l.17 ...t!100); color(100bp)=(pgftransparent!100)}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants