From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 4E79D214FD for ; Tue, 16 Apr 2024 06:16:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2D5FB483FC9 for ; Tue, 16 Apr 2024 06:14:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=flump.de Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QJD756DKhEfk for ; Tue, 16 Apr 2024 06:14:50 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 636EB482B5A for ; Tue, 16 Apr 2024 06:14:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 77189480A5E for ; Tue, 16 Apr 2024 06:13:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m5rhgvv9GPKG for ; Tue, 16 Apr 2024 06:13:38 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.163.118.210; helo=flump.de; envelope-from=gerion.entrup@flump.de; receiver= X-Greylist: delayed 534 seconds by postgrey-1.36 at cgl.ntg.nl; Tue, 16 Apr 2024 06:13:38 CEST Received: from flump.de (flump.de [185.163.118.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 186BF4809F9 for ; Tue, 16 Apr 2024 06:13:37 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id 0569FC41A04 for ; Tue, 16 Apr 2024 06:04:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1713240284; bh=RcQ65w8QV48DvFeUyC9A5+UJuu6YzQoRWEW/uhx+n1w=; h=From:To:Subject:Date; b=ntksprEM3dMihQ0PC7g1kkTTEYVPOiLhg9uX5NSo4Uw7fmFEfW/CNha5JjLt7OAEo gUIT3l8Y8HS1MmRvy4GJq4vNWgpiiL5bEuEJFu8floXsbhgXMOnbx3zcc77xDlD+uR hEqZLys7g5txitrdiiYfBpF2sD8CiuO4SEAfZfLI= From: Gerion Entrup To: ntg-context@ntg.nl Date: Tue, 16 Apr 2024 06:04:35 +0200 Message-ID: <2931712.e9J7NaK4W3@falbala> MIME-Version: 1.0 Message-ID-Hash: QOOPLT2W5632ARMCBWMIGAT7ECPEN6VR X-Message-ID-Hash: QOOPLT2W5632ARMCBWMIGAT7ECPEN6VR X-MailFrom: gerion.entrup@flump.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Customize citation format of a bibliography (use the short form as reference format) List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============6154123656455115307==" --===============6154123656455115307== Content-Type: multipart/signed; boundary="nextPart3285166.aeNJFYEL58"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart3285166.aeNJFYEL58 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: ntg-context@ntg.nl Date: Tue, 16 Apr 2024 06:04:35 +0200 Message-ID: <2931712.e9J7NaK4W3@falbala> MIME-Version: 1.0 Hi, I'm trying to customize a cite format in a bibliography. Currently, I'm usi= ng the aps style which fits so far, except of the plain number as reference. In concrete, I want to change the following: =2D Use the first letter of the last name and the year as reference (this s= hould be exactly the short form). It is more less also described here [1]. =2D Highlight publications of a certain author with an extra char (e.g. '>') Here is a minimal example (lets assume, every occurrence of Knuth should be= highlighted): ``` \setupinteraction[state=3Dstart] \startbuffer[testdata] @Book{knuth1, author =3D {Donald E. Knuth}, title =3D {TEX and METAFONT. New directions in typesetting}, year =3D {1979}, publisher =3D {Addison-Wesley}, } @Article{someother, author =3D {Some Person and Some Otherperson}, title =3D {Another title}, year =3D {1900}, } \stopbuffer % enable tracing \enabletrackers[publications, publications.crossref, publications.details, = publications.cite, publications.strings] \usebtxdataset[main][testdata.buffer] \usebtxdefinitions[aps] \setupbtx[dataset=3Dmain] \definebtxrendering[bibrendering][aps][dataset=3Dmain] % this seems to have no effect? \setupbtx[alternative=3Dshort] \starttext Knuth developed \TeX \cite[knuth1]. Several persons said something \cite[someother]. \placelistofpublications[bibrendering] \stoptext ``` It should be rendered as: ``` Knuth developed TeX [>Knu79]. Several persons said something [PO00]. [Knu79] D.E. Knuth, TEX and METAFONT. New directions in typesetting (Addi= =C2=ADson-Wesley, 1979). [PO00] S. Person and S. Otherperson, Another title, (1900). ``` How can I achieve that \cite[something] always renders in the short form by= default? How can I customize that references to Knuth contain this extra '>'? How can I customize the APS style to also use the short form in the list of= publications instead of numbers? Best Gerion [1] https://tex.stackexchange.com/questions/295444/citation-style-with-firs= t-letters-of-authors-lastname --nextPart3285166.aeNJFYEL58 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmYd+NMACgkQloeAdSYJ HeqXLgv+Jv5cYkHgEt5Qr+MAPhGnP3LoV0pSwJ2nnxNFTdsE1k1Z9lyp0mjOGt2k mhzfxeyiBem5W/THlHqhftk/hjQIX9fDgCexvMs4929NHOlBnVb13bbhmfa4Ib5a GBxE/ctf9Fj0wuKMfqJFmWqBW7pGxVIStQFphnaMLkfeGduwkWRL52pU8fQKUP2e DuPHhqQZWReEAncXCTrxbGQm+ehBSy2BxgyBFPtUKF4WDHpiFR/LeMzd1AWPEmTN r3Qr3Tpgzyrr9v4HH4ZquxGvFiBr3QjAgaNM4JlSe/29yU9ItnTxwpLPBl+qzT/T mz419JfuvEtvcjYqQCporhfOOLvpRSqxgb8RYpeHCWb/4Pqe1/eWB+4A+tLVtDZe S3+cU7kGinFQi58Z6Ru4lHjCaDeKZtDnQQsqtAbxO7e7aWjoiTQ/5aEeSUMU/WFC RE4UeEvQ/zhxeGFQrUtpVEP9LBAPvgcA7NPb2So2D+tAzSmzHU0r+r8mWrcEz/23 bxejT1Wg =eOg6 -----END PGP SIGNATURE----- --nextPart3285166.aeNJFYEL58-- --===============6154123656455115307== 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============6154123656455115307==--