I'm not able to get the \for command to work in TexWorks. \foreach works fine and \usepackage{pgffor} is declared. Is it possible that \for has been deprecated? I'm using TexLive / TexWorks 2021 edition. Thanks in advance afk
\documentclass{article}
\usepackage{tikz}
\usepackage{pgffor}
\usetikzlibrary{math}
\begin{document}
\begin{tikzpicture}
%\foreach \n in {1,2,3,4} {$\n$}; This works."1234" displays as expected.
\for \n in {1,2,3,4} {$\n$}; This reports "Undefined Control Sequence"
\draw (0,0)--(10,0); This works also.
\end{tikzpicture}
\end{document}