On Sun, 24 Jun 2007 14:38:34 +0200
Hans van der Meer
I used to place references to figures and tables in the following way:
\placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}} \in{figure}[fig:myfig]
This however printed a dot instead of the expected "figure #". Changing to \at{figure}[fig:myfig] again printed the correct reference.
Looking further into this I found: \meaning\in --> \protected macro:->\dohandlemathtoken {in} \meaning\at --> macro:->\dohandlecommand {at}
Still, the ConText manual tells me that \in{.1}{.2.}[ref] (with {.2.} optional) should work.
In file core-ref.tex at line 2118 (2007-04-17 version) I find: %\def\in% % {\ifmmode % \expandafter\donormalin % \else % \expandafter\doinatreference\expandafter\currenttextreference % \fi} But I am definitely not in math mode when calling \in. I did some further experimentation but nothing helped.
Has something changed here or is there something I do obviously wrong?
Hans van der Meer
Hi Hans, please post a example, the following works for me: \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \stoptext Wolfgang