I have this "Dimension too large" error that I don't understand:
\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\usetikzlibrary{positioning,shadows}
\newtcolorbox{mybox}{
enhanced,
colframe=white,
colback=white,
overlay={
\draw[thick,red,path fading=south](frame.north east)--(frame.south east);
}
}
\begin{document}
\begin{mybox}
content goes here
\end{mybox}
\end{document}
I'm trying to decorate a box with fading lines from starting from the corners and going south, north, east, etc. Some work (e.g. from the north west angle fading to east), some (e.g. the one in the mwe) don't.
Why is that? I understand why the "dimension" error arises but I can't seem to understand why it does in this case. I can't see which computation is exceeding the -16384 < x < 16384
range here.
Also, is this fixable?