From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60789 Path: news.gmane.org!not-for-mail From: "Yury G. Kudryashov" Newsgroups: gmane.comp.tex.context Subject: referenceformat, text Date: Sun, 08 Aug 2010 16:44:21 +0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2223525.CQl23oFCbX" X-Trace: dough.gmane.org 1281271491 13946 80.91.229.12 (8 Aug 2010 12:44:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Aug 2010 12:44:51 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 08 14:44:48 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi5F7-0003J0-Pq for gctc-ntg-context-518@m.gmane.org; Sun, 08 Aug 2010 14:44:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42848CA1BD; Sun, 8 Aug 2010 14:44:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id G0F0vWeNLd9E; Sun, 8 Aug 2010 14:44:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E774FCA1B7; Sun, 8 Aug 2010 14:44:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 550FDCA1B7 for ; Sun, 8 Aug 2010 14:44:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0gdZAueLxTFl for ; Sun, 8 Aug 2010 14:44:38 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id 0FBCCCA1A7 for ; Sun, 8 Aug 2010 14:44:37 +0200 (CEST) Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oi5Eu-0003Ed-HB for ntg-context@ntg.nl; Sun, 08 Aug 2010 14:44:32 +0200 Original-Received: from 106-33-94-178.pool.ukrtel.net ([178.94.33.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Aug 2010 14:44:32 +0200 Original-Received: from urkud by 106-33-94-178.pool.ukrtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Aug 2010 14:44:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.comp.tex.context Original-Lines: 46 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 106-33-94-178.pool.ukrtel.net User-Agent: KNode/4.4.5 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:60789 Archived-At: --nextPart2223525.CQl23oFCbX Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit 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 --nextPart2223525.CQl23oFCbX Content-Type: text/x-patch; name="referenceformat-fix.patch" Content-Disposition: attachment; filename="referenceformat-fix.patch" Content-Transfer-Encoding: quoted-printable --- a/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-21 15:44:0= 4.000000000 +0400 +++ b/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-31 22:18:3= 8.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} =20 \def\doinatreferenceonetwo {\futurelet\next\doinatreferencetwo} --nextPart2223525.CQl23oFCbX Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --nextPart2223525.CQl23oFCbX--