I need a \def whose name involves a number, with that number being value of a counter.
\documentclass[varwidth,border=5mm]{standalone}
\begin{document}
% COUNTER
\newcounter{myC}
\addtocounter{myC}{1}
% DOESN'T WORK
% \def\csname\myM\value{myC}\endcsname{...}
\end{document}
\expandafter\def\csname\the\value{myC}\endcsname{...}or\@namedef{\the\value{myC}}{...}– Phelype Oleinik Jul 31 '19 at 21:22\value{myC}as the abstract counter's value, independent of its representation (it's not the whole truth, though). The number two is a different thing from 2 (its decimal representation). – egreg Jul 31 '19 at 21:45