ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Yury G. Kudryashov" <urkud@ya.ru>
To: ntg-context@ntg.nl
Subject: referenceformat, text
Date: Sun, 08 Aug 2010 16:44:21 +0400	[thread overview]
Message-ID: <i3m8r5$b9q$1@dough.gmane.org> (raw)

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

             reply	other threads:[~2010-08-08 12:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-08 12:44 Yury G. Kudryashov [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='i3m8r5$b9q$1@dough.gmane.org' \
    --to=urkud@ya.ru \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).