I'm trying to make a series of circles with gradients. On the second page, which is created, there is only /2pt/1pt/2pt and on the last /20pt. I guess there's something wrong with my foreach loop, but I don't know what.
\documentclass[tikz]{standalone}
\usepackage{xcolor}
\definecolor{myyellow}{cmyk}{0,0,10,0}
\begin{document}
\foreach \Radius/\j in {6.0/1, 6.05/2,...,8.0/42}
{
\begin{tikzpicture}[scale=.5]
\pgfmathsetmacro\k{\j*10}
\useasboundingbox[fill=black] (-8.2,-8.2) rectangle (8.2cm,8.2cm);
\fill[fill=myyellow!\k] (0,0) circle (\Radius);
\end{tikzpicture}
}
\end{document}
Error:
Illegal unit of measure (pt inserted).
<to be read again>
/
l.15 }

foreachdon't recognise a pattern in a list like{6/1, 7/2, ... , 10/5}. The...is only usable with one variable. If you use a construction like\foreach \x / \y in, avoid using...in the list. – quark67 Mar 17 '19 at 22:45