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,T_SCC_BODY_TEXT_LINE 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 39B50254E6 for ; Fri, 21 Jun 2024 18:15:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A83EE484658 for ; Fri, 21 Jun 2024 18:14:09 +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 aky82fiukWxe for ; Fri, 21 Jun 2024 18:14:09 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CDCBD4840B5 for ; Fri, 21 Jun 2024 18:13:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B76B7480F1F for ; Fri, 21 Jun 2024 18:13:47 +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 BtsJ_hxAb2qA for ; Fri, 21 Jun 2024 18:13:47 +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 616C9480E96 for ; Fri, 21 Jun 2024 18:13:47 +0200 (CEST) Received: from falbala.localnet (unknown [130.75.33.21]) by flump.de (Postfix) with ESMTPSA id 22AD210FF2BD for ; Fri, 21 Jun 2024 18:13:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718986427; bh=Nq8e0nH0QfZVx/kMs6pkWYoR9rxiyOab0stnF3MCnrQ=; h=From:To:Subject:Date:In-Reply-To:References; b=risuxM53NxjhNM7oya8O1zqSg6yL6bipmkrZ+BL3/fHnXtisg3rMC6PMnxfhgaL5X sHvZujcS0q6NrszUAY2hYROoeUHdcYH4Xr+MMl49o3/OzQWaB5465dXZh/GI7UxHaC KKHa80xKO0l3MijgWcZ56QkrliUh3kARD3yvCiJ0= From: Gerion Entrup To: mailing list for ConTeXt users Date: Fri, 21 Jun 2024 18:13:43 +0200 Message-ID: <3595744.NnENhoQgcM@falbala> In-Reply-To: <39399069.10thIPus4b@falbala> References: <39399069.10thIPus4b@falbala> MIME-Version: 1.0 Message-ID-Hash: VBEBHXSFRS6AH6MDKWP3L4DWTIW2PXMW X-Message-ID-Hash: VBEBHXSFRS6AH6MDKWP3L4DWTIW2PXMW 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] Re: Specify separator within setupbtx for custom bibliography rendering 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="===============4104437892873549780==" --===============4104437892873549780== Content-Type: multipart/signed; boundary="nextPart2715767.22IY78Rhhi"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart2715767.22IY78Rhhi Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: mailing list for ConTeXt users Date: Fri, 21 Jun 2024 18:13:43 +0200 Message-ID: <3595744.NnENhoQgcM@falbala> In-Reply-To: <39399069.10thIPus4b@falbala> References: <39399069.10thIPus4b@falbala> MIME-Version: 1.0 Am Samstag, 1. Juni 2024, 16:16:38 MESZ schrieb Gerion Entrup: > Hi, > > according to the section "Custom citation renderings" in the bibliography manual, I have specified an own setup for citation rendering. > However, this seems only to work for single citations (of one source). I want to also specify the separator but did not get it to run. > > Here is a minimal example: > ``` > \setupinteraction[state=start] > > \startbuffer[testdata] > @Book{knuth1, > author = {Donald E. Knuth}, > title = {TEX and METAFONT. New directions in typesetting}, > year = {1979}, > publisher = {Addison-Wesley}, > } > @Article{someother, > author = {Some Person and Some Otherperson}, > title = {Another title}, > year = {1900}, > } > \stopbuffer > > % enable tracing > \enabletrackers[publications, publications.crossref, publications.details, publications.cite, publications.strings] > > \usebtxdataset[main][testdata.buffer] > \usebtxdefinitions[aps] > \setupbtx[dataset=main] > \definebtxrendering[bibrendering][aps][dataset=main, numbering=short] > \setupbtxlist[aps][ > alternative=b, > distance=.5em, > ] > > \definebtx[aps:cite:special][aps:cite][ > left={((}, > right={))}, > separator:2={sfd}, > separator:3={sfd}, > separator:4={sfd}, > ] > > \startsetups btx:aps:cite:special > % just a dummy > \btxcitereference > \currentbtxtag > \stopsetups > > \setupbtx[aps:cite][ > alternative=special, > ] > > \starttext > > Both said something~\cite[knuth1, someother]. > > \placelistofpublications[bibrendering] > > \stoptext > ``` > > The output of this is: > > > Both said something ((knuth1someother)). > > How can I get the separator to work? My expectation would be: > > > Both said something ((knuth1sfdsomeother)). > > or > > > Both said something ((knuth1sfd someother)). I got some understanding of the underlying code now. This setup solves the above issue: ``` \startsetups btx:aps:cite:special % just a dummy \fastsetup{btx:cite:concat} \btxcitereference \currentbtxtag \stopsetups ``` Gerion --nextPart2715767.22IY78Rhhi 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZ1prcACgkQloeAdSYJ HepvGgv/ca5ovVRY/WlvEEMD/amYo5knGElwvwb1znqGnlgs58rOhn/ac/15eBHy 5nkBYihU8ceY07cpa4EaiEG2wb3WUfJXYcfZouK7/8e/O4grb8ruKTN8sQappGuG GzrBA4fPLm0fQFzHkYXtyAgg1sr3D+KkgFyuCm/VLe1GrDG14xgtjUTQC17t37T5 NtYo3t2Wt+AwzsOp8oynakkSoF89df0A0bHe3Ql6b9OmyztZD1bQ52xKt3pLVBjg qEu6YAk2ubMezMWBduhpgNtS3b9KA8fQuh/x9mYCuZW5Mp9gpPdrQVWmLA9Yg9Uw ivSZPpF+Y2JbzZ7dOc68efRRVIXFFrnU3CXSsLkoNkeFSHOhQwJU+a2x+xwrsI0Y XOajnwdw5DNtmvIpdKjQOpKEWJF40jSyAHXk8/VEhz8gaF84VkiTBM/yncCWxEgV JZQ4jnecRRxBynKhxYFCvQxycNOmaDoAxHCljoEK62faaHfI5+56n5biYPoIx5PO jS2Mva3r =KdzT -----END PGP SIGNATURE----- --nextPart2715767.22IY78Rhhi-- --===============4104437892873549780== 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 ___________________________________________________________________________________ --===============4104437892873549780==--