ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* referenceformat, text
@ 2010-08-08 12:44 Yury G. Kudryashov
  2010-08-08 16:45 ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Yury G. Kudryashov @ 2010-08-08 12:44 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: referenceformat-fix.patch --]
[-- Type: text/x-patch; name="referenceformat-fix.patch", Size: 725 bytes --]

--- 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}


[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-08-09  8:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-08 12:44 referenceformat, text Yury G. Kudryashov
2010-08-08 16:45 ` Hans Hagen
2010-08-08 17:19   ` Yury G. Kudryashov
2010-08-08 17:30     ` Hans Hagen
2010-08-08 17:40       ` Yury G. Kudryashov
2010-08-08 20:36         ` Hans Hagen
2010-08-08 20:55           ` Aditya Mahajan
2010-08-08 22:22           ` Yury G. Kudryashov
2010-08-08 22:48             ` Wolfgang Schuster
2010-08-08 22:52             ` Hans Hagen
2010-08-09  7:17               ` Yury G. Kudryashov
2010-08-09  7:57                 ` Hans Hagen
2010-08-09  8:21                   ` Yury G. Kudryashov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).