Hi, I "reactivated" some code that was working a year ago. But now it seems that \expanded has no effect in my case (see below). I also tried it with \normalexpanded and \expandedafter but both had also no effect. My problem seems to be this line of the full example below: \doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}% The error shows itself in the line: Should be 1/1: \in[test] As \in[test] gives me 1/3 instead of 1/1. (1 was the number assigned to the first paragraph - 3 is the acutal number). Can someone tell me what I need to change? Thanks in advanced P. -----8<-------full example------------------- \unprotect \definenumber[ParagraphNumber][way=bysection,prefixsegments=100] \unexpanded\def\startParagraph {\dosingleempty\dostartParagraph} \def\dostartParagraph[#1]% {\getrawparameters[Paragraph][heading=,mark=,#1]% \incrementnumber[ParagraphNumber]% \ininner{\tfx\getnumber[ParagraphNumber]}% \doifsomething\Paragraphheading{\inouter{\Paragraphheading}}% \doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}% \ignorespaces} \unexpanded\def\stopParagraph {\blank[medium]} \protect \starttext \chapter{Alter novom} \startParagraph[heading={lorem ipsum},mark=test] \input tufte \stopParagraph \startParagraph \input tufte \stopParagraph \startParagraph Should be 1/1: \in[test] \stopParagraph \stoptext