From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97138 Path: news.gmane.org!.POSTED!not-for-mail From: Antoine Cailliau Newsgroups: gmane.comp.tex.context Subject: Re: Using key as numbering in \placepublications Date: Mon, 23 Jan 2017 11:06:46 +0100 Message-ID: References: <20170119081912.5b6dab4b@zoo.hsd1.co.comcast.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6133959528399846436==" X-Trace: blaine.gmane.org 1485166096 29231 195.159.176.226 (23 Jan 2017 10:08:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2017 10:08:16 +0000 (UTC) Cc: mailing list for ConTeXt users To: Alan Braslau Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 23 11:08:11 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVbXR-0005UF-Dy for gctc-ntg-context-518@m.gmane.org; Mon, 23 Jan 2017 11:07:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9C5D31240392; Mon, 23 Jan 2017 11:07:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e2hqIeauIiuM; Mon, 23 Jan 2017 11:07:21 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id F07BB124018F; Mon, 23 Jan 2017 11:07:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 86C33124018F for ; Mon, 23 Jan 2017 11:07:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ECybJQTvYQD6 for ; Mon, 23 Jan 2017 11:07:18 +0100 (CET) Original-Received: from mail-ot0-f169.google.com (mail-ot0-f169.google.com [74.125.82.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9ED381240188 for ; Mon, 23 Jan 2017 11:07:08 +0100 (CET) Original-Received: by mail-ot0-f169.google.com with SMTP id 104so98812891otd.3 for ; Mon, 23 Jan 2017 02:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CVf+ztNukhj8UsmUoNlJMsszSnhN1SW9GJDXe4MjYwo=; b=gbbWn9ft9sklBKOTn5E+4xpasZRHmI3YqOjFFVjPRmnFKUznarA+sADi0zQHJBF6W1 fZ9600ZFiq5u0aKIWFcBQSENBrogAWmVB1VQzU/0fyi5Mu0d0AQCiG1NDElnAqkD8TMF XWe0/HuCM65aCAe0Nca0XEo6Whv8Rf2GhMKw6HP/YNv8OUWj6ZftNQEAg4M7WbkIAPin oRWG1YYaJ8cy7J6o4kt2AEzbuFRkLtu5Qngk136IQJyAnmpLl/y7+jJt904KkkXLAHRP Axbizbxa97S/p3spYMXsh7GTHF7tp3gH3lOQv3IIlVHAt+tzgdK/HrAeTxME9yIRSwY8 mPlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CVf+ztNukhj8UsmUoNlJMsszSnhN1SW9GJDXe4MjYwo=; b=l0LC68Gxp0RmBC40HpkQx/Kv14I6QCeBMjwIZGztM7Z0qnE/rLwXoehl7yG+m/KffS 9Zqux6X1i/pzmbclsphzjhct1vGSnaGh6WEZFBhEQ/MZ+dItEoQw5A9MBQZ9M0DTornX gpfcyqSI1/HsiHoh1nt1yHqltoR8dvVt43rhkoJEZmZue+2Har+911GVtABNfc0dI+bv zAAlgDFStFoUqRmy2wqFM4D9rsbMDk0j1kR9a2JqSWjm4TWlVNJGPUchrp0XtbZ9Wmex I+vnrq9Ky+iudl3Lk/jdpCITVt5JY5xZzrJHncCFEI5uuSP9ludI3YoLgFaTKsVaGFa/ qhcQ== X-Gm-Message-State: AIkVDXK804dxhmNwy8ArUIu+0cajlh7XlKjI6Tplw5cS0atdPQl/1OqDbXUgOBfxqUB2fZV2q12FiCEPC7KXsw== X-Received: by 10.157.48.69 with SMTP id w5mr12857542otd.110.1485166027008; Mon, 23 Jan 2017 02:07:07 -0800 (PST) Original-Received: by 10.182.65.166 with HTTP; Mon, 23 Jan 2017 02:06:46 -0800 (PST) In-Reply-To: <20170119081912.5b6dab4b@zoo.hsd1.co.comcast.net> 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:97138 Archived-At: --===============6133959528399846436== Content-Type: multipart/alternative; boundary=001a113d0dec78f2220546c029d2 --001a113d0dec78f2220546c029d2 Content-Type: text/plain; charset=UTF-8 Thank you very much. I was using the (old) bibtex module. Using the mkvi publication mechanism was the key. Antoine On 19 January 2017 at 16:19, Alan Braslau wrote: > On Thu, 19 Jan 2017 08:19:03 +0100 > Antoine Cailliau wrote: > > > How can I adjust the publication list to display [Kup03a] instead of > > [2] ? The numbering option does not offer "key" apparently. > > Using the mkiv publications mechanism, you can get short \cite keys > by default using > > \setupbtx[alternative=short] > > Individually, you can use \cite[short][yourkey] > > > Then you will also have to modify the bibliography list rendering to > display the short key. This is slightly more complicated, as presently > only the APA and APS styles have been predefined, the first being an > "authoryear" scheme and the second being a "num" scheme. > > Starting with the APS style: > > \usebtxdefinitions[aps] > > \definebtxrendering > [mystyle] > [aps] % inherits from "aps" > [sorttype=short, > numbering=short] > > > \cite[...] > > ... > > \placelistofpublications[mystyle] > > > However, you really want to define a complete style for your rendering. > > Alan > --001a113d0dec78f2220546c029d2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you very much. I was using the (old) bibtex module. = Using the mkvi publication mechanism was the key.

Antoin= e

On 1= 9 January 2017 at 16:19, Alan Braslau <alan.braslau@cea.fr> wrote:
On Thu, 19 Jan = 2017 08:19:03 +0100
Antoine Cailliau <antoineca= illiau@gmail.com> wrote:

> How can I adjust the publication list to display [Kup03a] instead of > [2] ? The numbering option does not offer "key" apparently.<= br>
Using the mkiv publications mechanism, you can get short \cite keys<= br> by default using

\setupbtx[alternative=3Dshort]

Individually, you can use \cite[short][yourkey]


Then you will also have to modify the bibliography list rendering to
display the short key. This is slightly more complicated, as presently
only the APA and APS styles have been predefined, the first being an
"authoryear" scheme and the second being a "num" scheme= .

Starting with the APS style:

\usebtxdefinitions[aps]

\definebtxrendering
=C2=A0 [mystyle]
=C2=A0 [aps] % inherits from "aps"
=C2=A0 [sorttype=3Dshort,
=C2=A0 =C2=A0numbering=3Dshort]


\cite[...]

...

\placelistofpublications[mystyle]


However, you really want to define a complete style for your rendering.

Alan

--001a113d0dec78f2220546c029d2-- --===============6133959528399846436== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6133959528399846436==--