Re: [NTG-context] References and formulae numbers in upshape

On Fri, 14 Mar 2008 03:49:19 +0100
Morgan Brassel <[EMAIL PROTECTED]> wrote:

>
> > > \definereferenceformat
> > >  [eqref]
> > >  [left=\bgroup\normal(,
> > >   right=)\egroup]
> >
> > This was my first attempt, but it gave some trouble. I need to go back and
> > check.
> >
>
> I now realize that my first question was not very clear: what I need in fact
> is to typeset *all* references obtained by the \in command in upshape. For
> example, in {\it See \in{Figure}[fig:det] for details.}, I would like to
> see 'Figure 1' in upshape and the rest in italic. I tried:
>
> \setupreferencing
>   [left=\bgroup\normal,
>    right=\egroup]
>
> without success. Is there a way to achieve this without defining new
> reference
> formats?

What do you want seems to be not possible but you could use the
following solution although it is better to define a new command.

\let\normalin\in

\definereferenceformat
[figref]
[left=\normal,
text=\normal Figure,
command=\normalin]

\let\in\figref

\starttext

\placefigure
[here][fig:det]
{Example}
{\blackrule[width=3cm,height=3cm]}

\it See \in[fig:det] for details.

\stoptext

Wolfgang
___________________________________________________________________________________