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 5E61622819 for ; Wed, 17 Apr 2024 15:47:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 037DB48418A for ; Wed, 17 Apr 2024 15:46:12 +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 PTNQomYNeWzn for ; Wed, 17 Apr 2024 15:46:11 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A74FA484323 for ; Wed, 17 Apr 2024 15:44:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6101B4814FB for ; Wed, 17 Apr 2024 15:44:18 +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 eV6hebGSoXqf for ; Wed, 17 Apr 2024 15:44:17 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.163.118.210; helo=flump.de; envelope-from=gerion.entrup@flump.de; receiver= 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) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id DA6614814CA for ; Wed, 17 Apr 2024 15:44:17 +0200 (CEST) Received: from falbala.localnet (unknown [130.75.33.21]) by flump.de (Postfix) with ESMTPSA id 83396C4B586; Wed, 17 Apr 2024 15:44:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1713361457; bh=LtAEvgQFQPyGUEz3+zmxcKqbKLRGcpTsvisVrxLywJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Ss08J2dZSsxCKox7tXrS8EATqig77CIbNUmpzNlDXhtuxN+1Iwr5EPNWPIIp5SPnB Tg0AvoVszrhI3w1ARg+ZMJTpdzL6R7DisaaKtbMwzq3vOIocG/3B9uD8DITm/Er2kw 29btWTA6xHEJI2guU0NSv6O6Js8iL5lWrZERuHCc= From: Gerion Entrup To: Alan Braslau Date: Wed, 17 Apr 2024 15:44:12 +0200 Message-ID: <3478475.QJadu78ljV@falbala> In-Reply-To: <20240417070657.5aa03ddb@boo.my.domain> References: <2931712.e9J7NaK4W3@falbala> <20240417070657.5aa03ddb@boo.my.domain> MIME-Version: 1.0 Message-ID-Hash: UC2ZSPCQZTP5YAKED3KFDMB6IBDIVP5K X-Message-ID-Hash: UC2ZSPCQZTP5YAKED3KFDMB6IBDIVP5K 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 CC: mailing list for ConTeXt users X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: 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="===============5253344928805957323==" --===============5253344928805957323== Content-Type: multipart/signed; boundary="nextPart1887983.CQOukoFCf9"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart1887983.CQOukoFCf9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: Alan Braslau Cc: mailing list for ConTeXt users Date: Wed, 17 Apr 2024 15:44:12 +0200 Message-ID: <3478475.QJadu78ljV@falbala> In-Reply-To: <20240417070657.5aa03ddb@boo.my.domain> MIME-Version: 1.0 Hi, > The APS style is an example of a number-based citation system. As you > are looking for a tag-based citation, it might be better to start with > something like the APA style. I'm kind of satisfied with the publication-list layout of the APS style so = I chose this as a base. If it is simpler to start with the APA style, I can do that. My hope is that it is possible to just change the "label" that is used for referencing and keep everything else as is. > Is there some specification for your short tag-based citation style? biblatex implements this with the "alphabetic" style. I'm not aware of a specification, though. Does the "short" form in ConTeXt exist for a specific reason? :) Gerion > On Tue, 16 Apr 2024 06:04:35 +0200 > Gerion Entrup wrote: >=20 > > Hi, > >=20 > > I'm trying to customize a cite format in a bibliography. Currently, > > I'm using the aps style which fits so far, except of the plain number > > as reference. In concrete, I want to change the following: > > - Use the first letter of the last name and the year as reference > > (this should be exactly the short form). It is more less also > > described here [1]. > > - Highlight publications of a certain author with an extra char (e.g. > > '>') > >=20 > > Here is a minimal example (lets assume, every occurrence of Knuth > > should be highlighted): ``` > > \setupinteraction[state=3Dstart] > >=20 > > \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 > >=20 > > % enable tracing > > \enabletrackers[publications, publications.crossref, > > publications.details, publications.cite, publications.strings] > >=20 > > \usebtxdataset[main][testdata.buffer] > > \usebtxdefinitions[aps] > > \setupbtx[dataset=3Dmain] > > \definebtxrendering[bibrendering][aps][dataset=3Dmain] > >=20 > > % this seems to have no effect? > > \setupbtx[alternative=3Dshort] > >=20 > > \starttext > >=20 > > Knuth developed \TeX \cite[knuth1]. > > Several persons said something \cite[someother]. > >=20 > > \placelistofpublications[bibrendering] > >=20 > > \stoptext > > ``` > >=20 > > It should be rendered as: > > ``` > > Knuth developed TeX [>Knu79]. > > Several persons said something [PO00]. > >=20 > > [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). ``` > >=20 > > 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? > >=20 > > Best > > Gerion > >=20 > > [1] > > https://tex.stackexchange.com/questions/295444/citation-style-with-firs= t-letters-of-authors-lastname --nextPart1887983.CQOukoFCf9 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmYf0iwACgkQloeAdSYJ HeqnuQv/bRRWvX+g51b90S7aIr+KiETBWFUuqLKjiU6ppuyqm2DsFIyxO4bPxqr8 +nuEOQm95u8uw0wHHvJvZAyjuoOjzYx9q9qGM6lHsUUVhxORzMTtqkfmBjGT8Lms NvOCVDzbxQJbtqNztVrqW3QDFbkuNnN5GoTYELRl4C5f3GiHeq2LOGMC+V2fpq0J wi9eEvfpTOt7v8awV5itORMcZSCH4RT0zs4y5iytZRd1mXRfDlY3Hgp8JwHJOzNa 2YoiT5lNc8MAcHKk3FYKG/9zn8yzEZdIg9MFFqd4wqy01DouvuHJqoTD7YZEWtKf 3OH3vKvS8DlBdTJ/EEPetS28YIPbG2TpQuYx0uAHM+nkrWri8i5GgNXpbb2hG7vT cs/XCEGudwrgzaJ5v2xOWuT6WopYpuNFAS/GfRCfzMmjRCK7jAxXIVIM0zthfpP6 i+BMHMHxUDb8Q5Mq6qE5De8JuK3dcAPT0NRUBsTj9pYIvvkW82PSMaYUAGLwu8rE SCOrFOZ9 =a6yB -----END PGP SIGNATURE----- --nextPart1887983.CQOukoFCf9-- --===============5253344928805957323== 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 ___________________________________________________________________________________ --===============5253344928805957323==--