Hi!

The following code:

\definereferenceformat[lem][text=Lemma]
\inlem[lem:mylemma]

produces just a number, no "Lemma " prefix. I've sent a patch to fix it a 
while ago. Could you please apply it, or tell me why you don't want to apply 
it?

-- 
Yury G. Kudryashov
--- a/tex/texmf-context/tex/context/base/strc-ref.mkiv	2010-05-21 15:44:04.000000000 +0400
+++ b/tex/texmf-context/tex/context/base/strc-ref.mkiv	2010-05-31 22:18:38.000000000 +0400
@@ -983,10 +983,13 @@
   {\ifx\next\bgroup
      \afterassignment\doinatreferenceonetwo
      \expandafter\leftreferencetoks
-   \else
+   \else\ifx\textofreference\empty
      \leftreferencetoks\emptytoks
-     \expandafter\dodoinatreferencenone
-   \fi}
+     \expandafter\expandafter\expandafter\dodoinatreferencenone
+   \else
+     \leftreferencetoks{\textofreference}%
+     \expandafter\expandafter\expandafter\doinatreferenceonetwo
+   \fi\fi}
 
 \def\doinatreferenceonetwo
   {\futurelet\next\doinatreferencetwo}

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to