From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91625 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.comp.tex.context Subject: [BUG]: `referenceprefix' in `\setuphead' ruins `\cite' Date: Fri, 29 May 2015 17:20:13 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1309974513==" X-Trace: ger.gmane.org 1432912859 4124 80.91.229.3 (29 May 2015 15:20:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2015 15:20:59 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Fri May 29 17:20:46 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YyM5V-00028Z-Vk for gctc-ntg-context-518@m.gmane.org; Fri, 29 May 2015 17:20:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FD061022D for ; Fri, 29 May 2015 17:20: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 mOQg40h9daUJ for ; Fri, 29 May 2015 17:20:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 499301022F for ; Fri, 29 May 2015 17:20:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3F9B101F7 for ; Fri, 29 May 2015 17:20:16 +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 5o4FCcBQnEHr for ; Fri, 29 May 2015 17:20:16 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 08DB0101F6 for ; Fri, 29 May 2015 17:20:16 +0200 (CEST) Original-Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4TFKEVE012524 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 29 May 2015 17:20:14 +0200 Original-Received: by lbbuc2 with SMTP id uc2so50704529lbb.2 for ; Fri, 29 May 2015 08:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4ZIR1IbTsOdSW74IzBE4JflziH13TDVaPVoan5sfV10=; b=W/JyIC9Xl4+k/tl7OjRbtijFGYse2d0izajDXuZdbzMdr2cMrwTKIjukWWI66GKgM+ 83csD+0RzrHboWhbHYEcqg5YxqgToAuEmVKiPswRs369X4acBTK0suKixSszcdRNtyXh mPH2Kvt74sH4o/aDte6cs7CUwYlwA3BnkFRkSm1eT9Tes9/DuCpYHL97TcMIljXl4HKh CzYPMCdXlhe8DiA+ajJxbXkpK+V72YQBTBZ418sY1xazMMSrV5/6L9vPH9kC2RRfTWSr u8aKB1fumnrl45eMc9Y/zFKfTCPDscPswnHC0ycpk//Pb+4uVmaOZsWAmkDRSS9w8YWM R5RA== X-Received: by 10.112.93.230 with SMTP id cx6mr2931925lbb.65.1432912813940; Fri, 29 May 2015 08:20:13 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Fri, 29 May 2015 08:20:13 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::230; country=FI; region=South Karelia; city=Lappeenranta; latitude=61.0667; longitude=28.1833; http://maps.google.com/maps?q=61.0667,28.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0ROxPkeXr - 91f0e93d82aa - 20150529 (trained as not-spam) Received-SPF: pass (filter1-til.mf.surf.net: domain of haroogan@gmail.com designates 2a00:1450:4010:c04::230 as permitted sender) receiver=filter1-til.mf.surf.net; client-ip=2a00:1450:4010:c04::230; envelope-from=; helo=mail-lb0-x230.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91625 Archived-At: --===============1309974513== Content-Type: multipart/alternative; boundary=001a113497c244e49b05173a03be --001a113497c244e49b05173a03be Content-Type: text/plain; charset=UTF-8 Hello, I think I've experienced a severe bug here. Consider the following: \setuphead [chapter][% referenceprefix={chapter}, ] ... \cite[xxx] ... \startpublication[ k={xxx}, t={...}, a={...}, y={...}, ] ... \stoppublication \startchapter [title={BIBLIOGRAPHY}] \whitespace \placepublications \stopchapter will render [[error 2]] in place of `\cite[xxx]' because of `referenceprefix' in `\setuphead'. Why? I don't believe `referenceprefix' in `\setuphead' should have something to do with `\cite' at all. Thankfully, it's pretty rare that one uses `chapter' for bibliography, but still I think it's better to fix this. For instance, right now the following works fine for me: \setuphead [chapter][% referenceprefix={chapter}, ] \setuphead [title][% referenceprefix={}, ] ... \cite[xxx] ... \startpublication[ k={xxx}, t={...}, a={...}, y={...}, ] ... \stoppublication \starttitle [title={BIBLIOGRAPHY}] \whitespace \placepublications \stoptitle NOTE: It's extremely important to explicitly do `referenceprefix={}' for `title' because somehow `title' inherits `referenceprefix={chapter}' from `chapter'; and therefore, not doing `referenceprefix={}' will again result in [[error 2]] in place of `\cite[xxx]'. Looking forward to your feedback. Kind regards, Alexander --001a113497c244e49b05173a03be Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I t= hink I've experienced a severe bug here.=C2=A0 Consider the following:<= /div>

\setuphead
[chapter][%
=C2=A0 referenceprefix=3D{chapter},
]

...
\cite[xxx]
...

\startpublicati= on[
=C2=A0 k=3D{xxx},
=C2=A0 t=3D{...},
=C2=A0 a= =3D{...},
=C2=A0 y=3D{...},
]
...
\stoppublication


\startchapter
[title=3D{BIBLIOGRAPHY}]

\whitespace
\placepublications
=
\stopchapter

will render [[error 2]] in place of `\cite[xxx]' b= ecause of `referenceprefix' in `\setuphead'.=C2=A0 Why?=C2=A0 I don= 't believe `referenceprefix' in `\setuphead' should have someth= ing to do with `\cite' at all.

Thankfully, it= 's pretty rare that one uses `chapter' for bibliography, but still = I think it's better to fix this.=C2=A0 For instance, right now the foll= owing works fine for me:
\setuphead
[chapter][%
=C2=A0 referenceprefix=3D{chapter},
]

\setuphead
[title][%
=C2=A0 = referenceprefix=3D{},
]

...
<= div>\cite[xxx]
...

\startpublication[
=C2=A0 k=3D{xxx},
=C2=A0 t=3D{...},
=C2=A0 a=3D= {...},
=C2=A0 y=3D{...},
]
...
\sto= ppublication


\starttitle
= [title=3D{BIBLIOGRAPHY}]

\whitespace
\pl= acepublications

\stoptitle

NOTE: It's extremely important to explicitly do `referenceprefix=3D{}= ' for `title' because somehow `title' inherits `referenceprefix= =3D{chapter}' from `chapter'; and therefore, not doing `referencepr= efix=3D{}' will again result in [[error 2]] in place of `\cite[xxx]'= ;.

Looking forward to your feedback.
Kind regards,
Alexander
--001a113497c244e49b05173a03be-- --===============1309974513== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1309974513==--